The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: JHGuitarFreak on April 22, 2008, 10:51:57 pm



Title: compiling under native x64 windows?
Post by: JHGuitarFreak on April 22, 2008, 10:51:57 pm
Is it possible right off the bat to compile UQM on a native WinXP x64 platform?

i've been doing research and found mingw x64 binaries and a way of getting msys to run on x64
I just want to ask the question to the developers if they've ever tried it on an x64 system.

.:: EDIT

On another issue, how do I get the resources (icon, ver. info, etc...) to compile under mingw/msys?


Title: Re: compiling under native x64 windows?
Post by: meep-eep on April 23, 2008, 01:10:35 am
I don't know whether UQM builds out-of-the-box on 64-bit Windows systems, either using MinGW or MSVC.
As 64-bit builds can be made on other systems, the few issues which I would expect on Windows would probably just involve changing a few #ifdefs in the right places. It could even be that one of the other core team members has already committed the necessary changes to SVN.


Title: Re: resource files in use in mingw?
Post by: JHGuitarFreak on April 30, 2008, 12:57:13 pm
well right off the bat using x86 mingw it builds a x86 exe hehe  ;D

that was obvious.

but getting the x64 builds of the mingw runtime to work with msys or even having the build.sh recognize any of the necessary header files needed to build a x64 UQM is gonna be major work.

I think the best course of action would be to wait for a more stable x64 compiler, be it visual studio or mingw.
and i'm pretty sure to have "full" x64 support would need a re-write of alot of UQM's code, but in the end there wouldn't be that much improvement, though there is no need for any speed improvement.  :P

.:: EDIT

oh yes I forgot, what about that second question i asked in the first post?


Title: Re: compiling under native x64 windows?
Post by: meep-eep on April 30, 2008, 07:30:33 pm
UQM already works on 64 bits systems, including x64 (using 64 bits code, yes). The UQM source code has been 64-bits capable for a couple of years now.
What is required on Windows, if anything, is at most a few defines that lets the code know what types are 64 bits on that platform.
I don't know about the various versions of Visual Studio, but gcc can generate 64 bits code just fine. Maybe MinGW doesn't ship with a 64-bits capable gcc, but then you'd just have to build gcc yourself.

As for compiling resources: MinGW comes with its own "windres". The UQM build scripts invoke this program, so you don't have to do anything manually.