Forums
Help Compiling please on Opensuse 11.2 - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5)
+--- Thread: Help Compiling please on Opensuse 11.2 (/showthread.php?tid=1314)



Help Compiling please on Opensuse 11.2 - leo_mancini - 07-13-2010

Hi all,

I am attempting to compile the software using the scons command in my Opensuse 11.2.

I have thus far been unsuccessful. Please help!

I have attached the output below.

Thank you.

Code:
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/paul/Games/vdrift-2009-06-15/SConstruct", line 9, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/paul/Games/vdrift-2009-06-15/SConstruct", line 13, in <module>
Checking for C++ header file asio.hpp... (cached) yes
Checking for C++ header file boost/bind.hpp... (cached) yes
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes
Checking for C++ header file SDL/SDL_rotozoom.h... (cached) yes
Checking for C++ header file vorbis/vorbisfile.h... (cached) yes
Checking for C++ header file GL/glew.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/forcefeedback.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/forcefeedback.cpp
g++ -o build/game.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/game.cpp
src/game.cpp: In function ‘std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > Tokenize(const std::string&, const std::string&)’:
src/game.cpp:287: warning: comparison is always true due to limited range of data type
g++ -o build/graphics.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/graphics.cpp
g++ -o build/main.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/main.cpp
g++ -o build/pathmanager.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/pathmanager.cpp
g++ -o build/texture.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/texture.cpp
src/texture.cpp:16:27: error: SDL/SDL_image.h: No such file or directory
src/texture.cpp: In member function ‘bool TEXTURE_GL::LoadCubeVerticalCross(std::ostream&)’:
src/texture.cpp:35: error: ‘IMG_Load’ was not declared in this scope
src/texture.cpp: In member function ‘bool TEXTURE_GL::LoadCube(std::ostream&)’:
src/texture.cpp:212: error: ‘IMG_Load’ was not declared in this scope
src/texture.cpp: In member function ‘bool TEXTURE_GL::Load(std::ostream&, const std::string&)’:
src/texture.cpp:333: error: ‘IMG_Load’ was not declared in this scope
scons: *** [build/texture.o] Error 1
scons: building terminated because of errors.



- NaN - 07-13-2010

Hi leo_mancini,
you are missing the sdl-image library. Make sure you've got all prerequisites: http://wiki.vdrift.net/Compiling


- leo_mancini - 07-13-2010

Thank you,

The package had a slightly different name, though I succeeded in finding this and installed it.

Thank you!