The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
January 28, 2020, 11:52:31 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 10769 times)
Valaggar
Guest


Email
Compiling UQM with MinGW
« on: February 24, 2007, 08:40:00 pm »

http://koti.mbnet.fi/lonnberg/MinGWUQM.txt
Following this instructions rigorously, I tried to compile UQM. MSYS acted like it compiled UQM, but I can't find a compiled UQM anywhere.
Help please!
Logged
wherewp
Zebranky food
*
Offline Offline

Posts: 13



View Profile
Re: Compiling UQM with MinGW
« Reply #1 on: February 24, 2007, 09:21:31 pm »

Hello,

If you just want to play the standard uqm, note that there is a precompiled Windows binary available on the download page.

Anyhow, do you think you could post the last 10-20 lines that appeared on the console here?

-Where
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling UQM with MinGW
« Reply #2 on: February 25, 2007, 08:55:26 am »

http://koti.mbnet.fi/lonnberg/MinGWUQM.txt
Following this instructions rigorously, I tried to compile UQM. MSYS acted like it compiled UQM, but I can't find a compiled UQM anywhere.
Help please!
I wrote those instructions, so it's only fair that I handle the fallout. Sad

The executable should be right in the directory you ran all those commands in, if the compilation worked. If you can't find it, something must have gone wrong.

In any case, you can copy the MSYS output to the Windows clipboard by highlighting it. Please save this to a file and upload it somewhere I can read it.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Valaggar
Guest


Email
Re: Compiling UQM with MinGW
« Reply #3 on: February 25, 2007, 09:44:43 am »

http://www.savefile.com/files/516253
The console output is there.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Compiling UQM with MinGW
« Reply #4 on: February 25, 2007, 10:02:03 am »

You need the wspiapi.h file from the Microsoft Platform SDK if you want to compile with Netplay.
Logged

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

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling UQM with MinGW
« Reply #5 on: February 25, 2007, 10:27:11 am »

Ah, right, I haven't updated the instructions since netplay was added (I was hoping this requirement would go away).

For your convenience, you can download this file separately here. Put it in the MinGW/include directory.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling UQM with MinGW
« Reply #6 on: February 25, 2007, 02:56:27 pm »

Thank you. It is solved.
Thank you. Instructions corrected.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Compiling UQM with MinGW
« Reply #7 on: February 25, 2007, 04:54:46 pm »

(I was hoping this requirement would go away).
So am I. But neither MinGW nor Cygwin has getaddrinfo(), probably because Microsoft implemented it in a header file. And I don't think we are allowed to redistribute Microsoft's wspiapi.h file (though we are allowed to distribute programs built with it).

Logged

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

Posts: 568



View Profile
Re: Compiling UQM with MinGW
« Reply #8 on: October 12, 2009, 03:29:09 pm »

... why isn't this useful file on the UQM SVN repository? Cheesy
Logged
Megagun
Enlightened
*****
Offline Offline

Gender: Male
Posts: 580


Moo


View Profile
Re: Compiling UQM with MinGW
« Reply #9 on: October 12, 2009, 04:59:59 pm »

Uh...
And I don't think we are allowed to redistribute Microsoft's wspiapi.h file (though we are allowed to distribute programs built with it).
Logged
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
Re: Compiling UQM with MinGW
« Reply #10 on: October 12, 2009, 08:11:35 pm »

I meant the .txt Tongue
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling UQM with MinGW
« Reply #11 on: October 13, 2009, 06:04:05 pm »

... why isn't this useful file on the UQM SVN repository? Cheesy
... Because then people would expect me to keep it up to date? Wink
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Gekko
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 199


Arena regular


View Profile
Re: Compiling UQM with MinGW
« Reply #12 on: June 13, 2010, 09:14:01 pm »

Bumping this ages old thread to update some of the stuff

http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz

^ doesn't install on my Windows 7, 64-bit. Instead i used
http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.gz

Code:

