The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
January 19, 2021, 03:26:00 am
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)
| | |-+  Dumb linux question...
« previous next »
Pages: [1] 2 3 Print
Author Topic: Dumb linux question...  (Read 7536 times)
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1331



View Profile WWW
Dumb linux question...
« on: November 26, 2006, 12:19:02 am »

How do I install UQM on linux, specifically Ubuntu?

And do I use the same headers and libs to compile UQM under ubuntu as i would on windows or mingw?



THanks for any help
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #1 on: November 26, 2006, 11:35:26 am »

Compiling UQM on Linux is roughly the same as on MinGW, except that installing the libraries is a lot easier; just install the development and runtime versions of the libraries UQM uses and the usual compiler tools. Under Ubuntu, you'll probably want to use Synaptic (or some other APT front-end) to install the packages; you shouldn't have to find and compile any libraries yourself.

If you just want the latest release version of UQM, I think it's in Ubuntu already.
Logged

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

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #2 on: November 26, 2006, 09:29:45 pm »

cool thanks Cheesy


EDIT ::.

Funny enough, when trying to execute command "./build.sh uqm" ubuntu spits at me and says "PERMISSION DENIED", even when i use "sudo"
« Last Edit: November 26, 2006, 09:33:10 pm by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #3 on: November 26, 2006, 10:38:20 pm »

Funny enough, when trying to execute command "./build.sh uqm" ubuntu spits at me and says "PERMISSION DENIED", even when i use "sudo"
Sounds like ./build.sh and/or the files it calls have the wrong permissions (specifically, it's missing the execute permission). This may occur if you've downloaded the source as a .zip file or unpacked it to a disk partition without Unix permission support (e.g. a Windows partition). You are strongly advised to use tar or cvs or something else that correctly transfers file permissions instead, and store source trees on a Linux partition (e.g. ext3 or ReiserFS).

It may also be possible to get permission problems by unpacking the source archive as a different user to the one compiling. In general, you can get away with unpacking and compiling as a normal user and only using root for install (and that only if you install somewhere non-user-writable).
Logged

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

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #4 on: November 26, 2006, 10:44:00 pm »

Yeah, i basically did a copy and paste from one of my NTFS drives to the linux drive so that could be the problem.

i'll download from sourceforge and see what i come up with


UPDATE ::.

It works, but now i need to get the correct packages installed to build it Undecided

Another UPDATE ::.
Compiled it, now wondering how to play, or even where to put the content packages  Tongue

« Last Edit: November 26, 2006, 11:07:22 pm by Kohr-Ah Death » Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #5 on: November 27, 2006, 12:25:58 am »

Compiled it, now wondering how to play, or even where to put the content packages  Tongue
Create a directory called "packages" somewhere and put the content packages in there. In the directory you compiled to (assuming a debug build), do something like:
Code:
./uqm-debug --contentdir=/path/to/content/
Note that the "packages" part of the content directory path must be removed.

As a CVS user, I have the content directory inside the main UQM directory and usually go:
Code:
./uqm-debug --contentdir=content/
For a release build, remove the "-debug" part.
Logged

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

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #6 on: November 27, 2006, 12:54:43 am »

Thanks Novus!  Grin
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #7 on: November 27, 2006, 03:51:08 am »

Compiled it, now wondering how to play, or even where to put the content packages  Tongue
Create a directory called "packages" somewhere and put the content packages in there. In the directory you compiled to (assuming a debug build), do something like:
Code:
./uqm-debug --contentdir=/path/to/content/
Note that the "packages" part of the content directory path must be removed.

As a CVS user, I have the content directory inside the main UQM directory and usually go:
Code:
./uqm-debug --contentdir=content/
For a release build, remove the "-debug" part.

i still can't get it to work...

just to clarify though, if i had the 'packages' folder in the same folder as the 'uqm' command then i would use
Code:
uqm --contentdir=./packages
   ?

or is there something i'm missing here
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Dumb linux question...
« Reply #8 on: November 27, 2006, 04:46:46 am »

There's a file doc/users/unixinstall which should explain everything.
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: Dumb linux question...
« Reply #9 on: November 27, 2006, 11:48:48 am »

i still can't get it to work...
Could you be a little more specific?

Quote
just to clarify though, if i had the 'packages' folder in the same folder as the 'uqm' command then i would use
Code:
uqm --contentdir=./packages
   ?
You probably need "./uqm" instead of "uqm", unless your distro is putting "." in PATH (which it shouldn't, especially not in the beginning of the list, as this allows malicious scripts to be accidentally run when you think you're examining them).

Logged

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

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #10 on: November 28, 2006, 01:29:27 am »

well i got it to work, but now i need to find out how to get my FMV's to work, which will probably quite easy now that everythings installed.
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Serosis
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #11 on: December 02, 2006, 03:20:06 am »

NEW PROBLEM!

What seemed to work before hasn't worked the second time around.
I had to install Ubuntu after a HD format (i periodically format my main drive all the time)
and it seemes uqm is broken...

After following the same steps as I did last time I type 'uqm' into the terminal and it says "Fatal error: Could not find content" and i have the content folder defined as follows (--contentdir=/usr/games/share/uqm/content/) with 'packages' inside the content folder, and this is just the default install settings.

Maybe i'm just missing an important step, I'll do a quick one over and maybe just rebuild/reinstall and see if that works.
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Dumb linux question...
« Reply #12 on: December 02, 2006, 04:42:45 am »

You need the "version" file in content.
Logged

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

Gender: Male
Posts: 1331



View Profile WWW
Re: Dumb linux question...
« Reply #13 on: December 02, 2006, 05:57:26 am »

You need the "version" file in content.


Thanks, I would have never realised that one.

another issue, I can't get the ship spins nor any of the FMV's to work with my "mod".
Logged

The artist formerly known as Kohr-Ah Death.

Get your MegaMod HERE
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Dumb linux question...
« Reply #14 on: December 02, 2006, 12:57:30 pm »

another issue, I can't get the ship spins nor any of the FMV's to work with my "mod".
If none of the FMVs work, you've probably just put them in the wrong directory and/or disabled them by selecting PC intro/ending in the setup menu. Check the debug output for details.

Also, reformatting Linux partitions and reinstalling is kind of pointless (unless you're actually repartitioning your hard disk or changing filesystems). Even if you're switching distros and want a clean install, keeping your home directory is a great way to keep working from where you left off. My main PC actually uses a SuSE Linux installation that has been upgraded several times since I copied the entire partition contents from my previous computer (a trick that usually fails utterly with Windows) three years ago. The Windows partitions have, of course been reformatted since then.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Pages: [1] 2 3 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!