Mechanized Assault & eXploration Reloaded



#21 Nov 24, 2012 6:25 pm
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
Ah, ok, that would make sense!

I am using OS X 10.8.2, XCOde 4.5.2, llvm and I used the 10.8 sdk. On my cousins 10.7 it did not run, so I changed my sdk-setting to 10.7, but it would not run on his machine.

Well, have to look that up some time. Anyway: my own 3043 build now runs at least on my machine, and I could play a game with nonsinn without problems.

Besides the Ticket #648 "Construction dialogs crash on OSX" of course, but that was not fixed yet, so what did I expect? ;-)

But good feeling to finally be able to check out and play the game when new bugfixes are made available on svn.
↑  ↓

#22 Nov 24, 2012 6:32 pm
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
Okay, I missed a setting. There are two "Deployment-Targets", and one was still set to 10.8, that might be the reason why it did not work on my cousins 10.7 machine.

Anyhow, I now succeeded to build it in 64 bit, and besides the pure llvm, there also is a llvm-gcc 4.2. So I now use llvm-gcc 4.2 as compiler, 10.6 as deployment target.

So now running in 64 bit I think I'm getting the hang of how xcode handles the base sdk and deployment target-stuff :-D
This post has been edited 1 times. Last edit on Nov 24, 2012 6:33 pm by maybeageek. ↑  ↓

#23 Dec 19, 2012 4:49 pm
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
Toranaga: I figured out why my builds are not working on other machines!

It crashes saying its missing SDL. So, somehow xcode does not include sdl into the final .app, thus running the app fails on machines that did not manually install the frameworks as I did for building.

Any idea how I can change that?
↑  ↓

#24 Dec 19, 2012 11:27 pm
Toranaga Toranaga Offline
Developer
Registered since: Dec 28, 2005
Posts: 232


Subject: Re: Offer: I build maxr on Mac OS X
Please first check, if the SDL frameworks are really not included in your built maxr.app. Therefore do a right click on the app and "Show Package Contents". There should be a "Contents/Frameworks/" folder with the three frameworks (sdl, mixer, net).
Paul Grathwohl (pagra)
↑  ↓

#25 Dec 20, 2012 10:02 am
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
you are right, there they are! As supposed.

Hmm... then I wonder what goes wrong, as the message clearly states "image missing - SDL.framework"
↑  ↓

#26 Dec 20, 2012 10:24 am
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
This is the error-message a friend of mine sees when starting my app.
He is using 10.6.8, while I built it on 10.8.2.

DownloadSource code (Text):
  1. Process:         MAXR [44944]
  2. Path:            /Users/pdybeck/Desktop/MAXR/MAXR/MAXR.app/Contents/MacOS/MAXR
  3. Identifier:      de.maxthegame.maxr
  4. Version:         ??? (???)
  5. Code Type:       X86 (Native)
  6. Parent Process:  launchd [141]
  7.  
  8. Date/Time:       2012-12-20 09:12:43.322 +0100
  9. OS Version:      Mac OS X 10.6.8 (10K549)
  10. Report Version:  6
  11.  
  12. Interval Since Last Report:          101652 sec
  13. Per-App Crashes Since Last Report:   2
  14. Anonymous UUID:                      1E07008A-D51A-47A0-AD7B-94D40C026462
  15.  
  16. Exception Type:  EXC_BREAKPOINT (SIGTRAP)
  17. Exception Codes: 0x0000000000000002, 0x0000000000000000
  18. Crashed Thread:  0
  19.  
  20. Dyld Error Message:
  21.   Library not loaded: @rpath/SDL.framework/Versions/A/SDL
  22.   Referenced from: /Users/pdybeck/Desktop/MAXR/MAXR/MAXR.app/Contents/MacOS/MAXR
  23.   Reason: image not found
  24.  
  25. Binary Images:
  26. 0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
↑  ↓

#27 Dec 20, 2012 5:24 pm
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: Offer: I build maxr on Mac OS X
Ain't no Mac user but this:

> Library not loaded: @rpath/SDL.framework/Versions/A/SDL
> Reason: image not found

Looks to me like the SDL library is in fact there but was not loaded due a missing image.

I can however not read from it what image might be meant. It's certainly not a picture but something similar?
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
↑  ↓

#28 Dec 21, 2012 12:38 am
Toranaga Toranaga Offline
Developer
Registered since: Dec 28, 2005
Posts: 232


Subject: Re: Offer: I build maxr on Mac OS X
I think it has something to do with what can be fixed with the tools otool and install_name_tool
I remember I had to do it when I started with maxr, but I forgot, what I did. You somehow have to change I think the @executable_path of the sdl frameworks. You can do a
otool -L pathToSDLBinary
and see what it says. Then you could compare to the stuff that is printed when you do the same with the libraries I modified and that are part of the maxr.app I built. Sorry to be so vague. But it should point you to the right direction.
If you find out, how to do it, then please write it here, so that I know it then, too No comment
Paul Grathwohl (pagra)
↑  ↓

#29 Dec 21, 2012 10:38 am
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
The first one is from the binary I built, the second one from your binary:

DownloadSource code (Text):
  1. otool -L MAXR.app/Contents/MacOS/MAXR
  2. MAXR.app/Contents/MacOS/MAXR:
  3.         /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 945.11.0)
  4.         /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1187.33.0)
  5.         @rpath/SDL.framework/Versions/A/SDL (compatibility version 1.0.0, current version 12.4.0)
  6.         @rpath/SDL_mixer.framework/Versions/A/SDL_mixer (compatibility version 1.0.0, current version 13.0.0)
  7.         @rpath/SDL_net.framework/Versions/A/SDL_net (compatibility version 1.0.0, current version 9.0.0)
  8.         /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 19.0.0)
  9.         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
  10.         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
  11.         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
  12.         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
  13.         /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.1.0)
  14.         /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 45.0.0)

DownloadSource code (Text):
  1. otool -L MAXR\ 0.2.8.app/Contents/MacOS/MAXR
  2. MAXR 0.2.8.app/Contents/MacOS/MAXR (architecture i386):
  3.         /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0)
  4.         /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.32.0)
  5.         @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (compatibility version 1.0.0, current version 1.0.0)
  6.         @executable_path/../Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer (compatibility version 1.0.0, current version 1.0.0)
  7.         @executable_path/../Frameworks/SDL_net.framework/Versions/A/SDL_net (compatibility version 1.0.0, current version 1.0.0)
  8.         /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
  9.         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
  10.         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)
  11.         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
  12.         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
  13.         /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
  14.         /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
  15. MAXR 0.2.8.app/Contents/MacOS/MAXR (architecture ppc):
  16.         /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0)
  17.         /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.32.0)
  18.         @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (compatibility version 1.0.0, current version 1.0.0)
  19.         @executable_path/../Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer (compatibility version 1.0.0, current version 1.0.0)
  20.         @executable_path/../Frameworks/SDL_net.framework/Versions/A/SDL_net (compatibility version 1.0.0, current version 1.0.0)
  21.         /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
  22.         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
  23.         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)
  24.         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
  25.         /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
  26.         /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
↑  ↓

#30 Dec 21, 2012 10:47 am
maybeageek Offline
Approved Member
Registered since: Nov 13, 2012
Posts: 19


Subject: Re: Offer: I build maxr on Mac OS X
I think its where your app says "@executable_path" mine points to @rpath ...
↑  ↓

Pages (4): 1, 2, 3, 4


All times are GMT +02:00. Current time: 5:30 pm.