Mac OS X General Release for 0.80 - Page 5

Mac OS X General Release for 0.80

Discuss everything related to compiling and running Spring on Mac OS X.

Moderator: Moderators

initram
AI Developer
Posts: 15
Joined: 07 Sep 2009, 14:28

Re: Mac OS X General Release for 0.80

Post by initram »

I made the changes described for the float3.h and float3.cpp, and did a:
make clean
make

But still get the same errors. :S
User avatar
Belmakor
Posts: 212
Joined: 16 Nov 2005, 00:01

Re: Mac OS X General Release for 0.80

Post by Belmakor »

If no one else gets to it first, I might take a look tonight if I get time.
yokosou
Posts: 21
Joined: 10 May 2009, 08:16

Re: Mac OS X General Release for 0.80

Post by yokosou »

initram wrote:I do not know how many uncommitted there are for the macfix-branch, but i tried to compile it and got the following error:
Sorry, I haven't seen the error on my Mac when I compiles spring on Mac. So, I have no idea about it.


Well, I think I found the cause of the springlobby crash that happened when making, joining to or adding a bot in a battleroom.

It occurred when minimap is updated. On Mac, the whole window seems to be updated when minimap is updated. So, playerlist was updated then. And index value of the side(faction) icon of a joining player may be invalid then. So, I think it was because playerlist was trying to show a invalid icon.

As a workaround I inserted the following code between battleroomtab.cpp:372 and 373.

Code: Select all

UpdateUser( battle.GetUser( i ) );
And the following between battleroomtab.cpp:826 and 827.

Code: Select all

UpdateUser(user);

I uploaded the bundle of spring based on 0.80.4.1 and the springlobby that was fixed the problem above with a help of one of my friend. The spring was able to play against spring on ubuntu and I was able to connect to the official server with the springlobby though I haven't played in official server yet. It should be run on Tiger and may also run on Leopard on Intel Mac.
Its URL is the following: http://dl.getdropbox.com/u/1432421/spri ... c-test.zip

In springlobby, Spring executable path and UnitSync Library path should be like the following.
- (path to Spring.app)/Spring.app/Contents/MacOS/Spring
- (path to Spring.app)/Spring.app/Contents/Resources/MacOS/libunitsync.dylib
Either mods and maps should be placed in the directory included in the zip.

The changes from 0.80.4.1 can be seen from the following link.
http://github.com/yokosou/spring/commits/0.80.4.1-mac/

Well, the writable data directory is now on the same directory as the spring bundle. I think it should be somewhere like "$HOME/Library/Application Support/Spring" and drag and drop installation of mods and maps should be supported.

[EDIT] BumpMapped Water worked with my iMac with Radeon HD2600 Leopard. But, using it on one of my friend's iMac with Radeon X1600 and Tiger caused to hang up. Please do not use it.

[EDIT] The path to the UnitSync Library was wrong. The wrong path was the follwing.
- (path to Spring.app)/Spring.app/Resources/MacOS/libunitsync.dylib
Last edited by yokosou on 14 Sep 2009, 07:38, edited 2 times in total.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Mac OS X General Release for 0.80

Post by BrainDamage »

thanks, i'll commit the changes with ifdefs for mac
initram
AI Developer
Posts: 15
Joined: 07 Sep 2009, 14:28

Re: Mac OS X General Release for 0.80

Post by initram »

I found a work around for my problem (not really a solution):

I downgraded boost from 1.40.0 to 1.39.0 and now it compiles... I think the problem was that the newest version of boost conflicts with the version of streflop that is included in the source.

But to be sure, some brave soul could update boost to 1.40.0 and see if they get the same errors. I know it takes alot of time to compile boost, but i think that it would be best i the game supported the newest version of boost. This may not be a mac only problem, so should i create a new thread for this issue?
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

i tried running the springlobby file from the zip but and got this:

Image

This is from a snow leopard 10.6, 2.16 ghz intel duo and 1 gb ram mac. I managed to start it up and log in but just after this appeared.
User avatar
adso
Posts: 23
Joined: 22 Aug 2009, 04:23

Re: Mac OS X General Release for 0.80

Post by adso »

this is without any offence to anyone on the SL team, but OSX support right now... is buggy at best.

I highly recommend QTlobby for the time being, as everything works 100% of the time.

SL kept booting me out of games, crashing when I was auto-downloading etc etc
I don't know if it's how I compiled it, but QTlobby compiled with absolutely no errors and works beautifully in OSX

Springsettings doesn't get focus properly either and doesn't allow me to select the correct path for the unitsync library...

I haven't had a chance to re-install OSX and get all my files onto my FTP. Tomorrow night is the earliest I will be able to attend to this!

yokosou - I am going to try out your gitfork, does your code compile a .app bundle with all the libraries included in the bundle? if so, this will save me a lot of time manually linking the libraries myself...

Cheers
Adam
yokosou
Posts: 21
Joined: 10 May 2009, 08:16

Re: Mac OS X General Release for 0.80

Post by yokosou »

