native mingw FBO build errors

native mingw FBO build errors

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

native mingw FBO build errors

Post by imbaczek »

Code: Select all

rts\Lua\LuaFBOs.cpp: In static member function 'static bool LuaFBOs::PushEntries(lua_State*)':
rts\Lua\LuaFBOs.cpp:60: error: 'GLEW_EXT_framebuffer_blit' was not declared in this scope
rts\Lua\LuaFBOs.cpp: In function 'GLenum GetBindingEnum(GLenum)':
rts\Lua\LuaFBOs.cpp:199: error: 'GL_DRAW_FRAMEBUFFER_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:199: error: 'GL_DRAW_FRAMEBUFFER_BINDING_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:200: error: 'GL_READ_FRAMEBUFFER_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:200: error: 'GL_READ_FRAMEBUFFER_BINDING_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp: In static member function 'static int LuaFBOs::BlitFBO(lua_State*)':
rts\Lua\LuaFBOs.cpp:575: error: 'glBlitFramebufferEXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:598: error: 'GL_READ_FRAMEBUFFER_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:599: error: 'GL_DRAW_FRAMEBUFFER_EXT' was not declared in this scope
rts\Lua\LuaFBOs.cpp:603: error: 'glBlitFramebufferEXT' was not declared in this scope
scons: building terminated because of errors.
scons: *** [build\rts\Lua\LuaFBOs.o] Error 1
too tired to search for a solution myself... just pointing out the problem.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

#sy:
<rattle> trepan: did you forget to commit your myGL.h? there are a number of missing declares and building fails
<trepan> no, log?
<trepan> (probably have an old glew.h)
<rattle> rts\Lua\LuaFBOs.cpp:603: error: `glBlitFramebufferEXT' was not declared in this scope
<rattle> etc
<rattle> GL_READ_FRAMEBUFFER_EXT, GL_DRAW_FRAMEBUFFER_EXT
<rattle> and some more
<trepan> ya, you need a newer glew.h
<rattle> then my/our mingw libs are outdated
<trepan> heh, copyright date on my glew.h is 2007, and for buildbot 2005
<trepan> https://sourceforge.net/project/downloa ... -win32.zip :)
<semi_> don't you check the version in scons configure
<trepan> doesn't look like it does

Apparently rattle can't build after updating the libraries though
<rattle> build\rts\Game\UI\GuiHandler.o:GuiHandler.cpp:(.text+0xd15e): undefined referenc
<rattle> e to `__GLEW_NV_depth_clamp'
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

bah, guess another lib I need to update when I finally get around to updating mingwlibs

(need to add ogg/vorbis too, possible update SDL, update boost, update glew, add wx (for settings++))
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

To save you the trouble (unitsync wouldn't build from an imported lib):
http://rattle.from-hell.net/spring/ming ... -1.4.0.zip

Don't forget to drop the glew32.dll in the spring folder.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Thanks rattle.

Currently I'm just missing ogg, vorbis, vorbisfile, wxwidgets and optionally boost 1.34
Once I got those I'll package, upload & fix buildbot.

EDIT: I just found precompiled ogg, vorbis and wx libs in Crystal Space win32libs package :P
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Image
Just doesn't include wx and boost 1.34 yet, wx wasn't in Crystal Space win32 libs package after all and I wasn't in the mood to compile stuff from source :-)
Post Reply

Return to “Engine”