Forums
compilation error - 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: compilation error (/showthread.php?tid=1348)



compilation error - soczkers - 09-26-2010

My system: debian lenny 5.0.2
kernel 2.6.26-2-686
I instaled all packs whose in README.


And I have this:

Code:
scons
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
sh: svnversion: command not found
scons: done reading SConscript files.
scons: Building targets ...
    CPP build/fbobject.o
In file included from include/fbtexture.h:13,
                 from include/fbobject.h:12,
                 from src/fbobject.cpp:1:
include/glstatemanager.h: In member function ‘void GLSTATEMANAGER::BindFramebuffer(GLuint)’:
include/glstatemanager.h:98: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
include/glstatemanager.h:98: error: ‘glBindFramebuffer’ was not declared in this scope
In file included from include/fbobject.h:12,
                 from src/fbobject.cpp:1:
include/fbtexture.h: At global scope:
include/fbtexture.h:26: error: ‘GL_TEXTURE_RECTANGLE’ was not declared in this scope
include/fbtexture.h: In constructor ‘FBTEXTURE::FBTEXTURE()’:
include/fbtexture.h:60: error: ‘GL_COLOR_ATTACHMENT0’ was not declared in this scope
src/fbobject.cpp: In member function ‘void FBOBJECT::Init(GLSTATEMANAGER&, std::vector<FBTEXTURE*, std::allocator<FBTEXTURE*> >, std::ostream&, bool)’:
src/fbobject.cpp:145: error: ‘GLEW_ARB_framebuffer_object’ was not declared in this scope
src/fbobject.cpp:146: error: ‘glGenFramebuffers’ was not declared in this scope
src/fbobject.cpp:161: error: ‘glGenRenderbuffers’ was not declared in this scope
src/fbobject.cpp:162: error: ‘GL_RENDERBUFFER’ was not declared in this scope
src/fbobject.cpp:162: error: ‘glBindRenderbuffer’ was not declared in this scope
src/fbobject.cpp:171: error: ‘glRenderbufferStorageMultisample’ was not declared in this scope
src/fbobject.cpp:176: error: ‘glRenderbufferStorage’ was not declared in this scope
src/fbobject.cpp:181: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:181: error: ‘GL_DEPTH_ATTACHMENT’ was not declared in this scope
src/fbobject.cpp:181: error: ‘glFramebufferRenderbuffer’ was not declared in this scope
src/fbobject.cpp:193: error: ‘GL_COLOR_ATTACHMENT0’ was not declared in this scope
src/fbobject.cpp:212: error: ‘glGenRenderbuffers’ was not declared in this scope
src/fbobject.cpp:213: error: ‘GL_RENDERBUFFER’ was not declared in this scope
src/fbobject.cpp:213: error: ‘glBindRenderbuffer’ was not declared in this scope
src/fbobject.cpp:214: error: ‘glRenderbufferStorageMultisample’ was not declared in this scope
src/fbobject.cpp:215: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:215: error: ‘GL_COLOR_ATTACHMENT0’ was not declared in this scope
src/fbobject.cpp:215: error: ‘glFramebufferRenderbuffer’ was not declared in this scope
src/fbobject.cpp:228: error: ‘GL_COLOR_ATTACHMENT0’ was not declared in this scope
src/fbobject.cpp:234: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:234: error: ‘glFramebufferTexture2D’ was not declared in this scope
src/fbobject.cpp:240: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:240: error: ‘glFramebufferTexture2D’ was not declared in this scope
src/fbobject.cpp:259: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:259: error: ‘GL_DEPTH_ATTACHMENT’ was not declared in this scope
src/fbobject.cpp:259: error: ‘glFramebufferTexture2D’ was not declared in this scope
src/fbobject.cpp:265: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:265: error: ‘GL_DEPTH_ATTACHMENT’ was not declared in this scope
src/fbobject.cpp:265: error: ‘glFramebufferTexture2D’ was not declared in this scope
src/fbobject.cpp: In function ‘std::string GetStatusString(GLenum)’:
src/fbobject.cpp:307: error: ‘GL_FRAMEBUFFER_UNDEFINED’ was not declared in this scope
src/fbobject.cpp:310: error: ‘GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT’ was not declared in this scope
src/fbobject.cpp:313: error: ‘GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER’ was not declared in this scope
src/fbobject.cpp:316: error: ‘GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER’ was not declared in this scope
src/fbobject.cpp:319: error: ‘GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT’ was not declared in this scope
src/fbobject.cpp:322: error: ‘GL_FRAMEBUFFER_UNSUPPORTED’ was not declared in this scope
src/fbobject.cpp:325: error: ‘GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE’ was not declared in this scope
src/fbobject.cpp:328: error: ‘GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS’ was not declared in this scope
src/fbobject.cpp: In member function ‘bool FBOBJECT::CheckStatus(std::ostream&)’:
src/fbobject.cpp:337: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:337: error: ‘glCheckFramebufferStatus’ was not declared in this scope
src/fbobject.cpp:339: error: ‘GL_FRAMEBUFFER_COMPLETE’ was not declared in this scope
src/fbobject.cpp: In member function ‘void FBOBJECT::DeInit()’:
src/fbobject.cpp:370: error: ‘glDeleteFramebuffers’ was not declared in this scope
src/fbobject.cpp:373: error: ‘glDeleteRenderbuffers’ was not declared in this scope
src/fbobject.cpp:379: error: ‘glDeleteRenderbuffers’ was not declared in this scope
src/fbobject.cpp: In member function ‘void FBOBJECT::Begin(GLSTATEMANAGER&, std::ostream&, float)’:
src/fbobject.cpp:403: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:403: error: ‘glFramebufferTexture2D’ was not declared in this scope
src/fbobject.cpp: In member function ‘void FBOBJECT::End(GLSTATEMANAGER&, std::ostream&)’:
src/fbobject.cpp:428: error: ‘GL_READ_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:428: error: ‘glBindFramebuffer’ was not declared in this scope
src/fbobject.cpp:429: error: ‘GL_DRAW_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:431: error: ‘glCheckFramebufferStatus’ was not declared in this scope
src/fbobject.cpp:431: error: ‘GL_FRAMEBUFFER_COMPLETE’ was not declared in this scope
src/fbobject.cpp:436: error: ‘glBlitFramebuffer’ was not declared in this scope
src/fbobject.cpp:441: error: ‘GL_FRAMEBUFFER’ was not declared in this scope
src/fbobject.cpp:441: error: ‘glBindFramebuffer’ was not declared in this scope
src/fbobject.cpp:454: error: ‘glGenerateMipmap’ was not declared in this scope
scons: *** [build/fbobject.o] Error 1
scons: building terminated because of errors.