Well, I forgot to write in the last post that the springlobby doesn't support torrent system and sounds. I haven't compiled springlobby with those actually. And springsetting in not included in the zip at this time, so you have to edit $HOME/.springrc manually to edit spring's settings. If you have launched Spring.app, you can open the file by typing the following command on the terminal.app

Code: Select all

open -t .springrc
jivvz wrote:i tried running the springlobby file from the zip but and got this:
Thanks for testing. It is likely that springlobby failed to load a unitsync library. Before connecting to the server, click "Options" tab and click "Spring" small tab. Then fill in text fields with locations of spring executable and UnitSync library like the following.
- (path to Spring.app)/Spring.app/Contents/MacOS/Spring
- (path to Spring.app)/Spring.app/Resources/MacOS/libunitsync.dylib
Click "Apply" button that should be on the right-bottom after filling.
If the unitsync library is loaded properly, you have no error message and you can play spring offline with "Singleplayer" tab. And probably the error message will not show up when you log in.

I don't have a snow leopard now, so It may be incompatibility between leopard and snow leopard, though.
adso wrote:yokosou - I am going to try out your gitfork, does your code compile a .app bundle with all the libraries included in the bundle? if so, this will save me a lot of time manually linking the libraries myself...
To create .app with the code, you have to set MACOSX_BUNDLE to true with cmake. I'm personally using the following command to create a makefile.

Code: Select all

cmake -DJAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0 -DMACOSX_BUNDLE=TRUE -DCMAKE_BUILD_TYPE=RelWithDebInfo .
To include libraries, I use dirty shell scripts which are based on mac_relocator.sh in this page.
http://springlobby.info/wiki/springlobby/MacOS
They are not included in the gitfork. So, I attached them to this post.
Attachments
scripts.zip
argument should be a path to the bundle.
copydeps.sh is for spring
copydepslobby.sh is for springlobby
(1.9 KiB) Downloaded 45 times
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Mac OS X General Release for 0.80

Post by BrainDamage »

launch the lobby from a console, using this format:

springlobby -cl -l=5 > ~/lobbylog.txt

close just as soon as the gui appears

upload the log file to http://www.pastebin.ca and paste the resulting link here
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

terminal wrote: c-9e91e255:Spring simp$ springlobby -cl -l=5 > ~/lobbylog.txt
-bash: springlobby: command not found
do i need anything else in the spring folder?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Mac OS X General Release for 0.80

Post by BrainDamage »

i forgot to append 2 chars >_>

./springlobby -cl -l=5 > ~/lobbylog.txt
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

c-9e91e255:Spring simp$ ./springlobby -cl -l=5 > ~/lobbylog.txt
-bash: ./springlobby: No such file or directory
Last edited by jivvz on 14 Sep 2009, 04:56, edited 1 time in total.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Mac OS X General Release for 0.80

Post by BrainDamage »

./springlobby.app -cl -l=5 > ~/lobbylog.txt

then? you can actually use tab completion
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

okay figured it out
did a ./springlobby -gl -l=5 > ~/lobbylog.txt
"-nc" wouldn't print anything

http://pastebin.com/m35f51298
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Mac OS X General Release for 0.80

Post by BrainDamage »

04:43:09: Error: File not found: /Applications/Spring/Spring.app/Resources/MacOS/libunitsync.dylib
here is your problem
yokosou
Posts: 21
Joined: 10 May 2009, 08:16

Re: Mac OS X General Release for 0.80

Post by yokosou »

I'm sorry, it's my really stupid mistake...

The path to the UnitSync library that I wrote here was wrong. It have to be the following.
(path to Spring.app)/Spring.app/Contents/Resources/libunitsync.dylib

I'll edit my previous posts.
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: Mac OS X General Release for 0.80

Post by jivvz »

I can't get openal to compile, I think. Errors in the bottom.

http://pastebin.com/m72149d48

another error, and system specs that springlobby gives.

http://pastebin.com/m9a9efb3

edit: compiles now, but same architecture error.
initram
AI Developer
Posts: 15
Joined: 07 Sep 2009, 14:28

Re: Mac OS X General Release for 0.80

Post by initram »

What is the current progress on a binary release for OSX?

I tried to compile the latest source from git, but i got an error with devIL (http://pastebin.com/m7942ef06)

Also, the first thing it tries to compile(gamedata) is dependant on 7zip which is later compiled. So i had to install 7zip first... some cmake hacker might be able to fix this.

Info:
OSX 10.6.1
libdevil @1.6.8-rc2_0 (latest from macports)
SDL 1.2.13 (with patch to make it compile)
User avatar
adso
Posts: 23
Joined: 22 Aug 2009, 04:23

Re: Mac OS X General Release for 0.80

Post by adso »

hey guys,

Just posting to say that I'm not dead! Life's just been a bit hectic lately!
My computers been through a few formats setting up my new raid drive etc etc and now I can't load OSX86 (won't see my drives)

I'll try and get another OSX machine to start compiling on again to finish my build of spring! (I backed up all my changes / dependencies etc)

Hopefully I can scab an old rig off a mate, so I can get back into this ASAP.
Post Reply

Return to “Mac OS X”