![]() |
SCONS : command scons in error [SOLVED] - 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: SCONS : command scons in error [SOLVED] (/showthread.php?tid=1391) |
SCONS : command scons in error [SOLVED] - perlin - 12-07-2010 hello, sorry but I'm not english speaker, so will you excuse me in words! My soft: linux Mandriva 2008.1 version vdrift-2010-6-30 problem: command "scons" make error since its launching: ".../vdrift-2010-06-30/SConstruct", line 9: opts = Variables('vdrift.conf', ARGUMENTS) " And when I look at that line 9, its is talking of "vdrift.conf" file; that file is empty!! Why? il I retry to unzip vdrift-2010-6-30 , always the same empty file !!! what's the bug? thank you for an answer Perlin 8) :oops: - thelusiv - 12-07-2010 What version of SCons are you using? vdrift.conf is always empty before you run scons. Are you sure the directory is writable? - perlin - 12-08-2010 Thanks scons version is: 0.97.2 and if I try with scons-local, version 0-96-95, it's same error ! vdrift.conf is writable so? :? - thelusiv - 12-08-2010 SCons 0.97.2 is really old. What directory are you running SCons from? Can you update SCons? Could you post exactly what you are running to get the error? - perlin - 12-12-2010 Hello, thanks for your advice! I've loaded up a Scons'recent version (it's now scons-2.0.1-1 ) and I've retried : ![]() ... except, errors are much more on my computer ! do I've same problems, a mixing of conflicting files ? for example: I have tried to put some expressions in cpp.file "fbobject.cpp", "GLEW-ARB_framebuffer_object" , but it appears always not declared; yet, "GLEW_ARB followed by others objects (but not by framebuffer_object) appears in "/usr/include/GL/glew.h " ... I can't correct all the errors, no? too many! so, there is surly a true solution ! here below a copy of screen I specify that vdrift-2010-06-30 is in directory "/usr/lib" [root@localhost vdrift-2010-06-30]# 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 scons: done reading SConscript files. scons: Building targets ... CPP build/fbobject.o In file included from include/fbtexture.h:12, from include/fbobject.h:12, from src/fbobject.cpp:1: include/glstatemanager.h: In member function 'void GLSTATEMANAGER::BindFramebuffer(GLuint)': include/glstatemanager.h:98: erreur: '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:25: erreur: 'GL_TEXTURE_RECTANGLE' was not declared in this scope include/fbtexture.h: In constructor 'FBTEXTURE::FBTEXTURE()': include/fbtexture.h:59: erreur: '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: erreur: 'GLEW_ARB_framebuffer_object' was not declared in this scope src/fbobject.cpp:146: erreur: 'glGenFramebuffers' was not declared in this scope src/fbobject.cpp:161: erreur: 'glGenRenderbuffers' was not declared in this scope src/fbobject.cpp:162: erreur: 'GL_RENDERBUFFER' was not declared in this scope src/fbobject.cpp:162: erreur: 'glBindRenderbuffer' was not declared in this scope src/fbobject.cpp:171: erreur: 'glRenderbufferStorageMultisample' was not declared in this scope src/fbobject.cpp:176: erreur: 'glRenderbufferStorage' was not declared in this scope src/fbobject.cpp:181: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:181: erreur: 'GL_DEPTH_ATTACHMENT' was not declared in this scope src/fbobject.cpp:181: erreur: 'glFramebufferRenderbuffer' was not declared in this scope src/fbobject.cpp:193: erreur: 'GL_COLOR_ATTACHMENT0' was not declared in this scope src/fbobject.cpp:212: erreur: 'glGenRenderbuffers' was not declared in this scope src/fbobject.cpp:213: erreur: 'GL_RENDERBUFFER' was not declared in this scope src/fbobject.cpp:213: erreur: 'glBindRenderbuffer' was not declared in this scope src/fbobject.cpp:214: erreur: 'glRenderbufferStorageMultisample' was not declared in this scope src/fbobject.cpp:215: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:215: erreur: 'GL_COLOR_ATTACHMENT0' was not declared in this scope src/fbobject.cpp:215: erreur: 'glFramebufferRenderbuffer' was not declared in this scope src/fbobject.cpp:228: erreur: 'GL_COLOR_ATTACHMENT0' was not declared in this scope src/fbobject.cpp:234: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:234: erreur: 'glFramebufferTexture2D' was not declared in this scope src/fbobject.cpp:240: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:240: erreur: 'glFramebufferTexture2D' was not declared in this scope src/fbobject.cpp:259: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:259: erreur: 'GL_DEPTH_ATTACHMENT' was not declared in this scope src/fbobject.cpp:259: erreur: 'glFramebufferTexture2D' was not declared in this scope src/fbobject.cpp:265: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:265: erreur: 'GL_DEPTH_ATTACHMENT' was not declared in this scope src/fbobject.cpp:265: erreur: 'glFramebufferTexture2D' was not declared in this scope src/fbobject.cpp: In function 'std: ![]() src/fbobject.cpp:307: erreur: 'GL_FRAMEBUFFER_UNDEFINED' was not declared in this scope src/fbobject.cpp:310: erreur: 'GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT' was not declared in this scope src/fbobject.cpp:313: erreur: 'GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER' was not declared in this scope src/fbobject.cpp:316: erreur: 'GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER' was not declared in this scope src/fbobject.cpp:319: erreur: 'GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT' was not declared in this scope src/fbobject.cpp:322: erreur: 'GL_FRAMEBUFFER_UNSUPPORTED' was not declared in this scope src/fbobject.cpp:325: erreur: 'GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE' was not declared in this scope src/fbobject.cpp:328: erreur: '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: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:337: erreur: 'glCheckFramebufferStatus' was not declared in this scope src/fbobject.cpp:339: erreur: 'GL_FRAMEBUFFER_COMPLETE' was not declared in this scope src/fbobject.cpp: In member function 'void FBOBJECT: ![]() src/fbobject.cpp:370: erreur: 'glDeleteFramebuffers' was not declared in this scope src/fbobject.cpp:373: erreur: 'glDeleteRenderbuffers' was not declared in this scope src/fbobject.cpp:379: erreur: 'glDeleteRenderbuffers' was not declared in this scope src/fbobject.cpp: In member function 'void FBOBJECT::Begin(GLSTATEMANAGER&, std::ostream&, float)': src/fbobject.cpp:403: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:403: erreur: 'glFramebufferTexture2D' was not declared in this scope src/fbobject.cpp: In member function 'void FBOBJECT::End(GLSTATEMANAGER&, std::ostream&)': src/fbobject.cpp:428: erreur: 'GL_READ_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:428: erreur: 'glBindFramebuffer' was not declared in this scope src/fbobject.cpp:429: erreur: 'GL_DRAW_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:431: erreur: 'glCheckFramebufferStatus' was not declared in this scope src/fbobject.cpp:431: erreur: 'GL_FRAMEBUFFER_COMPLETE' was not declared in this scope src/fbobject.cpp:436: erreur: 'glBlitFramebuffer' was not declared in this scope src/fbobject.cpp:441: erreur: 'GL_FRAMEBUFFER' was not declared in this scope src/fbobject.cpp:441: erreur: 'glBindFramebuffer' was not declared in this scope src/fbobject.cpp:454: erreur: 'glGenerateMipmap' was not declared in this scope scons: *** [build/fbobject.o] Error 1 scons: building terminated because of errors. thanks for study this situation Perlin ![]() - NaN - 12-12-2010 You need a more recent glew version like 1.5.3. - perlin - 12-14-2010 :? yes, thank you: I've installed a recent glew'version: 1-5-7 and all errors are gone out ! yet, new problems appeard: it's a video card problem !! not supported! I am going to search if a missing package could fix that but I believe that answer is buying a new card ! some games like "extreme tux racer" or "mania drive" are yet working ... below a copy of error, would you have an idea ? " [root@localhost lib]# /usr/local/bin/vdrift INFO: Multi-processor system detected. Run with -multithreaded argument to enable mul ). INFO: Starting VDrift: development-full, Version: exporté, 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 INFO: The last VDrift startup was unsuccessful. Settings have been set to failsafe defaults. Your original VDrift.config file was backed up to VDrift.config.backup INFO: SDL initialization successful INFO: SDL video query was successful INFO: Disabling antialiasing INFO: Display change was successful: 800x600x16 16z fullscreen=0 INFO: Video card information: Vendor: ATI Technologies Inc. Renderer: ATI Radeon HD 2400 XT Version: 2.1.7412 Release Maximum texture size: 8192 Maximum varying floats: 68 Using GLEW 1.5.7 INFO: Your video card doesn't support framebuffer objects. Disabling shaders. Erreur de segmentation " Perlin :?: - NaN - 12-14-2010 Quote:but I believe that answer is buying a new cardThe game runs on my intel notebook(not suitable for gaming per definition). Look for glGenerateMipmap(GL_TEXTURE_CUBE_MAP); in texture.cpp and comment it out. - perlin - 12-15-2010 OK there is below: " if (info.GetMipMap()) { glTexParameteri(GL_TEXTURE_CUBE_MAP,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_CUBE_MAP,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glGenerateMipmap(GL_TEXTURE_CUBE_MAP); } loaded = true; glDisable(GL_TEXTURE_CUBE_MAP); " some wrong parameters ? Thanks Perlin ![]() - NaN - 12-15-2010 It is a bug. A check is missing. glGenerateMipmap(GL_TEXTURE_CUBE_MAP); is GL3 functionality not supported by your card -> will cause a segfault. A quick fix is to remove this line(or comment it out). By the way, if you are compiling anyway why not using the latest code. It has the issue fixed. Just make sure to check out the latest data too. - perlin - 12-17-2010 Right! :lol: I've commented the line "gl Generate ..." and it works !! thanks NaN and thelusiv ... Perhaps, I will install latest code, if there is not too package'dependancies for change. Goodbye :wink: |