Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can't compile SFML 2.0 from snapshot  (Read 2812 times)

0 Members and 1 Guest are viewing this topic.

perryjr

  • Newbie
  • *
  • Posts: 4
    • View Profile
Can't compile SFML 2.0 from snapshot
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Can't compile SFML 2.0 from snapshot
« Reply #1 on: March 19, 2011, 09:11:19 pm »
You must install the development files of glew.
Laurent Gomila - SFML developer

perryjr

  • Newbie
  • *
  • Posts: 4
    • View Profile
Worked perfectly
« Reply #2 on: March 19, 2011, 09:18:15 pm »
Worked perfectly! Thanks for your quick response!

perryjr

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sorry =(
« Reply #3 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Can't compile SFML 2.0 from snapshot
« Reply #4 on: March 19, 2011, 11:05:31 pm »
You must upgrade libsndfile to at least version 1.0.18.
Laurent Gomila - SFML developer

perryjr

  • Newbie
  • *
  • Posts: 4
    • View Profile
Compiled! ^.^
« Reply #5 on: March 19, 2011, 11:19:08 pm »
Compiled at least! ^.^ Thanks very much for your help.

 

anything