The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: boybaboy on June 12, 2014, 01:54:58 pm

Title: Guide on compiling on WINDOWS XP
Post by: boybaboy on June 12, 2014, 01:54:58 pm
After hours of frustration and forum reading i finally got this to compile :

credits goes to the original authors i just compiled it neatly


MinGW provides the C compiler and related tools required to compile UQM. MSYS is
a minimal Unix environment which allows you to run the UQM build scripts that
allow you to build UQM without a lot of manual setup.

Download and run: MinGW installer
install in c:/mingw
DONT INSTALL MSYS !!! select mingw32-base and mingw32-gcc-g++ from basic setup only


- Download MSYS installer

- Install. Answer "yes" to questions about whether to perform post-installation
and whether you have installed MinGW. If you've used the defaults settings, your
MinGW installation is in "c:/mingw".

All command lines in these instructions are to be entered at a MSYS prompt (a
bash shell); you should have an icon on your desktop for starting one. The
usual Unix commands are valid; in particular, "cd" changes
directory. Directory names are separated by slashes instead of backslashes,
and drive N is referred to as "/N" (so, for example "C:\Downloads" is


- Download SDL development package for MinGW:
- Extract the archive. If you don't have any other extractor you'd
prefer to use, MSYS comes with tar. To unpack the SDL directory
into the current directory (anywhere is fine), use (replacing the download
tar xvfz /C/Downloads/SDL-devel-1.2.13-mingw32.tar.gz

- Ignore the SDL installation instructions (they're for the source package,
not the precompiled developer version). Instead, edit bin/sdl-config as
follows (using any text editor compatible with Unix text files; MSYS includes
vi, but almost anything else is easier to use; Notepad doesn't work,
WordPad ("write") does):
-- Change "prefix=whatever" to "prefix=/usr".

Execute (at MSYS prompt in SDL directory):

cp -rv bin include lib share /usr

- The SDL directory contains a test directory. To (optionally) test your
installation at this point you may execute in the test directory:

You can run the various test programs.


- Download VC8 development package (!):
- Extract wherever. At MSYS prompt in SDL_image directory execute:
cp -v include/* /usr/include/SDL/
cp -v lib/* /usr/lib


- Download libogg and libvorbis:
- Extract.
- Compile and install libogg:
./configure --prefix=/usr/local
make install

- Compile and install libvorbis:
LIBS="-logg -L/usr/local/lib" ./configure --prefix=/usr/local
make install


- Download zlib DLL:
- Extract. At MSYS prompt in zlib directory execute:
cp -v lib/* *.dll /usr/lib
cp -v include/* /usr/include


- Download wspiapi.h:

- Put it in the MinGW include directory (execute in containing directory):
  - mv wspiapi.h /usr/include


download pkg-config.exe and put it in C:\MinGW\bin


download libglib-2.0-0.dll put it in C:\MinGW\bin


download these files

extract all these files anywhere
Copy the DLLs for each library to \[MinGW]\lib.  
Copy the header files for each library to \[MinGW]\include,
copy the folders (ogg and vorbis) containing the header files to the include directory

then I ran in MSYS:

C_INCLUDE_PATH=/usr/include:/usr/local/include ./ uqm clean
C_INCLUDE_PATH=/usr/include:/usr/local/include ./ uqm config
C_INCLUDE_PATH=/usr/include:/usr/local/include ./ uqm


Title: Re: Guide on compiling on WINDOWS XP
Post by: Defender on June 14, 2014, 02:38:02 am
thank you this is exactly whats been needed to compile uqm. many thanks.