The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
August 08, 2022, 05:34:45 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)
| | |-+  compiling under native x64 windows?
« previous next »
Pages: [1] Print
Author Topic: compiling under native x64 windows?  (Read 2955 times)
Kohr-Ah Death
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1365



View Profile WWW
compiling under native x64 windows?
« 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?
Logged

The artist once again known as Kohr-Ah Death.

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

Posts: 2847



View Profile
Re: compiling under native x64 windows?
« Reply #1 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.
Logged

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

Gender: Male
Posts: 1365



View Profile WWW
Re: resource files in use in mingw?
« Reply #2 on: April 30, 2008, 12:57:13 pm »

well right off the bat using x86 mingw it builds a x86 exe hehe  Grin

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.  Tongue

.:: EDIT

oh yes I forgot, what about that second question i asked in the first post?
« Last Edit: April 30, 2008, 12:59:27 pm by Kohr-Ah Death » Logged

The artist once again known as Kohr-Ah Death.

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

Posts: 2847



View Profile
Re: compiling under native x64 windows?
« Reply #3 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
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!