SFML community forums

General => General discussions => Topic started by: perryjr on March 19, 2011, 09:05:13 pm

Title: Can't compile SFML 2.0 from snapshot
Post by: perryjr on March 19, 2011, 09:05:13 pm
I'm using Linux, and CMake from the command line. It throws this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_INCLUDE_PATH
   used as include directory in directory /home/ernesto/Escritorio/sfml2/src/SFML/Graphics
GLEW_LIBRARY
    linked by target "sfml-graphics" in directory /home/ernesto/Escritorio/sfml2/src/SFML/Graphics
Title: Can't compile SFML 2.0 from snapshot
Post by: Laurent on March 19, 2011, 09:11:19 pm
You must install the development files of glew.
Title: Worked perfectly
Post by: perryjr on March 19, 2011, 09:18:15 pm
Worked perfectly! Thanks for your quick response!
Title: Sorry =(
Post by: perryjr on March 19, 2011, 09:28:35 pm
Sorry to ask again, but compiling audio gives me this other error. Some missing library or config options?

Thanks in advance for your time


[ 84%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp: In member function ‘bool sf::priv::SoundFile::OpenWrite(const std::string&, unsigned int, unsigned int)’:
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:150: error: ‘SF_FORMAT_OGG’ no se declaró en este ámbito
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:150: error: ‘SF_FORMAT_VORBIS’ no se declaró en este ámbito
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp: In static member function ‘static int sf::priv::SoundFile::GetFormatFromFilename(const std::string&)’:
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:239: error: ‘SF_FORMAT_WVE’ no se declaró en este ámbito
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:240: error: ‘SF_FORMAT_OGG’ no se declaró en este ámbito
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:241: error: ‘SF_FORMAT_MPC2K’ no se declaró en este ámbito
/home/ernesto/Escritorio/sfml2/src/SFML/Audio/SoundFile.cpp:242: error: ‘SF_FORMAT_RF64’ no se declaró en este ámbito
make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2
Title: Can't compile SFML 2.0 from snapshot
Post by: Laurent on March 19, 2011, 11:05:31 pm
You must upgrade libsndfile to at least version 1.0.18.
Title: Compiled! ^.^
Post by: perryjr on March 19, 2011, 11:19:08 pm
Compiled at least! ^.^ Thanks very much for your help.