Forums

Full Version: <Solved> Compile Help PCLOS 2010
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to compile 2010-06-30 on PCLinuxOS 2010 and am getting the following build error:

Code:
scons: Reading SConscript files ...
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 ...
        CPP build/aabb.o
        CPP build/aabb_space_partitioning.o
        CPP build/ai.o
        CPP build/bezier.o
        CPP build/camera.o
        CPP build/camera_chase.o
        CPP build/camera_fixed.o
        CPP build/camera_free.o
        CPP build/camera_mount.o
        CPP build/camera_orbit.o
        CPP build/camera_simplemount.o
        CPP build/camera_system.o
        CPP build/car.o
        CPP build/carcontrolmap_local.o
        CPP build/cardynamics.o
        CPP build/carengine.o
        CPP build/carsuspension.o
        CPP build/collision_world.o
        CPP build/configfile.o
        CPP build/configvariable.o
        CPP build/containeralgorithm.o
        CPP build/coordinatesystems.o
        CPP build/crashdetection.o
        CPP build/endian_utility.o
        CPP build/eventsystem.o
        CPP build/fbobject.o
In file included from include/fbobject.h:12,
                 from src/fbobject.cpp:1:
include/fbtexture.h:26: error: ‘GL_TEXTURE_RECTANGLE’ was not declared in this scope
src/fbobject.cpp: In function ‘std::string GetStatusString(GLenum)’:
src/fbobject.cpp:328: error: ‘GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS’ was not declared in this scope
scons: *** [build/fbobject.o] Error 1
scons: building terminated because of errors.

Pretty sure I have all the required dependancies :?
Actually, there's a bug with scons where it will not find all of the dependencies properly... try this command in the directory for the source code for vdrift, and build again with scons.

Code:
rm -r .sconf_temp .sconsign.dblite
Didn't work, still get the same error, but thank you.

Edit: Just realized I'm using scons 1.2 :oops: Guess I'll have to update to latest stable build then see what happens.
GL_TEXTURE_RECTANGLE is defined in glew.h line 2220. Update your glew lib/header.
Updating scons didn't help. Thanks NaN I will try updating to latest version for glew.
Thanks again NaN, updating to latest glew worked.
Updating glew works !!!
Your help is much appreciated Smile