Compile error [was: Attacked in the Dark]

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
Jno
Trader
Trader
Posts: 25
Joined: Sat Mar 07, 2009 5:16 pm

Compile error [was: Attacked in the Dark]

Post by Jno »

I took loki's advice and checked out the svn repository, following the instructions at http://vegastrike.sourceforge.net/media ... ntu_Linux).

Checkout, installation of dependencies and configuration went fine, but compiling failed (after 38 minutes :( ) with the following error:

Code: Select all

In file included from src/gldrv/gl_init.cpp:70:
/usr/include/GL/glx.h:27:26: error: GL/glxtokens.h: No such file or directory
src/gldrv/gl_init.cpp: In function ‘void GFXInit(int, char**)’:
src/gldrv/gl_init.cpp:460: warning: deprecated conversion from string constant to ‘char*’
src/gldrv/gl_init.cpp:460: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [src/gldrv/gl_init.o] Error 1
make[1]: Leaving directory `/usr/local/games/VegaStrike/vegastrike'
make: *** [all] Error 2

I used to compile FlightGear from source, so I'm not entirely surprised by a GL snafu, but the dependencies are apparently in place:

Code: Select all

libgl1-mesa-dev is already the newest version.
libgl1-mesa-dev set to manually installed.
...
Selecting previously deselected package glutg3-dev.
Unpacking glutg3-dev (from .../glutg3-dev_3.7-25_all.deb) ...
...
Setting up glutg3-dev (3.7-25) ...
and .configure was content with what it found:

Code: Select all

checking for GL library... yes
checking for glXGetProcAddressARB... yes
checking for GLU library... yes
checking for GL/gl.h... yes
checking for XmuGetHostname in -lXmu... no
checking for XListInputDevices in -lXi... yes
checking for glut32 library... -lutil -L/usr/lib -lSDL -lGL -lGLU -lXi -lglut32
no
checking for glut library... -lutil -L/usr/lib -lSDL -lGL -lGLU -lXi -lglut
yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
However, the compiler is quite right, there's a reference to glxtokens.h in /usr/include/GL/glx.h that is unsatisfied.
I'll see if I can update the GL headers somehow; this might be useful for anyone else with a similar problem.

Jonathan
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Attacked in the dark?

Post by loki1950 »

Jonathon do you mind if i split this post out and put it in the Compiling Problems sub-forum it will most likely catch one of the dev's eyes there there has been a few commits to the graphic sub-system so this may be a new issue.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Jno
Trader
Trader
Posts: 25
Joined: Sat Mar 07, 2009 5:16 pm

Re: Attacked in the dark?

Post by Jno »

No problem; I'll take up the thread there, since I seem to have found a fix.

Jonathan
Post Reply