I've trying to build https://github.com/google/usd_from_gltf.
Since I am not experienced with CMake and Visual Studio I followed the instructions and managed to work after some fixes.
Now I am stuck in an issue that does not look like a problem related to the package.
I got this error in my log.txt:
cmake H:\usd_from_gltf-master -DCMAKE_INSTALL_PREFIX=H:\UFG-CP37 -DCMAKE_PREFIX_PATH=H:\UFG-CP37 -DUSD_DIR=H:\USD-CP27 -DCMAKE_GENERATOR_PLATFORM=x64
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19041.
-- Configuring done
-- Generating done
-- Build files have been written to: H:/usd_from_gltf-master
cmake --build . --config Release --target install -- /m
Error: could not load cache
I wonder if this problem is related to the package versions. Feels like a problem related to my computer itself. Maybe someone can clear this a bit for me. I have seen some SO questions and some related to the build tree, but I am unsure about this.
Windows 10 x64 | USD 21.02 built using Python2.7 | usd_from_gltf using Python3.7 | Visual Studio 2017
My command was:
H:\usd_from_gltf-master>python ./tools/ufginstall/ufginstall.py H:/UFG-CP37 H:/USD-CP27 --testdata
Where as H:/UFG-CP37 I want it to be built and USD-CP27 is my USD Build.
Related
Im trying to build the newest OpenCV version (4.2.0) for x86/32bit on Windows for Visual Studio. However there is only 1 OpenCVConfig.cmake in the finished build (opencv/build/win-install/x86/vc16/lib/OpenCVConfig.cmake - there is no bin folder).
What i've tried:
I've downloaded and executed the latest version (opencv-4.2.0-vc14_vc15.exe)
I've followed this SO thread and added the short snippet in my opencv/build/OpenCVConfig.cmake
Downloaded Cmake 3.17 and installed via the installer
Started the Cmake GUI - set source code to opencv/sources and binaries to opencv/build
Choose Visual Studio 16-2019 as generator and options to win32
Configured Proxy for the downloads and clicked on Generate.
I got no noticeable Errors in the build process. The last lines of the console are:
Install to: C:/Users/user/opencv/build/install
Configuring done
Generating done
There is also no install folder inside opencv/install. I think it installs to opencv/build/win-install.
What am i doing wrong?
Im just starting with cocos2d-x. I start by following the guide here. https://docs.cocos2d-x.org/cocos2d-x/v4/en/installation/Windows.html
Regarding prerequisites:
Windows 7+ - have windows 10
VS 2017+ - have visual studio 2019
CMake 3.1+ - installed latest
Python 2.7.5+, Python 2.7.10 reccomended , NOT Python 3+ - installed Python 2.7.10
Downloaded Cocos2dx v4 from github repo.
I run this command
python setup.py
https://i.imgur.com/td7Yo8c.png
Then i run this command
cd COCOS2DX/tests/cpp-tests
mkdir win32-build
cd win32-build
cmake ..
Then I rebuild the generated solution and get this error.
https://i.imgur.com/bZ8QUZF.png
Please advise.
Thanks.
use cmake .. -G"Visual Studio 16 2019" -Tv142 -A Win32
I can't quite make out details in picture, but you have failure accessing the Cocos library.
I got Cocos2d-x 3.17.2 working on VS2017 for cpp-test on Win10.
The generated Win32 solution for some reason did not include the cocos library.
I had to manually include libcocos2d, librecast, and libSpine projects in solution, fix dependencies and add libcocos2d resource to cpp-test project to make it compile.
As an aside, I am finding the test code quite helpful for showing how to accomplish things - just find a test doing what you are trying to do, and examine / step through the code to see how.
If you still have problems, perhaps ask for help on the Cocos2d-x forum:
https://discuss.cocos2d-x.org/
so I am trying to compile openjdk8 from sources, but I am stuck at missing files problem in the end of compilation process...
Here is the software that I use:
Windows 7 SP1 x64
Windows SDK for Windows 7.1
Microsoft .NET Framework 4
Visual Studio 2010 Express Edition
GNU make 3.82 (compiled by myself)
Freetype 2.3 (compiled by myself)
Oracle JDK 1.7 update 71
Direct X 9.0 (August 2009)
Cygwin
Here are the manuals which I was reading from:
Official README
Royvanrijn's build guide
Some other build guide
Build guide using MSYS
With all these guides I am able to let it compile, however during the Building Images - step , I get an error that some files are missing ( and they are indeed missing ) , which makes me think that something has gone wrong during the build...
There are several points where I afraid I might be doing something wrong...
Cygwin
Right now I use cygwin version 2.8. The openjdk configure script requires cygwin version >1.7 but fails to recognize that 2.8 is greater than 1.7 and throws me an error, so i've tweaked the script (made build work like 2 months ago)...
./configure
My configure command looks as follows:
./configure --disable-ccache --with-freetype=/cygdrive/c/freetype
Maybe I need more arguments here to make it work ( note that i've copied self compiled make executable to cygwin bin folder, so that i dont need to provide its location )
Visual Studio C++ 2010 Express
I would rather try Professional Trial version, but it cannot be found anywhere anymore... (except torrents...) I have a strong feeling that Express version is not suitable for openjdk build. I also get that error with missing ammintrin.h file, but it is easily resolved by creating the empty header file in the include folder of Visual Studio installation.
My basic procedure of building is:
Install all the software above
hg clone http://hg.openjdk.java.net/jdk8/jdk8
./get_source.sh
./configure --disable-ccache --with-freetype=/cygdrive/c/freetype`
make clean images
However, here how it ends :
Does anyone have any clue of how to solve this?
I found the proper fix: using the Cygwin installer, downgrade Grep to 2.27, which properly ignores CRLF line endings.
Run the Cygwin setup (e.g. setup-x86_64.exe)
Advance through the setup wizard until you get to the package selection
Choose "Full" from the View drop-down menu
Type "grep" into the search field
Click the icon in the New column until it shows a 2.x version (2.27 as of this writing)
Click Next and then Finish.
I found myself in the same position as you, except in my case I need OpenJDK build to be repeatable, so "run make repeatedly until it finishes" wasn't an acceptable solution.
Through some experimenting, I found the root cause:
grep was failing because the file being processed had Windows line endings (CRLF)
The Windows line endings were due to the fact that the file is generated by a Java app (fixpaths) which emits platform-native line endings
Identifying fixpaths led me to an old OpenJDK e-mail thread, which reported that some users were having the same problem and fixed it by downgrading.
This gave me the idea to try downgrading grep. I did so, and it worked.
So, after couple of days at this task my only approach was to ignore the errors with the missing files and continue extracting files... This resulted in still working jdk image, which i currently use. My guess is that the errors come frome Oracle boot jdk. Since i am compiling an openjdk, it cannot find oracleJDK files in its headers and thus produces errors.
So, if anyone also gets same errors a me, try to ignore the missing files error and continue the images build.
the question was asked before, but the solution did not Change anything for me. I had Problems connecting to my Android device so I reinstalled the CTP2 of Multi device hybrid apps. Now the Build process is not working any more. I get the following errors on a new blank solution:
Error 2 Cannot find module 'q' D:\TFS\W1\trunk...\EXEC 1 1 BlankCordovaAppHelloWorld
Error 3 The command ""C:\Users\\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaAppHelloWorld" --language "en-US"" exited with code 8. C:\Users\\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 182 5 BlankCordovaAppHelloWorld
I already restored the System to a restore Point and reinstalled everything over and over but without success....???
Kind regards,
Markus
Edit:
I I try to install ripple manually I get the following warning (I don't know if this means that the install failed or not)
npm WARN engine ripple#0.1.1: wanted: {"node":"0.8.x"} (current: {"node":"0.10.30","npm":"1.4.21"}) C:\Users\\AppData\Roaming\npm\ripple -> C:\Users\\AppData\Roaming\npm\node_modules\ripple\ripple.js ripple#0.1.1 C:\Users\\AppData\Roaming\npm\node_modules\ripple
├── commander#0.5.2
└── colors#0.6.2
You will need to uninstall your vs-mda and vs-mda-targets and then reinstall them specifying the full path to those folders under the visual studio installation folder.
Source: Cannot create new project (VS2013 and multi-hybrid device app)
In my case, I was using java JDK x64 (including JRE), Visaul Studio 2015 in Windows 7 x64, my solution: uninstall NodeJS x86 then reboot, install NodeJS x64 and then it worked!
I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib's and whatnot.
I found some instructions for building the release using cmake at http://opencv.willowgarage.com/wiki/InstallGuide . I downloaded the latest and greatest cmake, and tried to follow the instructions, but I was guessing. No joy.
I specified VC++9 when I did the "configure," but cmake built a VC++ 6 dsw file. No vcproj. I converted the dsw into a vc++9 vcproj anyway, just to see if it would work. Nope. It compiled lots of files, but many failed because it could not find omp.h. Sure enough, it's not there, anywhere. The build log said, 'A tool returned an error code from "Performing Custom Build Step".'
I am lost.
Ideally, I would like to find a full installation with all the files pre-built for Win32 vc++ 2008. Failing that, I need instructions that even I can follow. Short sentences and small words, but lots of them.
Please help!
UPDATE: I tried to build just CXCORE. It complained, "cannot open file 'VCOMPD.lib'" There's that OMP again.
For version 2.0, you must build the project from source.
Here's what you will need:
The OpenCV installer.
CMake. Here's the CMake installer.
Instructions for using CMake to install OpenCV-2.0.01-win32. Those instructions need an extra step if you are using a vc++ Express edition. In that case you must un-check ENABLE_OPENMP when running the CMake GUI.
Instructions for setting up an application project. (Thanks to mloskot for this find.)
If you've installed OpenCV-2.0.0a-win32.exe then it will install pre-built DLLs and libs. Then you just have to follow the instructions in this tutorial.
I recommend that you wipe the folder you previously installed OpenCV2.0 in and reinstall it.
Update:
Well sorry it didn't work out. I suggest the following then: check out the latest version from the SVN repository, https://code.ros.org/svn/opencv/trunk/opencv with any SVN client - I use TortoiseSVN.
Then run CMake (I see you've already installed it) on the source folder and then compile the Solution file. This should work - it does for me.
I apologize for my old answer - I had started off with OpenCV a few months ago in the same way and assumed that downloading the Gold version would still work - apparently not.
OMP
The OMP issue may arise from the checked Enable OpenMP in the CMake config. Try unchecking that .. might solve your initial problem.
I followed Jive Dadson's procedure to get OpenCV2.0 to work on Visual Studio 2010 Express (disabled OMP).
All went good until compilation of the generated stuff in Debug and Release. In both cases got this error: "LINK : fatal error LNK1181: cannot open input file '../../lib/Release/cv200.lib'"
in debug the only difference is that the library is cv200d.lib.
EDIT: I solved by downloading the latest svn snapshot for OpenCV2.0. One additional thing on Vista/7: it may be good to execute CMake as administrator.
Download OpenCV installer for Windows
Read OpenCV-2.0.0a-win32.Readme.Please.txt
Follow OpenCV with Visual C++ 6.0, 2005 Express, and 2008 Express in order to create project using OpenCV