The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2024, 10:04:53 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Building the Source for Dummies
« previous next »
Pages: [1] Print
Author Topic: Building the Source for Dummies  (Read 2154 times)
rk
Zebranky food
*
Offline Offline

Gender: Male
Posts: 12


SC2 = great!


View Profile
Building the Source for Dummies
« on: April 23, 2004, 08:01:21 pm »

After a long night spent poking, I finally managed to make a successful build (in Windows).  Here's what I can remember doing; hopefully it helps any other future newbies.  Note I used Visual Studio.NET, but previous versions of Visual C++ should work similarly.

1) Create a parent directory to hold everything.  I'll call it UM.

2) Go to http://sc2.sourceforge.net/downloads.html.  Download uqm-0.3-source.tgz.  Unzip it.  It should all be in a directory called UM\uqm-0.3.

3) Go to http://www.libsdl.org/download-1.2.php.  Download SDL.  You want the SDL-devel-1.2.7-VC6.zip file listed under Win32 under Development Libraries.  Unzip.  (Note:  Before I saw this was there, I downloaded SDL-1.2.7.zip under Source Code.  It comes with a file VisualC7.htm that describes how to build the DLL and LIB files required.  You need to extract VisualC7.zip to the current directory.)

4) Get SDL-Image from http://www.libsdl.org/projects/SDL_image/.  Sorry I didn't record the details of this part, but it was pretty straightforward.

5) Get ZLIb from http://www.gzip.org/zlib/.  You want the "zlib compiled DLL".

6) Get "Ogg Vorbis Win32 SDK (1.0.1)" http://www.vorbis.com/download_win_1.0.1.psp from (under "Source Code / Development Tools"), and unzip to UM.

7) Install the OpenAL SDK, available at http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45

8) Under UM\uqm-0.3\SRC\MSVC++, open UrQuanMasters.dsw.  If using .NET, choose to convert.  Then save all (yes, create a SLN file), and close .NET.  Now open the .SLN file.  Always open the .SLN file from here on, not the DSW or DSP ones, or changes you make to project settings may not get saved (at least they didn't for me).

8) Under Project/Properties/C/General, set Additional Include Directories to:
.;..;..\sc2code;..\sc2code\libs;..\sc2code\ships;"..\..\..\SDL-1.2.7\include";"..\..\..\SDL_image-1.2.3";"..\..\..\oggvorbis-win32sdk-1.0.1\include";..\..\..\zlib121\include;"C:\Program Files\OpenAL 1.0 Software Development Kit\include"

9) Under Project/Properties/Linker/General, set Additional Library Directories to:
"..\..\..\SDL-1.2.7\VisualC7\SDL\Debug";"..\..\..\SDL-1.2.7\VisualC7\SDLmain\Debug";"..\..\..\SDL_image-1.2.3\VisualC\Debug";"..\..\..\oggvorbis-win32sdk-1.0.1\lib";..\..\..\zlib121\lib;"C:\Program Files\OpenAL 1.0 Software Development Kit\libs"

10) Under Project/Properties/Linker/Input, Additional Dependancies, change zlib.lib to zdll.lib

11) Copy these files to the uqm-0.3 directory:  SDL.DLL, SDL_image.dll, JPEG.DLL, LIBPNG1.DLL, ZLIB.DLL (from SDL_image-1.2.3\VisualC\graphics\lib), ZLIB1.DLL, VORBISFILE.DLL, OGG.DLL, VORBIS.DLL.  These can all be found somewhere under UM.  This step is so the compiled .EXE will have the files in needs to run.

12) Copy uqm-0.3-content.zip (available at http://sc2.sourceforge.net/downloads.html or in your game directory if you first installed the released version) to uqm-0.3\content\packages.  Optionally copy the uqm-0.3-voice.zip and uqm-0.3-3domusic.zip here too.

13) You should now be able to Build the project and Run the UM\uqm-0.3\uqmdebug.exe file.
« Last Edit: April 24, 2004, 05:07:50 am by richardk » Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Building the Source for Dummies
« Reply #1 on: April 23, 2004, 08:27:42 pm »

As long as you're compiling the source yourself, you might as well compile the cvs version. See http://sourceforge.net/cvs/?group_id=59452.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.â€
Pages: [1] 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!