Trouble compiling today's CVS

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Beowulf
Mercenary
Mercenary
Posts: 121
Joined: Thu Jan 15, 2004 5:42 pm

Trouble compiling today's CVS

Post by Beowulf »

hi,

I'm getting the following error trying to compile today's cvs version:

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1  -DUSE_STENCIL_BUFFER=1 -DDATA_DIR=\"/usr/share/games/vegastrike/data\"  -I/usr/include/python2.3 -DHAVE_PYTHON=1  -DUSE_BOOST_128=1 -I../../src/boost  -I../../src   -pipe  -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT gl_globals.o -MD -MP -MF ".deps/gl_globals.Tpo" -c -o gl_globals.o gl_globals.cpp; \
then mv -f ".deps/gl_globals.Tpo" ".deps/gl_globals.Po"; else rm -f ".deps/gl_globals.Tpo"; exit 1; fi
In file included from gl_globals.cpp:22:
gl_globals.h:123: error: syntax error before `;' token
gl_globals.h:124: error: syntax error before `;' token
gl_globals.h:125: error: syntax error before `;' token
gl_globals.h:126: error: syntax error before `;' token
gl_globals.h:127: error: syntax error before `;' token
gl_globals.h:128: error: syntax error before `;' token
make[4]: *** [gl_globals.o] Error 1
make[4]: Leaving directory `/usr/src/vegastrike-20040724/vegastrike/src/gldrv'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/vegastrike-20040724/vegastrike/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vegastrike-20040724/vegastrike'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/vegastrike-20040724/vegastrike'
Yesterday's version compiled just fine. You can find my config.log at
http://www.hawo.stw.uni-erlangen.de/~si ... config.log.
"History is on the move, Captain. Those who cannot keep up will be left behind, to watch from a distance. And those who stand in our way, will not watch at all."
Grand Admiral Thrawn
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

You need the latest version of glext.h to fix the error.

Get it at http://oss.sgi.com/projects/ogl-sample/ABI/glext.h

Then you probably need to save it in /usr/include/GL/glext.h as root (Make a backup first).

If there is no glext.h in /usr/include/GL then do a search for it...
find /usr -name glext.h

After that, gcc will probably have to rebuild most of the vega strike files again because that file changed.

This should be put in the Compiling FAQ.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

ace123 wrote:...
This should be put in the Compiling FAQ.
Done:
http://vegastrike.sourceforge.net/phpwi ... talling#Q8

Pontiac
Guest

Post by Guest »

ok, I switched to x.org's X-Server which provides a newer version of glext.h and now vegastrike compiles.

thanks.
Post Reply