What should I do?

Sorry for my english.


- soczkers - 09-26-2010

new glewSmile and now:

Code:
debian:/home/cikol/vd/bin# vdrift
INFO: Multi-processor system detected.  Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Version: , O/S: Unix-like
INFO: Home directory: /root
INFO: Settings file: /root/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: /usr/local/share/games/vdrift/data
      DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Log file: /root/.vdrift/log.txt
Creating link /root/.kde/socket-debian.
Created link from "/root/.kde/socket-debian" to "/tmp/ksocket-root"
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 24z fullscreen=0
ERROR: You don't have an NVIDIA or ATI/AMD card.  This game may not run correctly or at all.
INFO: Video card information:
      Vendor: Tungsten Graphics, Inc
      Renderer: Mesa DRI Intel(R) 945GM 20061017 x86/MMX/SSE2
      Version: 1.3 Mesa 7.0.4
      Maximum texture size: 2048
      Maximum varying floats: 0
      Using GLEW 1.5.6
INFO: Your video card doesn't support framebuffer objects.  Disabling shaders.
ERROR: Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
ERROR: Error loading non-shader render configuration file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
vdrift: src/graphics.cpp:697: void GRAPHICS_SDLGL::DisableShaders(const std::string&, std::ostream&): Assertion `0' failed.
SIGABRT detected, releasing the mouse
Przerwane
debian:/home/cikol/vd/bin#

Quote:ERROR: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.

It is mean this game is not for me? Sad


- NaN - 09-27-2010

Code:
Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
Make sure that the file is there. Or adjust vdrift data path accordingly.