So, I know its not the right place to ask this, I guess, but anyway...
Im trying to compile Flare using CMAKE... but I'm facing trouble due to this:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindSDL.cmake:172 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:34 (Find_Package)
I got to a dead end, cant think of how to pass it... could anyone help me?
See Clint's reply below.
You need the SDL Development Libraries for SDL, SDL_image, SDL_mixer, and SDL_ttf. I believe they're all version 1.2 except SDL_ttf which is 2.0.
Take a look here:
http://www.libsdl.org/download-1.2.php
You'll see "devel" versions of these libraries. They are provided for Visual C and for MinGW.
They'll contain an "include" folder and a "lib" folder. Copy these into the matching include and lib folders of your compiler. E.g. for MinGW that is C:\MinGW\include\ and C:\MinGW\lib\. Do this for all four SDL libraries.
Note: you don't need to compile the dev libraries from source; the compiled DLLs are already provided in those packages. You'll drop the DLLs into the same folder as the .exe once it's compiled.
Ty guys... I've tried, and my error log changed a bit, haha...
So now I have, after moving all the four folders into their correct places:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find SDL (missing: SDL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindSDL.cmake:172 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:34 (Find_Package)
not sure if its relevant, but the CMake seems to be having some trouble here before the error pops out:
Looking for pthread_create
Looking for pthread_create - not found.
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - found
As Im quite new to all of it, I really dont understand much yet of compiling and compilers.
I´ve copied the includes and bins from SDL-devels, image_devel, mixer_devel and ttf_devel. Any other ideas that could help me? =(
Well, seems I got to make it work... I hope you guys wont hate me if I come back soon with more bad news =P
Thanks for all the help tho :D