Hi all,
i am trying to compile exult on a raspberry pi 3 with raspbian installed.
System information:
Operating System: Raspbian GNU/Linux 8 (jessie)
Kernel: Linux 4.9.28-v7+
Architecture: arm
I am using the current git HEAD.
Last commit was this: 2017-06-08 11:40 DominusExult - [master] {origin/master} {origin/HEAD} {origin/coverity_scan} The BG endgame now only shows subtitles when the Guardian speaks if speech (and audio) is enabled.
I followed along with this manual for compiling exult: https://www.raspberrypi.org/forums/view ... 78&t=77185
When compiling, i get the following compiler error:
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I. -I./headers -I./imagewin -I./shapes -I./server -I./data -I./gamemgr -I./objs -I./conf -I./files -I./gumps -I./audio -I./audio/midi_drivers -I./pathfinder -I./usecode -I./shapes/shapeinf -I/usr/local/include/SDL2 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -DXWIN -O2 -Wall -Wextra -pedantic -Wcast-qual -Wwrite-strings -Wredundant-decls -Wdisabled-optimization -fcheck-new -Wctor-dtor-privacy -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wuseless-cast -Wtrigraphs -Wuninitialized -fstrict-aliasing -Wcast-align -Wlogical-op -Wundef -Wc++11-compat -Wno-long-long -DEXULT_DATADIR=\"/home/pi/exult/share/exult\" -MT exult.o -MD -MP -MF .deps/exult.Tpo -c -o exult.o exult.cc
In file included from /usr/local/include/SDL2/SDL_version.h:31:0,
from sdl-compat.h:4,
from exult.cc:32:
/usr/local/include/SDL2/SDL_endian.h: In function ‘Uint32 SDL_Swap32(Uint32)’:
/usr/local/include/SDL2/SDL_stdinc.h:95:71: warning: useless cast to type ‘Uint32 {aka unsigned int}’ [-Wuseless-cast]
#define SDL_static_cast(type, expression) static_cast(expression)
^
/usr/local/include/SDL2/SDL_endian.h:143:12: note: in expansion of macro ‘SDL_static_cast’
return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
^
exult.cc: At global scope:
exult.cc:221:43: error: ‘WrappedConnectionNumber’ declared as an ‘inline’ variable
static inline int WrappedConnectionNumber(Display *display) {
^
exult.cc:221:43: error: ‘Display’ was not declared in this scope
exult.cc:221:52: error: ‘display’ was not declared in this scope
static inline int WrappedConnectionNumber(Display *display) {
^
exult.cc:221:61: error: expected ‘,’ or ‘;’ before ‘{’ token
static inline int WrappedConnectionNumber(Display *display) {
^
exult.cc:221:19: warning: ‘WrappedConnectionNumber’ defined but not used [-Wunused-variable]
static inline int WrappedConnectionNumber(Display *display) {
^
Makefile:808: recipe for target 'exult.o' failed
make[2]: *** [exult.o] Error 1
make[2]: Leaving directory '/home/pi/exult-source/exult'
Makefile:844: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/exult-source/exult'
Makefile:649: recipe for target 'all' failed
make: *** [all] Error 2
Can you please help me with this problem?
Best regards
Lars
Compiler error on
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Re: Compiler error on
I'd start with the latest version of SDL2 or the latest mercurial of it.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Re: Compiler error on
Hi Dominus,
thanks for the hint. That helped fixing it. In order to comply to the manual on https://www.raspberrypi.org/forums/view ... 78&t=77185 i switched to sdl1.2 with this configure command:
./configure --prefix=/home/pi/exult --with-sdl=sdl12
So this thread can be closed as fixed.
Best regards
Lars
thanks for the hint. That helped fixing it. In order to comply to the manual on https://www.raspberrypi.org/forums/view ... 78&t=77185 i switched to sdl1.2 with this configure command:
./configure --prefix=/home/pi/exult --with-sdl=sdl12
So this thread can be closed as fixed.
Best regards
Lars