Hello
I have a problem with compiling vdrift-2009-06-15 using scons. As the source that i obtained only supports scons i cannot use make.
the error that i get when i try to compile it in GNOME Terminal is :
scons: Reading SConscript files …
scons: warning: The Options class is deprecated; use the Variables class instead.
File “/home/mohit/Download/vdrift-2009-06-15/SConstruct”, line 9, in <module>
scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File “/home/mohit/Download/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/ai.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet -I/usr/include/SDL src/ai.cpp
In file included from include/model_joe03.h:7,
from include/car.h:11,
from src/ai.cpp:2:
include/model.h:13:21: error: GL/glew.h: No such file or directory
scons: *** [build/ai.o] Error 1
scons: building terminated because of errors.
Please Tell Me What is it i am doing wrong.
I have another problem while compiling boswars
Here is the error
scons: Reading SConscript files …
scons: warning: The Options class is deprecated; use the Variables class instead.
File “/home/mohit/Download/boswars-2.5-src/SConstruct”, line 34, in DefineOptions
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File “/home/mohit/Download/boswars-2.5-src/SConstruct”, line 54, in <module>
Using build_conf_cache.py
scons: done reading SConscript files.
scons: Building targets …
g++ -o build/release/pathfinder/astar.o -c -fsigned-char -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -ffast-math -DUSE_VORBIS -DUSE_THEORA -DUSE_OGG -DHAVE_STRCASESTR -DHAVE_STRNLEN -DHAVE_X -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/include -I/usr/include/SDL -Iengine/include -Iengine/guichan/include engine/pathfinder/astar.cpp
engine/pathfinder/astar.cpp: In function ‘int AStarAddNode(int, int, int, int)’:
engine/pathfinder/astar.cpp:413: error: ‘stderr’ was not declared in this scope
engine/pathfinder/astar.cpp:414: error: ‘fprintf’ was not declared in this scope
engine/pathfinder/astar.cpp:420: error: ‘abs’ was not declared in this scope
engine/pathfinder/astar.cpp: In function ‘int AStarFindSimplePath(int, int, int, int, int, int, int, int, int, int, char*, int, void*)’:
engine/pathfinder/astar.cpp:789: error: ‘abs’ was not declared in this scope
engine/pathfinder/astar.cpp: In function ‘int AStarFindPath(int, int, int, int, int, int, int, int, int, int, char*, int, void*)’:
engine/pathfinder/astar.cpp:884: error: ‘abs’ was not declared in this scope
engine/pathfinder/astar.cpp: In function ‘void SetAStarFixedUnitCrossingCost(int)’:
engine/pathfinder/astar.cpp:1069: error: ‘stderr’ was not declared in this scope
engine/pathfinder/astar.cpp:1069: error: ‘fprintf’ was not declared in this scope
engine/pathfinder/astar.cpp: In function ‘void SetAStarMovingUnitCrossingCost(int)’:
engine/pathfinder/astar.cpp:1079: error: ‘stderr’ was not declared in this scope
engine/pathfinder/astar.cpp:1079: error: ‘fprintf’ was not declared in this scope
engine/pathfinder/astar.cpp: In function ‘void SetAStarUnknownTerrainCost(int)’:
engine/pathfinder/astar.cpp:1089: error: ‘stderr’ was not declared in this scope
engine/pathfinder/astar.cpp:1089: error: ‘fprintf’ was not declared in this scope
scons: *** [build/release/pathfinder/astar.o] Error 1
scons: building terminated because of errors.
Please Provide Solution to this problem.