The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 03, 2024, 03:43:57 pm
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)
| | |-+  A few problems after a MinGW compile.
« previous next »
Pages: [1] Print
Author Topic: A few problems after a MinGW compile.  (Read 2429 times)
Starkiller
Zebranky food
*
Offline Offline

Posts: 5



View Profile
A few problems after a MinGW compile.
« on: January 31, 2009, 11:48:33 pm »

Well, after much head banging (poor poor wall), I finally got a working EXE file. The problem
is that it doesn't run. It keeps telling me that I have extra arguments found on the command
line, and to use '-h' to find acceptable arguments. I'm not using any command line
arguments. I'm trying to run it 'clean'.

Assuming a possible bug, I DLed the latest source 'snapshot'. Installed it in a separate
directory and tried the compile. vorbis and zlib were missing, but in the original source
directory, they aren't. When I installed them, as per the instructions, shouldn't they be
available from any directory? Any help appreciated here. Kind of a bummer to finally
get an executable that won't execute. Smiley

Starkiller
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: A few problems after a MinGW compile.
« Reply #1 on: January 31, 2009, 11:59:18 pm »

How are you running the executable, and could you paste the entire message?
Logged

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

Posts: 5



View Profile
Re: A few problems after a MinGW compile.
« Reply #2 on: February 01, 2009, 12:54:32 am »



Here's the little warning I get. I run it from the 'Start' menu, like the original.
It's rather curious. I'm used to MS-DOS, having started with that when Windoze
was still in it's infancy. UNIX is similar, yet different enough to cause problems.
I'm wondering why zlib and vorbis are available from one directory, yet not an the
other. In MS-DOS, anything added with the PATH command was accessible from
any directory.

Starkiller
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: A few problems after a MinGW compile.
« Reply #3 on: February 01, 2009, 01:07:17 am »

When you right click on the UQM item from the start menu, and then select properties, what do you see?

As for your other question: PATH specifies the search path for executables. zlib and vorbis are libraries, which can't be run stand alone, and for which PATH does nothing. Libraries are looked for either in the directory containing the executable, or in specific system directories directory.
Logged

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

Posts: 5



View Profile
Re: A few problems after a MinGW compile.
« Reply #4 on: February 01, 2009, 01:53:26 am »

Problem solved. I don't know why it never occurred to me, to check the original. There WAS
an active argument. Your EXE was using the 'opengl' switch. I added that to my command
line, and now we have it working. Nice job, BTW. I played the original many moons ago,
right after it was released. I also had SC1 for computer and genesis. Never did get three
though. Smiley Thanks again. Will pester you some more, when I have more questions.

BTW, have you seen 'UFO:Alien Invasion'? If you are an X-Com fan, check it out. It's on
the Open Source website too, like UQM. Those were the days of awesome scifi.

Starkiller
Logged
Starkiller
Zebranky food
*
Offline Offline

Posts: 5



View Profile
Re: A few problems after a MinGW compile.
« Reply #5 on: February 01, 2009, 02:07:03 am »

Oh, BTW, the other problem. In the source directory I'm using, running the
"C_INCLUDE_PATH=/usr/include:/usr/local/include ./build.sh uqm config" command
finds all the libraries for compiling without any problem, but going to the second
source directory containing the 'snapshot' code and executing the same command
has the zlib and vorbis libraries missing. I had thought that after installing the
libraries into mingw would make them available in either source directory. Do I
need to do something else to have the compiler find them in the second source
directory?

Starkiller
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: A few problems after a MinGW compile.
« Reply #6 on: February 01, 2009, 08:24:53 am »

I had thought that after installing the
libraries into mingw would make them available in either source directory.
You shouldn't need to do anything differently, but there are some subtle differences in the build script; however, I don't see anything that would change this behaviour. What are the exact error messages?
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Starkiller
Zebranky food
*
Offline Offline

Posts: 5



View Profile
Re: A few problems after a MinGW compile.
« Reply #7 on: February 02, 2009, 06:05:06 am »

Well, when running the config command, it does the checking and finding before calling
up the list of configuration options. In the first directory, it lists vorbis and zlib as 'found',
and selecting them in their option sections is possible.

In the second directory, vorbis and zlib are listed as 'not found' and in the options list,
you can not select them as they weren't found. It is rather odd, as the two directories
are 'next' to each other, so to speak. They are both in the 'uqm-0.6.2-source' directory.
The one that works is 'uqm-current' and the one that doesn't is just 'uqm'.

It's no real problem, as one of them DOES work, but this does indicate a mistake on my
part. Gotta find it eventually. Smiley

Greywolf
Logged
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!