halley
halley copied to clipboard
Error in running Cmake
Hi,
Friend, I come across your engine, I found it this could be a nice code to learn 3D game. But i not familiar with the CMake, and got some error. What can I do?
You're missing the SDL2 library on your system. CMake was not able to find it. Install it and that should solve the error.
On windows, first , go to https://buildbot.libsdl.org/sdl-builds/sdl-visualstudio/?C=M;O=D and download the newest version then unzip it somewhere, C:\Users\work\halley-all\SDL
for example.
Second, download prebuilt boost library and install somewhere, C:\Users\work\boost
for example.
Finally, create a build folder in halley, and run
cmake -G "Visual Studio 15 2017 Win64" -DHALLEY_PATH=../halley -DBUILD_HALLEY_TOOLS=0 -DBUILD_HALLEY_TESTS=0 -DCMAKE_INCLUDE_PATH="include" -DCMAKE_LIBRARY_PATH="libs" -DBOOST_ROOT="C:\Users\work\boost" -DSDL2_INCLUDE_DIR="C:\Users\work\halley-all\SDL\include" -DSDL2_LIBRARY="C:\Users\work\halley-all\SDL\lib" -DBoost_USE_STATIC_LIBS=1 ..
So you can get a .sln, namely visual studio solution file. Open it and enjoy!
same problems with me
please suggest what to do
On windows, first , go to https://buildbot.libsdl.org/sdl-builds/sdl-visualstudio/?C=M;O=D and download the newest version then unzip it somewhere,
C:\Users\work\halley-all\SDL
for example. Second, download prebuilt boost library and install somewhere,C:\Users\work\boost
for example.Finally, create a build folder in halley, and run
cmake -G "Visual Studio 15 2017 Win64" -DHALLEY_PATH=../halley -DBUILD_HALLEY_TOOLS=0 -DBUILD_HALLEY_TESTS=0 -DCMAKE_INCLUDE_PATH="include" -DCMAKE_LIBRARY_PATH="libs" -DBOOST_ROOT="C:\Users\work\boost" -DSDL2_INCLUDE_DIR="C:\Users\work\halley-all\SDL\include" -DSDL2_LIBRARY="C:\Users\work\halley-all\SDL\lib" -DBoost_USE_STATIC_LIBS=1 ..
So you can get a .sln, namely visual studio solution file. Open it and enjoy!
I have followed these step but still not working