Page 5 of 6
Re: Mac OS X General Release for 0.80
Posted: 08 Sep 2009, 00:08
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
Re: Mac OS X General Release for 0.80
Posted: 08 Sep 2009, 01:33
by Belmakor
If no one else gets to it first, I might take a look tonight if I get time.
Re: Mac OS X General Release for 0.80
Posted: 08 Sep 2009, 16:13
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.
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
Re: Mac OS X General Release for 0.80
Posted: 08 Sep 2009, 17:22
by BrainDamage
thanks, i'll commit the changes with ifdefs for mac
Re: Mac OS X General Release for 0.80
Posted: 08 Sep 2009, 20:54
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?
Re: Mac OS X General Release for 0.80
Posted: 09 Sep 2009, 20:41
by jivvz
i tried running the springlobby file from the zip but and got this:
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.
Re: Mac OS X General Release for 0.80
Posted: 10 Sep 2009, 03:22
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
Re: Mac OS X General Release for 0.80
Posted: 10 Sep 2009, 09:13
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
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.
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 03:02
by jivvz
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 03:20
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
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 03:46
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?
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 03:50
by BrainDamage
i forgot to append 2 chars >_>
./springlobby -cl -l=5 > ~/lobbylog.txt
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 04:08
by jivvz
c-9e91e255:Spring simp$ ./springlobby -cl -l=5 > ~/lobbylog.txt
-bash: ./springlobby: No such file or directory
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 04:47
by BrainDamage
./springlobby.app -cl -l=5 > ~/lobbylog.txt
then? you can actually use tab completion
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 04:56
by jivvz
okay figured it out
did a ./springlobby -gl -l=5 > ~/lobbylog.txt
"-nc" wouldn't print anything
http://pastebin.com/m35f51298
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 05:02
by BrainDamage
04:43:09: Error: File not found: /Applications/Spring/Spring.app/Resources/MacOS/libunitsync.dylib
here is your problem
Re: Mac OS X General Release for 0.80
Posted: 14 Sep 2009, 07:33
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.
Re: Mac OS X General Release for 0.80
Posted: 20 Sep 2009, 16:18
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.
Re: Mac OS X General Release for 0.80
Posted: 21 Sep 2009, 23:48
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)
Re: Mac OS X General Release for 0.80
Posted: 30 Sep 2009, 01:23
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.