hi there.
ive followed the instructions, autogen.sh and configure seam to finish without errors, all fine.
but when i do make, it finally gets apported with those messages:
./../audio/Midi.h:103: error: ISO C++ forbids declaration of ‘Mix_Music’ with no type
./../audio/Midi.h:103: error: expected ‘;’ before ‘*’ token
In file included from intrinsics.cc:27:
./../audio/Audio.h:66: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
./../audio/Audio.h:66: error: expected ‘;’ before ‘*’ token
make[3]: *** [intrinsics.lo] Fehler 1
make[3]: Leaving directory `/media/speicher/exult/usecode'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/media/speicher/exult/usecode'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/media/speicher/exult'
make: *** [all] Fehler 2
any ideas how i could resolve this?
thx in advance
bye thomas
cant compile exult svn source on linux (debian sid)
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: cant compile exult svn source on linux (debian sid)
Mix_Music is defined in SDL_mixer.h. Maybe you don't have SDL_mixer installed correctly? Does /usr/include/SDL/SDL_mixer.h exist? Either that or maybe your include paths are messed up..
Re: cant compile exult svn source on linux (debian sid)
oh thx for the hint, i was sure it was installed correctly.. oh well... ok this error is gone, it compiles more, then i get this:
/media/speicher/exult/xdrag.cc:51: undefined reference to `XQueryTree'
/media/speicher/exult/xdrag.cc:53: undefined reference to `XFree'
/media/speicher/exult/xdrag.cc:59: undefined reference to `XGetWindowAttributes'
xdrag.o: In function `Xdnd':
/media/speicher/exult/xdrag.cc:88: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:89: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:90: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:91: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:93: undefined reference to `XInternAtom'
xdrag.o:/media/speicher/exult/xdrag.cc:94: more undefined references to `XInternAtom' follow
xdrag.o: In function `Xdnd::select_msg(XSelectionEvent&)':
/media/speicher/exult/xdrag.cc:258: undefined reference to `XGetAtomName'
/media/speicher/exult/xdrag.cc:275: undefined reference to `XGetWindowProperty'
/media/speicher/exult/xdrag.cc:307: undefined reference to `XFree'
xdrag.o: In function `Xdnd::client_msg(XClientMessageEvent&)':
/media/speicher/exult/xdrag.cc:132: undefined reference to `XGetAtomName'
/media/speicher/exult/xdrag.cc:190: undefined reference to `XSendEvent'
/media/speicher/exult/xdrag.cc:154: undefined reference to `XGetWindowProperty'
/media/speicher/exult/xdrag.cc:200: undefined reference to `XConvertSelection'
xdrag.o: In function `Xdnd':
/media/speicher/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
/media/speicher/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
collect2: ld returned 1 exit status
make[2]: *** [exult] Fehler 1
make[2]: Leaving directory `/media/speicher/exult'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/media/speicher/exult'
make: *** [all] Fehler 2
thx!
/media/speicher/exult/xdrag.cc:51: undefined reference to `XQueryTree'
/media/speicher/exult/xdrag.cc:53: undefined reference to `XFree'
/media/speicher/exult/xdrag.cc:59: undefined reference to `XGetWindowAttributes'
xdrag.o: In function `Xdnd':
/media/speicher/exult/xdrag.cc:88: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:89: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:90: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:91: undefined reference to `XInternAtom'
/media/speicher/exult/xdrag.cc:93: undefined reference to `XInternAtom'
xdrag.o:/media/speicher/exult/xdrag.cc:94: more undefined references to `XInternAtom' follow
xdrag.o: In function `Xdnd::select_msg(XSelectionEvent&)':
/media/speicher/exult/xdrag.cc:258: undefined reference to `XGetAtomName'
/media/speicher/exult/xdrag.cc:275: undefined reference to `XGetWindowProperty'
/media/speicher/exult/xdrag.cc:307: undefined reference to `XFree'
xdrag.o: In function `Xdnd::client_msg(XClientMessageEvent&)':
/media/speicher/exult/xdrag.cc:132: undefined reference to `XGetAtomName'
/media/speicher/exult/xdrag.cc:190: undefined reference to `XSendEvent'
/media/speicher/exult/xdrag.cc:154: undefined reference to `XGetWindowProperty'
/media/speicher/exult/xdrag.cc:200: undefined reference to `XConvertSelection'
xdrag.o: In function `Xdnd':
/media/speicher/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
/media/speicher/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
collect2: ld returned 1 exit status
make[2]: *** [exult] Fehler 1
make[2]: Leaving directory `/media/speicher/exult'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/media/speicher/exult'
make: *** [all] Fehler 2
thx!
Re: cant compile exult svn source on linux (debian sid)
Glad to help, but what solved your earlier problem exactly?
Your new issue is covered in the thread entitled "Problems compiling under Ubuntu"(or something like that. Ubuntu is derived from Debian. It's interesting to see that other debian distros have the same problem..
Your new issue is covered in the thread entitled "Problems compiling under Ubuntu"(or something like that. Ubuntu is derived from Debian. It's interesting to see that other debian distros have the same problem..
Re: cant compile exult svn source on linux (debian sid)
my first issue was resolved by installing the mixer libs again.....
and indeed the ubuntu thread now helped me to finish compiling.....
BUT exult wont run... it starts up alright, but then locks up, this is the error message:
Trying: `Forked'
Success!
Midi Output: Enabled
Starting forked player failed
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 13 requests (12 known processed) with 0 events remaining.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 24 requests (22 known processed) with 0 events remaining.
thx
and indeed the ubuntu thread now helped me to finish compiling.....
BUT exult wont run... it starts up alright, but then locks up, this is the error message:
Trying: `Forked'
Success!
Midi Output: Enabled
Starting forked player failed
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 13 requests (12 known processed) with 0 events remaining.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 24 requests (22 known processed) with 0 events remaining.
thx
Re: cant compile exult svn source on linux (debian sid)
Unfortunately I can't really help you with that one. I'm fairly new to *nix myself and my own compiled Exult doesn't have working sound either, though it doesn't actually crash or lock up. I haven't bothered to figure out why yet since I'm only really interested in fixing bugs at the moment, not playing the game and I imagine the problem is with my setup rather than exult..
If I do resolve my issue, I'll let you know how I fixed it in case that helps. Otherwise, hopefully one of the other helpful ppl here can sort you out.
If I do resolve my issue, I'll let you know how I fixed it in case that helps. Otherwise, hopefully one of the other helpful ppl here can sort you out.
Re: cant compile exult svn source on linux (debian sid)
Well, I managed to sort out my problem thanks to a bugreport someone else had posted a while back. The default ALSA port port should be 128 but in the source, it's set as 65. This can be changed by changing line 46 of file "audio/midi_drivers/ASLAMidiDriver.cc" to "#define ALSA_PORT "128:0"" Not sure if that'll help you or not.
Re: cant compile exult svn source on linux (debian sid)
You can also set it in exult.cfg (midi/alsa_port).
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]