The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
November 02, 2024, 09:05:02 am
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)
| | |-+  Compiling
« previous next »
Pages: 1 2 [3] 4 Print
Author Topic: Compiling  (Read 10756 times)
chenjesuwizard
*Many bubbles*
***
Offline Offline

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #30 on: August 20, 2012, 02:43:25 pm »

Damn, so I have to start again?
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling
« Reply #31 on: August 21, 2012, 08:52:53 am »

Damn, so I have to start again?
Not at all. What content are you using, anyway? SVN? The standard 0.7 packages?
Logged

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

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #32 on: August 21, 2012, 06:02:49 pm »

Just the standard source code off of the website.
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling
« Reply #33 on: August 22, 2012, 12:54:18 pm »

I'm assuming you're using the official UQM 0.7.0 downloads. uqm-0.7.0-source.tgz does not contain any content; you need at least the base content package uqm-0.7.0-content.uqm. If you've already installed UQM 0.7.0 using e.g. uqm-0.7.0-installer.exe, you can find this content package there.

If you haven't compiled UQM with support for compressed files, you will need to unpack the content packages into the content directory. You should end up with a content directory containing:
  • A small file called version
  • Default key setting files uqm.key and menu.key
  • Content description file uqm.rmp
  • A directory called base containing all the actual UQM base content

Alternatively, you could try installing the zlib development files for MinGW and recompiling UQM with support for compressed files.
Logged

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

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #34 on: August 22, 2012, 04:57:41 pm »

Oh yes!! It worked. Thanks for all your help.
So, in the future, if I want to recompile, I should just delete the current uqm-debug.exe and replace it with the new one?
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling
« Reply #35 on: August 22, 2012, 09:36:00 pm »

I'm glad that worked out for you. I should try to put together some new instructions for compiling UQM with MinGW some time. This thread should make a nice troubleshooting section.

gcc will happily overwrite files while compiling without any warning. If you recompile, uqm-debug.exe will be overwritten by the final (linking) step.
Logged

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

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #36 on: August 23, 2012, 12:03:42 am »

Why not just create a mingw with all the necessary things, and then an UQM file with all the necessary things and create instructions similair to these:
How to compile UQM on Windows:
1. Download the version of Mingw and Msys which is specific to UQM (including all dlls and linked files)
2. Download this file: UQM (to place the exe in later)
3. Go to Msys, in the file Mingw, then load it.
4. Load the source code file into the Msys prompt:
Cd /c/path to file
5. Type "./build.sh uqm config" press ENTER.
6. Type "./build.sh uqm depend" press ENTER.
7. Type "./build.sh uqm" press ENTER.
8. Once that has finished, go into the source code and take "UQM-Debug.exe" and place it in the UQM
that you downloaded earlier.
9. Play "Uqm-debug.exe".

That way, an inexperienced user, like me, can compile easily, with a lot less hassle.

This is what I set up for myself, so that I can remember how to do it (plus the first two steps added now)
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling
« Reply #37 on: August 25, 2012, 02:59:01 pm »

Why not just create a mingw with all the necessary things, and then an UQM file with all the necessary things and create instructions similair to these:
The main argument against doing this, if I remember correctly, is that there may be newer versions of the libraries used by UQM with desirable changes such as bug or compatibility fixes, and having to wait for a third party to update the UQM build environment and redistribute it is often not worth the trouble. There's also the matter of trust and reliability: by downloading from the original developers or port maintainers, the risks of something being wrong with the code you download is smaller. That said, your solution would almost certainly work well enough for personal use or experimentation. In fact, many of us are already relying on our Linux distributions to package all the libraries for us. Also, many bug fixes to e.g. SDL can be done after compilation by replacing the DLL.

It appears you're not the only one to suggest making a MinGW distribution like this.

Are you volunteering to maintain an UQM-specific MinGW distribution? Cheesy
Logged

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

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #38 on: August 25, 2012, 05:04:08 pm »

I wish, but I don't have the know-how to be able to do something like that. I'd end up messing it up for everyone. Perhaps, when I get more familiar with everything. I mean, I could update the DLLs and such, but I'm never sure what else needs updating. Or how to update them.
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Compiling
« Reply #39 on: August 25, 2012, 10:13:52 pm »

I'm with chenjesuwizard on this one.
Having a premade zip would save so much headache for us few who don't do linux/simular.
I'm still using my folder of mingw that I finally got working about 4 months ago. I'm afraid that if I try to update it, I will break something. Which is another side effect of not having a premade zip to download and go.
Once I started compiling uqm I was having so much fun tweaking things. But the road to get there was filled with pitfalls, frustration and disappointment.
« Last Edit: August 26, 2012, 03:58:09 am by Defender » Logged
chenjesuwizard
*Many bubbles*
***
Offline Offline

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #40 on: August 25, 2012, 10:24:05 pm »

If you want my most recent version, you can have my Mingw and UQM file.
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Compiling
« Reply #41 on: August 26, 2012, 03:56:49 am »

sure... Grin
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Compiling
« Reply #42 on: August 26, 2012, 09:42:49 am »

Who does the Windows release builds for UQM? Michael Martin? At least that's whom Bugzilla sends bug reports about the Windows build to. In any case, it would probably be useful to have the "official" UQM build environment.

Then there's the snapshots. I suspect those are actually cross-compiled on Linux, aren't they? Meep-eep?
Logged

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

Posts: 158


I support Project6014


View Profile
Re: Compiling
« Reply #43 on: August 26, 2012, 03:09:23 pm »

sure... Grin
Alright. Well, I'm on a different computer at the moment but when I get home, I'll upload my build. You want a file to put the uqm-debug.exe and the Mingw, right?
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 817



View Profile
Re: Compiling
« Reply #44 on: August 26, 2012, 04:35:08 pm »

I was thinking more along the lines of just mingw (recent) folder. I can compile uqm myself but thank you.
Logged
Pages: 1 2 [3] 4 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!