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

Posts: 158


I support Project6014


View Profile
Compiling
« on: August 14, 2012, 06:50:31 pm »

Now, I have not a great deal of computing knowledge so it's taken me a while to get this far, but I've loaded all the dlls into lib and ogg and vorbis into include. I think I did everything right, but knowing me I've missed an important step or something. Any help?
Here's the message I get:
Code:
$ ./build.sh uqm config
'echo -n' capable echo found.
Sed stream editor found.
tr found.
Make found.
build/unix/build.sh: libmikmod-config: command not found
build/unix/build.sh: libmikmod-config: command not found
build/unix/build.sh: libmikmod-config: command not found
GNU C compiler not found.
No C preprocessor found.
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 #1 on: August 14, 2012, 09:41:31 pm »

Here's the message I get:
Code:
$ ./build.sh uqm config
GNU C compiler not found.
No C preprocessor found.
It seems you don't have GCC installed. Based on your reference to DLLs, I'm assuming you're working with MinGW and MSYS and that the output you quoted is from MSYS. There are several possible causes, such as not installing MinGW before MSYS or specifying the wrong path for MinGW in the MSYS installation program. Either way, the library setup (Ogg, Vorbis, SDL...) is probably irrelevant until you fix the compiler.
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 #2 on: August 14, 2012, 11:00:26 pm »

Damn, so I have to completely reinstall both Mingw and MSYS?
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 #3 on: August 15, 2012, 12:16:19 am »

Damn, so I have to completely reinstall both Mingw and MSYS?
Not necessarily, although that's probably the easiest way. If MinGW is already in place (including GCC and so on) and the only thing that's wrong is that MSYS can't find it, you can manually edit the file that tells MSYS where MinGW is as described here.
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 #4 on: August 15, 2012, 02:25:13 am »

I reinstalled. Then, when installing I typed in the MinGW file, but it said it was wrong.
I went to the fstab.sample file and it has:
Quote
#Win32_Path      Mount_Point
c:/mingw      /mingw
c:/ActiveState/perl   /perl
So, I thought this fixed it. This is where it is.
But going back and redoing the build came up with the same error.
Could it be that I missed a header file? or I missed a dll? or that I put in an extra dll or header I wasn't meant to, or something like that?
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 #5 on: August 15, 2012, 06:21:05 pm »

Are you using mingw-get-inst or doing a manual installation? What versions are you installing? What exactly was the error message about something being wrong and how did you get it? What happens if you try to run "gcc" from the MSYS prompt? Do you have a gcc.exe in c:\mingw\bin?

The current version of mingw-get-inst seems to set everything up correctly if you just make sure to ask it for a C compiler and MSYS.
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 #6 on: August 15, 2012, 08:06:49 pm »

So, I fixed that problem. Thanks for all the help with that. But now I have another error.

Now, I downloaded SDL from the link given in the INSTALL.mingw file. I have copied all .dll files from it to lib.
I'm pretty sure that I copied the header file to include. I wasn't sure what this was (me being stupid, again), but I thought it must be everything inside the include file. So I copied the SDL's include file contents into the include file in Mingw.
What have I done wrong?
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 #7 on: August 15, 2012, 09:21:11 pm »

The SDL installation is not quite a matter of copying the include and library files to the right directories. The easy way is to run "make native" within the unpacked SDL directory. This will copy those files to the right place and set up a few other minor things (such as the script used to detect compilation settings for SDL programs).
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 #8 on: August 15, 2012, 10:59:23 pm »

Cheers for that. It worked. But then I got yet another error.
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 #9 on: August 17, 2012, 09:31:49 pm »

Put this in your MinGW include directory.
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 #10 on: August 18, 2012, 12:55:45 am »

This is ridiculous. I swear I must have done something wrong earlier. It's done it 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 #11 on: August 18, 2012, 01:59:06 pm »

Almost there. You still need this include file. Just put it with the other ones.
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 #12 on: August 18, 2012, 02:18:15 pm »

It says
Quote
5. Ogg Vorbis codec                                             No Ogg Vorbis Support

Now, I don't know if this will be a problem.
It's finished building, I think. Just need to find it. Will it be installed in the same directory as the source... or what?

EDIT: Just noticed something about an error:
« Last Edit: August 18, 2012, 02:33:33 pm by chenjesuwizard » 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 #13 on: August 18, 2012, 02:32:29 pm »

You should end up with an uqm-debug.exe (since you're doing a debug build) in the main source directory (the one you've been running the build script from).

Your error messages suggest that Ogg Vorbis support is being at least partially compiled, but if speech and 3DO music doesn't work we can try to look into that.
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 #14 on: August 18, 2012, 02:34:56 pm »

It's not there.
I had this error:

Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
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!