The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2024, 12:19:36 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)
| | |-+  Problems compiling 0.4 in MinGW
« previous next »
Pages: [1] Print
Author Topic: Problems compiling 0.4 in MinGW  (Read 4423 times)
Megagun
Enlightened
*****
Offline Offline

Gender: Male
Posts: 580


Moo


View Profile
Problems compiling 0.4 in MinGW
« on: July 17, 2005, 01:28:28 pm »

Okay. So I'm having some problems here..

Whenever I try to build UQM using MinGW,  (./build.sh uqm config, etc) I get this:


Code:
$ ./build.sh uqm config
'echo -n' capable echo found.
Sed stream editor found.
tr found.
Make found.
GNU C compiler found.
windres found.
Little-endian machine detected.
build/unix/build.sh: sdl-config: command not found
build/unix/build.sh: sdl-config: command not found
Simple DirectMedia Layer not found.

So, I searched through these forums, found someone with the same problems as I had (fetid_breath), reproduced his error (he got the SDL sources instead of the mingw devkit), did a "./configure; make; make install", and that gave me the following error:

Code:
$ ./configure; make; make install
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
/c/sdl-1.2.8/missing: Unknown `--run' option
Try `/c/sdl-1.2.8/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... ./configure: ac_maketemp="make": command not found
no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Fatal: Unable to open makefile
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Fatal: Unable to open makefile

That sounded bad. With some googling, I found out that that had to do something with Borland Delphi.. So I renamed the folder Delphi was in, and I got this error instead:

Code:
$ ./configure; make; make install
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
/c/sdl-1.2.8/missing: Unknown `--run' option
Try `/c/sdl-1.2.8/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
sh: make: command not found
sh: make: command not found

Erk? anyone knows what gives?

Edit: I got it fixed..
Reinstalled MSYS, apparantly, when it asked for the MinGW folder, I typed c:\mingw instead of c:/mingw (blame DOS! blame DOS!)
That did the trick... Let this topic remain here as an.. uuh.. reminder or whatever to people with the same errors... Smiley

However, now I got a new problem...
If I do "./configure; make; make install", I eventually get this error twice when making.
Code:
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 842: Colon expected
*** 1 errors during make ***

Erk! I tried modifying the makefile, but nothing really helps.
« Last Edit: July 17, 2005, 01:52:41 pm by Megagun » Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #1 on: July 17, 2005, 02:46:55 pm »

If I do "./configure; make; make install", I eventually get this error twice when making.
Code:
MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 842: Colon expected
*** 1 errors during make ***
Use GNU make instead of Borland/Inprise make (remove it from the search path). Also see bug 755.
Logged

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

Gender: Male
Posts: 580


Moo


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #2 on: July 17, 2005, 04:53:06 pm »

And how exactly am I going to "use GNU make"?
When I remove Borland/Inprise make from the path= thing, "make" returns a "command not found"....
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #3 on: July 17, 2005, 05:25:54 pm »

And how exactly am I going to "use GNU make"?
When I remove Borland/Inprise make from the path= thing, "make" returns a "command not found"....
Huh? MSys should include GNU make by default. Make sure that make.exe is in the path.
Logged

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

Gender: Male
Posts: 580


Moo


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #4 on: July 17, 2005, 05:32:03 pm »

The only *make.exe files I have in MingW folder are:
gnatmake.exe
gpr2make.exe
and mingw32-make.exe

No regular "make.exe" though.
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #5 on: July 17, 2005, 05:37:08 pm »

Have you installed MSYS? You need to install MSYS after installing MinGW, as it provides a Unix-like environment to run build scripts in. make is a part of MSYS, not MinGW.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #6 on: July 17, 2005, 05:45:14 pm »

Try running mingw32-make instead of just make. That may help. Still, you should have a make.exe.
Logged

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

Gender: Male
Posts: 580


Moo


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #7 on: July 17, 2005, 06:11:59 pm »

Ah. It seems that Msys renamed make.exe to mingw32-make.exe
Renaming it back to make.exe and then just doing MAKE INSTALL did it..

Thanks for the help. Smiley
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Problems compiling 0.4 in MinGW
« Reply #8 on: July 17, 2005, 06:24:59 pm »

On my installation, mingw32-make.exe and make.exe are two different programs. Apparently, MSYS installs a slightly different make of its own to replace MinGW make.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
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!