compile problem with 96.0 in myGL.cpp

compile problem with 96.0 in myGL.cpp

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

compile problem with 96.0 in myGL.cpp

Post by dansan »

On Gentoo x86_64
MAKEOPTS="-j1"
USE="ai dedicated default headless java tcmalloc -custom-cflags -custom-march -debug -lto -profile {-test} -test-ai"
gcc (Gentoo 4.8.3 p1.1, pie-0.5.9) 4.8.3 (tested also with gcc (Gentoo 4.7.4 p1.0, pie-0.5.5) 4.7.4)
dev-libs/boost-1.55.0-r2
media-libs/mesa-10.3.0 (tested also with media-libs/mesa-10.2.7)

Code: Select all

[ 52%] Building CXX object rts/builds/legacy/CMakeFiles/engine-legacy.dir/__/__/Rendering/GL/myGL.cpp.o
cd /gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring-96.0_build/rts/builds/legacy && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++   -DBOOST_NO_FENV_H -DSPRING_DATADIR=\"/usr/share/games/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DTHREADPOOL -DUSE_LIBSQUISH -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -fuse-ld=gold  -std=gnu++11 -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread                               -O2      -Wno-unknown-pragmas -DNDEBUG -I/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/rts/lib/lua/include -I/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/include/AL -I/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/rts -I/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring-96.0_build/src-generated/engine -I/usr/include/SDL -I/usr/include/freetype2 -I/usr/include/AL    -o CMakeFiles/engine-legacy.dir/__/__/Rendering/GL/myGL.cpp.o -c /gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/rts/Rendering/GL/myGL.cpp
/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/rts/Rendering/GL/myGL.cpp: In function ‘void LoadExtensions()’:
/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring_96.0/rts/Rendering/GL/myGL.cpp:374:68: error: invalid conversion from ‘void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*) {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}’ to ‘GLDEBUGPROCARB {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)}’ [-fpermissive]
   glDebugMessageCallbackARB(&OpenGLDebugMessageCallback, NULL);
                                                                    ^
rts/builds/legacy/CMakeFiles/engine-legacy.dir/build.make:4105: recipe for target 'rts/builds/legacy/CMakeFiles/engine-legacy.dir/__/__/Rendering/GL/myGL.cpp.o' failed
make[2]: *** [rts/builds/legacy/CMakeFiles/engine-legacy.dir/__/__/Rendering/GL/myGL.cpp.o] Error 1
make[2]: Leaving directory '/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring-96.0_build'
CMakeFiles/Makefile2:3789: recipe for target 'rts/builds/legacy/CMakeFiles/engine-legacy.dir/all' failed
make[1]: *** [rts/builds/legacy/CMakeFiles/engine-legacy.dir/all] Error 2
make[1]: Leaving directory '/gentoo/tmp/build/working/portage/games-strategy/spring-96.0-r1/work/spring-96.0_build'
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: compile problem with 96.0 in myGL.cpp

Post by abma »

downgrade glew or apply this patch:

https://github.com/spring/spring/commit ... 646c8637f9
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: compile problem with 96.0 in myGL.cpp

Post by dansan »

Thank you, patch worked.
I sent a new package/patch to the gentoo overlay maintainer.
Post Reply

Return to “Linux”