Jesse Kaukonen@GEKKO-MAIN-WIN7 /e/uqmsource/uqm-0.6.2/sc2
$ C_INCLUDE_PATH=/usr/include:/usr/local/include ./build.sh uqm
  LINK     uqm-debug
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: ei l├Âydy -lvorbisfile
collect2: ld returned 1 exit status
make: *** [uqm-debug] Error 1


That " ei l├Âydy " is Finnish for "not found" (with umlauts broken)

So something needs to be changed to link to libvorbis properly. Suggestions?

EDIT: Solved. I got some help on #sc2

libvorbis installs to incorrect directory. It should install to /usr/local/lib, but instead installs the .dlls to /usr/local/bin.

Copy the .dll files to the correct directory:

cd /usr/local/bin
cp * ../lib

Then open /uqm-0.6.2/sc2/build/unix/config_proginfo_host

Find this part of the file

MINGW32*|CYGWIN*|cegcc)
    LIB_vorbisfile_CFLAGS=""
    LIB_vorbisfile_LDFLAGS="-lvorbisfile -lvorbis -lm -logg"
;;

Change the middle lines to

    LIB_vorbisfile_CFLAGS="-I/usr/local/include"
    LIB_vorbisfile_LDFLAGS="-L/usr/local/lib -lvorbisfile -lvorbis -lm -logg"

Then in /uqm-0.6.2/sc2/ run ./build.sh uqm config

Then build again, works for me
« Last Edit: June 13, 2010, 11:05:30 pm by Gekko » Logged

Visit #uqm-arena and play a game of Net Melee!
Try the Net Melee Improvement mod
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling UQM with MinGW
« Reply #13 on: June 14, 2010, 09:26:32 am »

Thanks for the information on Windows 7 compatibility; I only have XP and Linux on my own equipment and limited access to Vista. I may have enough time to check and update the Windows building instructions in a few weeks (I have some vacation time that I have to use or lose).
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Quinarbre
Frungy champion
**
Offline Offline

Posts: 60



View Profile
Re: Compiling UQM with MinGW
« Reply #14 on: September 28, 2010, 12:33:05 am »

I'm at loss here. I've tried to follow those instructions too, I've tried Gekko's fix, I've copied the headers and dlls nearly everywhere, to no avail : "vorbisfile not found" again and again.

For some reason, the config script seems to superbly ignore vorbisfile, and skip directly to vorbisidec ; buildlog always ends with :
Quote
gcc -L/usr/lib -lmingw32 -lSDLmain -lSDL -mwindows -L/usr/lib -lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lvorbisidec /tmp/build.1292.tmp.c.o -o /tmp/build.1292.tmp.out
c:\Progra~1\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lvorbisidec

collect2: ld returned 1 exit status

Failed program was:
+++ START /tmp/build.1292.tmp.c
int main(void) {
    return 0;
}
+++ END /tmp/build.1292.tmp.c
and never mentions vorbis nor vorbisfile.

I'm using mingw32 under Vista, everything else is working perfectly, and I even get sounds when I play, but I guess libmikmod is the one producing them, and I got no music at all.

EDIT : nevermind. pkgconfig was abusively called (and not found), when there was a perfectly functional vorbis.
The cleanest workaround I found was to edit config_proginfo_host and change:
Quote
case "$HOST_SYSTEM" in
    ARMV5|WINSCW|GCCE)
        LIB_vorbisfile_DETECT="false"
        ;;
    *)
        LIB_vorbisfile_DETECT="try_pkgconfig_lib vorbisfile vorbisfile"
        LIB_vorbisfile_DEPEND_DETECT_BIN="pkgconfig"
        ;;
esac

for :

Quote
case "$HOST_SYSTEM" in
    ARMV5|WINSCW|GCCE)
        LIB_vorbisfile_DETECT="false"
        ;;
    MINGW32*)
        LIB_vorbisfile_DETECT="true"
        ;;
    *)
        LIB_vorbisfile_DETECT="try_pkgconfig_lib vorbisfile vorbisfile"
        LIB_vorbisfile_DEPEND_DETECT_BIN="pkgconfig"
        ;;
esac

... which of course won't work if you don't have a proper vorbis install.
« Last Edit: September 30, 2010, 11:03:59 am by Quinarbre » 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!