The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: ijustwannaplaythegame on November 28, 2010, 09:09:27 am



Title: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 09:09:27 am
Hello, i created this account right now just to see if i can get some help getting the game to work.

I am compiling from source. Using Ubuntu 10.10

When i give the command to install i get the following error.


Downloads/uqm-0.6.2/sc2$ sudo ./build.sh uqm install
  CC       obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o
src/sc2code/libs/sound/decoders/modaud.c:36: fatal error: mikmod.h: No such file or directory
compilation terminated.
make: *** [obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o] Error 1


Its obvious to be some problem with sound...  some missing file..  any help would be greatly appreciated!


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 09:16:24 am
ok...  managed to get passed that ...  but now.. i get this errors..


uqm-0.6.2/sc2/src/sc2code/libs/sound/decoders/modaud.c:410: undefined reference to `Player_SetPosition'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x5c): undefined reference to `VC_SampleLoad'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x60): undefined reference to `VC_SampleUnload'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x64): undefined reference to `VC_SampleSpace'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x68): undefined reference to `VC_SampleLength'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x78): undefined reference to `VC_SetNumVoices'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x7c): undefined reference to `VC_PlayStart'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x80): undefined reference to `VC_PlayStop'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x8c): undefined reference to `VC_VoiceSetVolume'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x90): undefined reference to `VC_VoiceGetVolume'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x94): undefined reference to `VC_VoiceSetFrequency'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x98): undefined reference to `VC_VoiceGetFrequency'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0x9c): undefined reference to `VC_VoiceSetPanning'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xa0): undefined reference to `VC_VoiceGetPanning'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xa4): undefined reference to `VC_VoicePlay'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xa8): undefined reference to `VC_VoiceStop'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xac): undefined reference to `VC_VoiceStopped'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xb0): undefined reference to `VC_VoiceGetPosition'
obj/debug/src/sc2code/libs/sound/decoders/modaud.c.o:(.data+0xb4): undefined reference to `VC_VoiceRealVolume'
collect2: ld returned 1 exit status
make: *** [uqm-debug] Error 1


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: Novus on November 28, 2010, 09:59:38 am
First, Ubuntu already has binary packages for UQM 0.6.2, so you don't need to compile from source.

Second, it's probably easier to use the built-in MikMod in UQM than the system library, so use ./build.sh uqm config to change tracker music support from "System libmikmod" to "Included libmikmod".


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 09:08:54 pm
Thanks. Managed to change the settings and it says installed... 
but for some reason, I run the command   uqm to launch it, and i get a message that it is not installed...  ???

uqm-0.6.2/sc2$ sudo ./build.sh uqm install
Installing system-dependent data...
Installing system-independent data...
Installing binaries...

uqm
The program 'uqm' is currently not installed.  You can install it by typing:
sudo apt-get install uqm


Yes, I know about the pre-packaged deb files for ubuntu.
BUT, i just want to compile it from source because .. well, to be honest, I want to cheat! (LOL)
I ¬®tweeked¬® the  human.c  file to make the earthling ship a bit stronger. If I could modify the ship using the deb file I would and wouldn waste time (both mine and yours) posting here  :(


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 09:16:03 pm
I suppose I could just download the debs and perhaps unpack it and modify and repackage...  :-\

Anyway, thanks a lot for your help, it is greatly appreciated.


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: oldlaptop on November 28, 2010, 10:17:01 pm
Try typing the absolute path to the file, should be something like this:

Code:
/usr/local/games/bin/uqm


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 10:56:43 pm
one problem after the other..

Ok, its installed  found it just as you stated by /usr/local/games/bin/uqm

but... now THIS

$ /usr/local/games/bin/uqm
The Ur-Quan Masters v0.6.2 (compiled Nov 28 2010 04:32:43)
This software comes with ABSOLUTELY NO WARRANTY;
for details see the included 'COPYING' file.

Netplay protocol version 0.3. Requiring remote UQM version 0.5.4.
Initializing base SDL functionality.
Using SDL version 1.2.14 (compiled with 1.2.14)
Could not initialize SDL: No available video device.


I know SDL is installed, was the first thing I installed when I went to download uqm (instructions on the site made it clear, sdl was needed). SDL downloaded from here http://www.libsdl.org/download-1.2.php (http://www.libsdl.org/download-1.2.php)





Title: Re: fatal error: mikmod.h: No such file or directory
Post by: ijustwannaplaythegame on November 28, 2010, 11:15:16 pm
ok... this is not a game related problem this time...  (apparently a gnome-dev problem missing files...) trying the solution at the end of this forum thread http://ubuntuforums.org/showthread.php?t=530538 (http://ubuntuforums.org/showthread.php?t=530538)  will update after its done and let you know if FINALLY can get the game to run. (crossing fingers, arms, legs and everything i can think of)


Title: Re: fatal error: mikmod.h: No such file or directory
Post by: Novus on November 29, 2010, 08:53:56 am
You don't need to compile SDL; just use the development packages (http://ubuntu-gamedev.wikispaces.com/How-To+Setup+SDL+for+games+development). That way, you don't end up with multiple versions of SDL causing all sorts of trouble.