x86_64?

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
eudialistoolazytologin

x86_64?

Post by eudialistoolazytologin »

Does VS compile on x86_64?
eudial
Star Pilot
Star Pilot
Posts: 7
Joined: Tue Aug 03, 2004 2:20 pm
Location: Sweden

Post by eudial »

Just wanted to add that gentoo masks it as missing, but it only has 4.1 added.
Ain't no place like Sol/Sol
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

it should work perfectly on x86-64
and if it doesn't we'd really like to know about it

so far we've had a few 64-bit bug reports and fixed those issues--so as far as we know it works ok
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
flydpnkrtn
Star Pilot
Star Pilot
Posts: 5
Joined: Sun Mar 13, 2005 9:25 am
Contact:

Edit src/posh.h

Post by flydpnkrtn »

I'm on Gentoo, on AMD64 ( -march=k8 ) and I had to edit src/posh.h to get VS to compile (from CVS)

Without editing the file make errors out with:
../../../src/posh.h:542:4: #error POSH cannot determine target CPU

In src/posh.h around where the comments
/* -------------------------------------------------------------
Intel x86 and AMD x86-64
----------------------------------------------------------------
*/

appear I just blew away the "if defined"s and left
# define POSH_CPU_STRING "AMD x86-64"

I've been using CVS VS since then happily.

I'm sure there's a prettier way to do this where it will correctly guess the CPU.... hellcatv?
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

If I knew I would apply it to CVS...but since I don't have an AMD 64 I have no idea why it doens't work...

can you try to google up a newer version of posh.c and posh.h
posh is a standalone open source library that I dumped into the tree
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

applied Lucky B's idea to posh.h---try building with a new updated cvs
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
flydpnkrtn
Star Pilot
Star Pilot
Posts: 5
Joined: Sun Mar 13, 2005 9:25 am
Contact:

Post by flydpnkrtn »

OK that appears to have fixed it :)

make gets past posh fine now.

However, after cvs up'ing it looks like unit_physics.cpp won't compile:
../../../src/cmd/unit_physics.cpp: In member function `void GameUnit<UnitType>::Thrust(const Vector&, bool)':
../../../src/cmd/unit_physics.cpp:160: error: `energy' undeclared (first use this function)
../../../src/cmd/unit_physics.cpp:160: error: (Each undeclared identifier is reported only once for each function it appears in.)
../../../src/cmd/unit_physics.cpp:160: error: `afterburnenergy' undeclared (first use this function)
make[4]: *** [firekeyboard.o] Error 1
make[4]: Leaving directory `/usr/local/cvs/vegastrike/vegastrike-source/src/cmd/ai'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/cvs/vegastrike/vegastrike-source/src/cmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/cvs/vegastrike/vegastrike-source/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/cvs/vegastrike/vegastrike-source'
make: *** [all] Error 2

Backing unit_physics.cpp down from 1.144 to 1.143 with 'cvs -z4 update -r 1.143 "unit_physics.cpp" ' gets it to compile.

Any ideas anyone?
flydpnkrtn
Star Pilot
Star Pilot
Posts: 5
Joined: Sun Mar 13, 2005 9:25 am
Contact:

unit_physics.cpp now works

Post by flydpnkrtn »

OK don't mean to reply to myself but the (newer) 1.145 unit_physics.cpp from CVS appears to work.

Good stuff!
Post Reply