The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2021, 09:51:46 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Compiling UQM with MinGW
« previous next »
Pages: 1 [2] Print
Author Topic: Compiling UQM with MinGW  (Read 11504 times)
Gekko
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 199


Arena regular


View Profile
Re: Compiling UQM with MinGW
« Reply #15 on: November 23, 2010, 09:49:08 pm »

The latest version of the SVN seems to work without any fixes for me. As someone requested I made this. Simply the same tutorial, but with console output. These steps compile the latest SVN trunk on WIndows 7, 64-bits.
Logged

Visit #uqm-arena and play a game of Net Melee!
Try the Net Melee Improvement mod
thevagrantphilosopher
Zebranky food
*
Offline Offline

Posts: 2



View Profile WWW
Re: Compiling UQM with MinGW
« Reply #16 on: December 25, 2010, 06:41:06 pm »

first and foremost, thanks for putting these instructions together!  I used these instructions and was able to get UQM to build on a windows 7 box. I'm posting to warn others that there is a newer version of this file:

http://libsdl.org/release/SDL-devel-1.2.13-mingw32.tar.gz

that I had trouble with. Once I used the 1.2.13 version everything worked.
Logged
Jormasteri
Zebranky food
*
Offline Offline

Posts: 10



View Profile
Re: Compiling UQM with MinGW
« Reply #17 on: December 07, 2011, 04:45:25 pm »

Sorry for bumping this thread but no matter what I try I cannot get UQM compiled.
I tried following these instructions to the letter but always get :

*** [uqm-debug.exe] Error 1

(trying to compile the newest UQM 0.7.0 with latest versions of all files mentioned in the guide.)

ALSO, when I compile uqm config, I get these :
build/unix/config_proginfo_host: line 251: libmikmod-config: command not found
build/unix/config_proginfo_host: line 252: libmikmod-config: command not found
build/unix/config_proginfo_host: line 253: libmikmod-config: command not found

P.S. before error I get with compiling uqm.exe, there are "undefined references" to oggaud.* files
I guess these mean my vorbis install is fubar?
« Last Edit: December 07, 2011, 06:14:48 pm by Jormasteri » Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Compiling UQM with MinGW
« Reply #18 on: December 07, 2011, 05:34:57 pm »

You can use the internal version of libmikmod. (rerun "./build.sh uqm config")
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Jormasteri
Zebranky food
*
Offline Offline

Posts: 10



View Profile
Re: Compiling UQM with MinGW
« Reply #19 on: December 07, 2011, 07:30:10 pm »

*sigh*

The latest error I get is : obj/release/src/libs/uio/match.c.o:match.c:(.text+0x764): undefined reference to 'regfree'


etc, etc.
Logged
Jormasteri
Zebranky food
*
Offline Offline

Posts: 10



View Profile
Re: Compiling UQM with MinGW
« Reply #20 on: December 07, 2011, 08:54:39 pm »

Now that I somehow miraculoysly got it compiled, I get :
---------------------------
The Ur-Quan Masters
---------------------------
The Ur-Quan Masters encountered a fatal error.
Part of the log follows:

The Ur-Quan Masters v0.7.0 (compiled Dec  7 2011 21:00:32)
This software comes with ABSOLUTELY NO WARRANTY;
for details see the included 'COPYING' file.

Netplay protocol version 0.4. Netplay opponent must have UQM 0.6.9 or later.

  *** FATAL ERROR: Could not load basic content ***

UQM requires at least the base content pack to run properly.
This file is typically called uqm-0.7.0-content.uqm.  UQM was expecting
it in the E:/Pelit/UQM/content/packages directory.
Either your installation did not install the content pack at all, or it
installed it in a different directory.

Fix your installation and rerun UQM.

  *******************


---------------------------
OK  
---------------------------

And yes, I did copy the compiled uqm-debug.exe to game directory...



EDIT: Still fighting to get it working, this time on my laptop. No matter what I do I have problems with audio files it seems.
I get errors with ogg / vorbis, namely last problem is:
ld.exe: cannot find  -lvorbisfile
ld.exe: cannot find  -lvorbis
ld.exe: cannot find  -logg

What is the correct install method for logg and vorbis since I cannot seem to get them right no matter what?
« Last Edit: December 08, 2011, 08:15:06 am by Jormasteri » Logged
Jormasteri
Zebranky food
*
Offline Offline

Posts: 10



View Profile
Re: Compiling UQM with MinGW
« Reply #21 on: December 08, 2011, 12:55:41 pm »

I wasn't made for this stuff. I don't even know what changed that compiling succeeded.
But now it always gives error about basic content missing even though it is there,

Here's what stderr.txt says:

Initializing base SDL functionality.
Using SDL version 1.2.14 (compiled with 1.2.14)
Using config dir 'C:/Users/satpe/AppData/Roaming/uqm/'
Using 'C:/uqm/content' as base content dir.
Warning: Could not mount 'uqm-0.7.0-content.uqm': No such device.
Warning: Could not mount 'uqm-0.7.0-3domusic.uqm': No such device.
Warning: Could not mount 'uqm-0.7.0-content.uqm': No such device.
Warning: Could not mount 'uqm-0.7.0-voice.uqm': No such device.
Warning: Could not mount 'uqm-remix-disc1.uqm': No such device.
Warning: Could not mount 'uqm-remix-disc2.uqm': No such device.
Warning: Could not mount 'uqm-remix-disc3.uqm': No such device.
0 available addon packs.
Saved games are kept in C:/Users/satpe/AppData/Roaming/uqm/save/.
Logged
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3862


We did. You did. Yes we can. No.


View Profile
Re: Compiling UQM with MinGW
« Reply #22 on: December 08, 2011, 03:02:47 pm »

Well, clearly it's got the wrong base directory - C:\uqm\ probably doesn't even exist. Try using the command line option to set the base directory appropriately. That'd be --contentdir=.\

... I think. Maybe it'd be /contentdir=.\ or something lik that if you're working from a windows command prompt.

Anyway, try running it with the --help option, to get some help on running it from the command line.
Logged
Jormasteri
Zebranky food
*
Offline Offline

Posts: 10



View Profile
Re: Compiling UQM with MinGW
« Reply #23 on: December 08, 2011, 04:08:01 pm »

Well that's what's funny. C:\uqm is folder where I had source files & where I compiled.
Of course I had the base content file in proper folder under \uqm set up too.
I also tried having separate install with installer, copying uqm-debug.exe there but still it gives same error.

But gotta try those command line switches next.

EDIT: It would appear zlib was not installed correctly, as unzipping content files solved this.
« Last Edit: December 09, 2011, 06:00:01 am by Jormasteri » Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!