haha mac version?

haha mac version?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

k994
Posts: 27
Joined: 17 May 2005, 21:00

haha mac version?

Post by k994 »

I know that this sounds kindof rediculous, and the title pretty much explains the whole post....but is there ever going to be a TAS version made for macintosh users? I was just wondering becuase it would be convienent (if i spelled that right)
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

Yes, I know it's the intention to do so.
But I have no real idea about the timeline.
Linux and BSD versions are working more or less.
Mac would be the next target.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

As far as I was aware, mac OS was based on a version of BSD, and thus a lot of linux programs simply need recompiling under Mac OS to work.

Work to get the linux build of spring running under Mac OS would be minimal compared to the porting of the windows version to linux
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

Yes and no, Mac uses PowerPC and has a different video system.
Still the current Spring code is easily ported to another platform.
A mac developer could get it to run in a few days I guess.
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Isn't Lorenz (Krysole) Prettehofer working on it ?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Not all macs, you can have dual format binaries that run on both PowerPC and x86 platforms, or you can have either in seperate binaries. Mac OS does run on x86 cpu's, and with certain hacks you can get the x86 Mac OS version running in a virtual machine or even boot it on an ordinary computer.

Maybe you're right about the graphics API, but I know that once that's sorted you'd just have to switch to a PowerPC compiler and reconfigure it to build spring.
Nop
Posts: 6
Joined: 25 May 2006, 14:39

Post by Nop »

Sorry to bump an old topic, but at least someone is working on it :).

I downloaded the .71 source from the site. It contains an XCode project file and instructions. Was able to compile it within two hours (by linking to some other dependencies not in the readme and commenting out a line/replace file from svn), and it runs.

Only problem is that all textures are messed up (doesn't matter if a X800 XT or 9800 Pro is used), otherwise, no problems in-game. It also doesn't look for a settings file at ~/.springrc, doesn't even create one.
The SVN source does compile, but gives linking errors unfortunately (/usr/bin/ld complains about undefined symbols) and since I don't know anything about how that whole programming thing works I couldn't work around that.

So yes, a big "Thanks!!!" to the ones working on the cross platform code and mac port is in order here. Seems TA Spring is close to be running on Macs :D.
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

Increddible news!
you tha man Nop!

Maybe someone can look to that texture problem. and see if it can sync with the other linux builds (probably won't sync with windows yet).
Probably, omni can run under mac os as well? (if finished)
Nop
Posts: 6
Joined: 25 May 2006, 14:39

Post by Nop »

Zenka wrote:you tha man Nop!
I didn't have anything to do with this. I can't even code, I just compiled what was there with instructions from the readme that came with the XCode project (again, thanks to the one who provided those) and forums and made a report ;).


Here's a screenshot of the Mac build I made here:
Image
Everything is perfect (reflections, other effects), just not the textures.
Strangely, trees and grass (not on this shot) look OK. As well as the minimap. Those use textures too, no?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Torrasque wrote:Isn't Lorenz (Krysole) Prettehofer working on it ?
I think so yes.

Anyway, it may seem like it's close. But it's still further away then linux, mostly due to this textures-are-gone bug which no one seems to be able to solve (yet). Also because spring doesn't take care of endianness in any way for multiplayer games.

But mostly because PPC is another processor just besides i386 and amd64 with other compilers and stuff and hence it will not sync until I finally figured out a way to solve that problem...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

hmm also partly a consideration as you seem to be running Mac OS X x86 on an ordinary computer rather than a PPC mac, whereas Mac OS X was not designed to run with radeons and geforce cards etc....
Nop
Posts: 6
Joined: 25 May 2006, 14:39

Post by Nop »

AF wrote:hmm also partly a consideration as you seem to be running Mac OS X x86 on an ordinary computer rather than a PPC mac, whereas Mac OS X was not designed to run with radeons and geforce cards etc....
I don't even have an x86 machine in my house. I compiled this one on a MDD 1.25 GHz PPC G4 and tried it on a G5 as well, OS X v10.4.6. What made you think I use an x86? Both X800 XT (256MB) and Radeon 9800 are available for PPC Macs. Just like many other Radeons and Geforces in the past, check what came built-in the PowerMacs or iMacs from the past 7 years:
http://www.everymac.com/systems/apple/

Besides, if every single game (yes, I have Quake 4 too) and all OS graphic effects (CoreImage) work correctly it's safe to assume Mac OS X drivers are not the problem.
Funny enough, every other graphic effect works nice (reflections, etc), just not the textures. It's probably just one little thing messing up...
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

I think it's a problem with avaiable bitmap loading libraries. MacOS isn't supported for DevIL, so krysole is adding texture loading through another macos library. But this is WIP obviously.
Nop
Posts: 6
Joined: 25 May 2006, 14:39

Post by Nop »

It's really great news already that someone is working on it, whether it just started without any certainty that it'll finish or not :D.
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

This is only tangentially related, but I actually play spring on a Mac- it's one of the new Intel core iMacs, running a windows install using Boot Camp. Doesn't really solve anything for people looking to run on real Macs, but I just thought I'd let you all know spring runs fine w/ Boot Camp.
IMSabbel
Posts: 747
Joined: 30 Jul 2005, 13:29

Post by IMSabbel »

AF wrote:hmm also partly a consideration as you seem to be running Mac OS X x86 on an ordinary computer rather than a PPC mac, whereas Mac OS X was not designed to run with radeons and geforce cards etc....
And what do _you_ think created pixels on the screen all the years on those powermac G5s?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Well at the time of writting I wasnt aware models of radeons and geforce had been redesigned to work on Mac PC's, especially since the only mention of them till this thread was in terms of PC's and graphics cards, nto one mention of Macs at all.
Peachey
Posts: 1
Joined: 02 Jun 2006, 15:29

Post by Peachey »

You can run Linux applications in the X11 application on Mac OSX. Things like Open Office and GIMP can be downloaded compiled for it. Im not sure if the PPC proccesor will cause problems though.
valkraider
Posts: 2
Joined: 11 Oct 2005, 02:23

Post by valkraider »

AF wrote:Well at the time of writting I wasnt aware models of radeons and geforce had been redesigned to work on Mac PC's, especially since the only mention of them till this thread was in terms of PC's and graphics cards, nto one mention of Macs at all.
Well, the Radeon and GeForce cards have been in the Mac off and on for years, trading between the two of them... There wasn't even a "re-design". You could take most of the Nvidia and ATI cards off the shelf and put them in a Mac - some worked out of the box and some just needed a firmware update. Usually the "mac" version just cost more. ;)

The first GeForce I can find in a shipping Mac was 2001:
Found at EveryMac.com :
Power Mac G4/733
"A 32 MB NVIDIA GeForce2 MX Graphics card occupies an 4X AGP slot."

People who don't use macs love to slam on macs without having any real knowlege about what they are slamming... My current Mac laptop has an PCI Express ATI Mobility Radeon X1600 with 256 MB of GDDR3 SDRAM.

But aside from that - why does everyone keep mentioning the PPC and the endian issue? All currently shipping Macs run Intel processors.

Just make the Mac port Intel only and call it a day... We even have XWindows (X11) if needed for the UI from Linux...

:)
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Post by Ling_Lover »

valkraider wrote:But aside from that - why does everyone keep mentioning the PPC and the endian issue? All currently shipping Macs run Intel processors.
and what about me with my G5 PPC mac? or my friends who only have macs who i'm trying to get to play spring?

just because the current version is intel doesnt mean everyones got one
Post Reply

Return to “Engine”