x86_64?
-
- Developer
- Posts: 3980
- Joined: Fri Jan 03, 2003 4:53 am
- Location: Stanford, CA
- Contact:
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
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/
http://vegastrike.sourceforge.net/
-
- Star Pilot
- Posts: 5
- Joined: Sun Mar 13, 2005 9:25 am
- Contact:
Edit src/posh.h
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?
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?
-
- Developer
- Posts: 3980
- Joined: Fri Jan 03, 2003 4:53 am
- Location: Stanford, CA
- Contact:
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
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/
http://vegastrike.sourceforge.net/
-
- Developer
- Posts: 3980
- Joined: Fri Jan 03, 2003 4:53 am
- Location: Stanford, CA
- Contact:
applied Lucky B's idea to posh.h---try building with a new updated cvs
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
http://vegastrike.sourceforge.net/
-
- Star Pilot
- Posts: 5
- Joined: Sun Mar 13, 2005 9:25 am
- Contact:
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?
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?
-
- Star Pilot
- Posts: 5
- Joined: Sun Mar 13, 2005 9:25 am
- Contact:
unit_physics.cpp now works
OK don't mean to reply to myself but the (newer) 1.145 unit_physics.cpp from CVS appears to work.
Good stuff!
Good stuff!