[MAC] Compiling on OSX Lion / Xcode 4.1`

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #11
thx, but how can I fix it?
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #12
davilla Wrote:dies here "ld: library not found for -lstdc++"

Did you symlink the install of 10.4sdk into xcode4 or did you just drag it into place. If the later, that's not correct, you can't just copy sdk's around.

You're right, I just copy it....

The problem is that It's impossible install xcode 4.02 in Lion.
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #13
see http://stackoverflow.com/questions/53334...to-xcode-4


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #14
I think there is an easier way:

** Convert xcode 3.0.2 and xcode 4.02 dmg into a read/write image with disk utility.
** Open both of them and, show inside Xcode and iOS SDK installer.
** For xcode 3.2.6: edit iPhoneSDKSL and find function isDevToolsCompatible(). Then remove 10.7 and put 10.8 or 10.9 for example... Save it and Install xcode.
** For xcode 4.0.2: edit the same file and delete all checks about OS version. Save it and install xcode.

Results:

Code:
kaya:depends i5Js$ ls -l /Developer/SDKs/
total 0
drwxr-xr-x  7 root  wheel  238 18 may  2009 MacOSX10.4u.sdk
drwxr-xr-x  7 root  wheel  238 24 jun  2010 MacOSX10.5.sdk
drwxr-xr-x  7 root  wheel  238 15 feb  2011 MacOSX10.6.sdk
kaya:depends i5Js$


Building xbmc dependences....

EDIT 1: xbmc dependences build successfully !

Building environment....

EDIT2: error in make xcode_depends step:

Code:
make -C tools/EventClients/Clients/OSXRemote
xcodebuild -sdk macosx10.4 -configuration Release
dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
  Referenced from: /Developer/usr/bin/xcodebuild
  Reason: image not found
make[1]: *** [all] Trace/BPT trap: 5
make: *** [eventclients] Error 2


BR
(This post was last modified: 2011-08-28 17:28 by i5Js.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #15
Ooooo, that's a nice trick.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #16
davilla Wrote:Ooooo, that's a nice trick.

Thanks! But I've other error:

Code:
make -C tools/EventClients/Clients/OSXRemote
xcodebuild -sdk macosx10.4 -configuration Release
dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
  Referenced from: /Developer/usr/bin/xcodebuild
  Reason: image not found
make[1]: *** [all] Trace/BPT trap: 5
make: *** [eventclients] Error 2
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #17
Fix it! To compile xbmc, just install xcode 3.2.6.

Building environment....

EDIT: Build all xbmc successfully under Lion!

BR
(This post was last modified: 2011-08-28 19:01 by i5Js.)
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #18
New error with last build at make Xcode_depends step:

Code:
ld: library not found for -lGL
collect2: ld returned 1 exit status
make[1]: *** [/Users/i5Js/xbmc/xbmc/addons/visualization.glspectrum/opengl_spectrum.vis] Error 1
make: *** [xbmc/visualizations/OpenGLSpectrum] Error 2
find quote
scbash Offline
Junior Member
Posts: 2
Joined: Sep 2011
Reputation: 0
Location: Boston, MA
Post: #19
i5Js Wrote:New error with last build at make Xcode_depends step:

Code:
ld: library not found for -lGL
collect2: ld returned 1 exit status
make[1]: *** [/Users/i5Js/xbmc/xbmc/addons/visualization.glspectrum/opengl_spectrum.vis] Error 1
make: *** [xbmc/visualizations/OpenGLSpectrum] Error 2

Yeah, I hit that one last night. I've got a fix in Github here:

https://github.com/scbash/xbmc/commit/37...69807a33b3

The symbol cleanup in 493650f using the wrong arguments for linking OpenGL on Mac.

Speaking of fixes, do the devs want patches still posted to Trac, or is a github pull request sufficient?

BTW, hi all! I'm new to the forum, but I've been using XBMC on Mac for a couple years now. Just started hacking it yesterday to get some CUE sheet improvements I wanted (and fixed this build problem while I was at it).

Thanks,
Stephen
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,397
Joined: Feb 2008
Reputation: 58
Post: #20
fixed in trunk.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Post Reply