Jump to content

Home

Compiling Linux Ports in Unix


razorace

Recommended Posts

Originally posted by razorace

I've been trying to figure out how to compile a JKA Linux port on unix but my gcc compile keeps gives me a error that it doesn't recognize the "arch=i586" command. Any ideas?

 

I'd put strong money that the unix you're using isn't x86-based. Type "arch" at the command prompt and, in most cases, it'll tell you what CPU is in there. On OSX, for example, it says "ppc" because the Mac uses a PowerPC CPU.

Link to comment
Share on other sites

the arch option is only made to add optimization to the compiled code for your CPU and hardware...

 

it also provides to this compiled code some special binary instructions that will work better with your cpu type....

 

when you start compiling using gcc on a platform

 

i think gcc by default compile the code including optimization for the computer you are using to compile the code

 

if you unix is a sparc machine for example

look here for optimization with your processor

http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/SPARC-Options.html#SPARC%20Options

 

 

 

if you want optimization for other UNIX hardware

look here

http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Submodel-Options.html#Submodel%20Options

Link to comment
Share on other sites

Originally posted by razorace

it compiles. but is it in a form that work properly?

 

Unfortunately no. The Sun systems have their own custom CPU (they call it a SPARC processor) - it's not an x86. If you want to build the Linux stuff yourself, your best bet may be to just partition the hard drive on your PC and put Linux on it.

Link to comment
Share on other sites

Originally posted by Slider744

the arch option is only made to add optimization to the compiled code for your CPU and hardware...

 

The key word here is "hardware" - the only platforms that are important are those for which an OpenGL Jedi Academy build has been released (Win32 and the Mac) or those for which a dedicated server app has been released (Win32, Mac, Linux/Unix x86). There's no advantage to working on any others because even if you could get the mod compiled on them, you wouldn't have any way to run it.

 

On the PC, that means platforms that support either the x86 PE executable format (Win32) or the x86 ELF executable format (Linux/Unix x86). On the Mac, it means either CFM or Mach-O PowerPC.

Link to comment
Share on other sites

Originally posted by Brad Oliver

There's no advantage to working on any others because even if you could get the mod compiled on them, you wouldn't have any way to run it.

 

 

yeah lol

i don't knopw why i didn't think to that before :)

of course raven will have to compile a verison of the dedicated server for unix or give the source of the main dedicated server part

 

i don't think there is a chance to have both

 

unix platform are too expensive and linux is free, so raven will not provide a unix version of the dedicated server because businees server providers prefer to buy PC with linux on it...

 

 

for the source, i don't think they will give it because after people will have almost the entire code of the MP game

Link to comment
Share on other sites

Originally posted by stubert

well there is always freebsd and it's compatibility with linux

 

Yes, if the binary executable format is the same (as it is between FreeBSD and Linux - they both use x86 ELF), then it'll likely run the dedicated server, and thus mods.

 

From a pragmatic standpoint, however, it's probably not worth development time to test against all the possible x86 Unix configs because there are so many other varieties with so few gaming users relative to Linux. Just test against x86 Linux and trust in those other folks to let you know when something is broken. Odds are they'll even have a patch ready. :)

Link to comment
Share on other sites

Originally posted by Brad Oliver

Yes, if the binary executable format is the same (as it is between FreeBSD and Linux - they both use x86 ELF), then it'll likely run the dedicated server, and thus mods.

 

From a pragmatic standpoint, however, it's probably not worth development time to test against all the possible x86 Unix configs because there are so many other varieties with so few gaming users relative to Linux. Just test against x86 Linux and trust in those other folks to let you know when something is broken. Odds are they'll even have a patch ready. :)

 

 

yea, i've know people that run q3 and whatnot on bsd and it works fine

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...