The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: onfurtherreview on October 17, 2012, 07:21:00 pm



Title: Need help compiling de-cleansing mod in Ubuntu linux
Post by: onfurtherreview on October 17, 2012, 07:21:00 pm
The subject title pretty much says it all, but I'm apparently incapable of figuring out how to apply the de-cleansing mod to version 0.7.0 in Ubuntu 12.04. Could someone please walk me through the process?

I've played through the game six times already without any cheating, but I'm really wanting to spend a lot more time on exploration.


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: oldlaptop on October 17, 2012, 10:44:02 pm
Firstly, download the patch against UQM 0.7.0: http://sourceforge.net/projects/uqm-mods/files/De-Cleansing Mod/0.7.0/uqm-0.7.0-dcm.diff/download (http://sourceforge.net/projects/uqm-mods/files/De-Cleansing Mod/0.7.0/uqm-0.7.0-dcm.diff/download)

Secondly, you will need to apply this patch to a freshly unpacked UQM 0.7.0 source tree. For example:

Code: (from within the top level of the UQM source tree)
$ patch -p0 < /path/to/uqm-0.7.0-dcm.diff

Now you simply compile UQM normally, as described in the INSTALL file in UQM source. Note that in Ubuntu you should be able to ensure UQM has all the packages it needs to compile with:

Code:
$ sudo apt-get build-dep uqm


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: Kohr-Ah Death on October 18, 2012, 12:51:01 am
That is exactly correct. When I get more time I will expand the section on unified diffs and compiling my mods for Mac and Linux.


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: onfurtherreview on October 18, 2012, 12:58:02 am
Thank you both very much.


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: onfurtherreview on October 18, 2012, 01:58:25 am
I feel even more like an idiot now--I was running version 0.6.2 to start with! No wonder nothing worked right!


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: onfurtherreview on October 19, 2012, 01:50:25 am
Up and running, working fine! Had to dig around for a lot of the dependencies... I'll try to remember what all I went through to get it up and running, but it mostly involved making sure to install the "-dev" of anything that doesn't immediately work when you install the regular version from the repositories.


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: oldlaptop on October 19, 2012, 03:35:21 am
Up and running, working fine! Had to dig around for a lot of the dependencies... I'll try to remember what all I went through to get it up and running, but it mostly involved making sure to install the "-dev" of anything that doesn't immediately work when you install the regular version from the repositories.

As I mentioned before, the easy way to do that in Ubuntu or Debian is 'apt-get build-dep uqm' (assuming the appropriate repository is available, this appears to be 'multiverse' in Ubuntu). If you ever happen to be compiling something that is *not* in Ubuntu/Debian repositories (or which is an outdated version in the repositories as UQM happens to be, fortunately UQM dependencies did not change in 0.7.0  :)), you generally do need to manually install the -dev package for any dependency it has (those contain header files which tell the compiler what functionality the library provides).


Title: Re: Need help compiling de-cleansing mod in Ubuntu linux
Post by: Kohr-Ah Death on October 22, 2012, 03:27:41 am
Glad you were able to get it built.