amzeratul / halley

A lightweight game engine written in modern C++
https://discord.gg/T7qQqQJ
Apache License 2.0
3.59k stars 162 forks source link

Error in running Cmake #19

Open mikrokode opened 6 years ago

mikrokode commented 6 years ago

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?

error

seeekr commented 5 years ago

You're missing the SDL2 library on your system. CMake was not able to find it. Install it and that should solve the error.

charlietsao commented 4 years ago

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!

anishsingh935 commented 3 years ago

same problems with me

anishsingh935 commented 3 years ago

please suggest what to do

anishsingh935 commented 3 years ago

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