[solved] Unable to compile under Arch Linux

Discuss the future of Warzone 2100 with us.
Post Reply
kalsan
New user
Posts: 5
Joined: 10 Aug 2012, 19:26

[solved] Unable to compile under Arch Linux

Post by kalsan »

Hi there!
I'm using Arch Linux and I'm unable to compile versions 3.1.1 and 3.1.2. The following error happens:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/include/libpng16    -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DNDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc -I/usr/include/libdrm  -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/qt4/QtCore   -g -Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/qt4/QtCore  -fstack-protector -MT screen.o -MD -MP -MF .deps/screen.Tpo -c -o screen.o screen.cpp
screen.cpp: In Funktion »void screen_EnableMissingFunctions()«:
screen.cpp:264:22: Fehler: ungültige Umwandlung von »PFNGLSHADERSOURCEARBPROC {aka void (*)(unsigned int, int, const char**, const int*)}« in »PFNGLSHADERSOURCEPROC {aka void (*)(unsigned int, int, const char* const*, const int*)}« [-fpermissive]
   __glewShaderSource = __glewShaderSourceARB;
I think this might be due to missing dependencies. What am I doing wrong?
thx in advance,
Kalsan
Last edited by kalsan on 14 Feb 2015, 15:13, edited 1 time in total.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Unable to compile

Post by Per »

Try updating your GLEW library. You could also try commenting out the call to this function and its entire implementation. It is only needed on very old systems.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Unable to compile

Post by vexed »

No, that is backwards. Downgrade to 1.10, since the openGL guys changed APIs.
That means, that ugly hack won't work without an even uglier cast. See #4218
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
kalsan
New user
Posts: 5
Joined: 10 Aug 2012, 19:26

Re: Unable to compile

Post by kalsan »

Thanks, that did the trick!
In case another arch user finds this: do the following:
1. install lib32-glew1.10 from AUR: https://aur.archlinux.org/packages/lib32-glew1.10/
2. install warzone2100-git from AUR: https://aur.archlinux.org/packages/warzone2100-git/
In my case, I did it with yaourt, now it worked fine.
Cheers,
Kalsan
Post Reply