[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: #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
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
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
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #21
davilla Wrote:fixed in trunk.

Thanks Davilla, now give me this error at xcodebuild

Code:
The following build commands failed:
XBMC:
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/AVPlayerOperations.o /Users/i5Js/xbmc/xbmc/xbmc/interfaces/json-rpc/AVPlayerOperations.cpp normal i386 c++ com.apple.compilers.gcc.4_0
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/AVPlaylistOperations.o /Users/i5Js/xbmc/xbmc/xbmc/interfaces/json-rpc/AVPlaylistOperations.cpp normal i386 c++ com.apple.compilers.gcc.4_0
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/PicturePlayerOperations.o /Users/i5Js/xbmc/xbmc/xbmc/interfaces/json-rpc/PicturePlayerOperations.cpp normal i386 c++ com.apple.compilers.gcc.4_0
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/NFSDirectory.o /Users/i5Js/xbmc/xbmc/xbmc/filesystem/NFSDirectory.cpp normal i386 c++ com.apple.compilers.gcc.4_0
(4 failures)

BR
find quote
scbash Offline
Junior Member
Posts: 2
Joined: Sep 2011
Reputation: 0
Location: Boston, MA
Post: #22
davilla Wrote:fixed in trunk.

Thanks. Tested on my 10.6.8 machine with no problems.

Thanks,
Stephen
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #23
New try.... Only one error

Code:
** BUILD FAILED **


The following build commands failed:
XBMC:
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/NFSDirectory.o /Users/i5Js/xbmc/xbmc/xbmc/filesystem/NFSDirectory.cpp normal i386 c++ com.apple.compilers.gcc.4_0
(1 failure)
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #24
I don't know why, but compiled again from start and, worked!
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #25
New error compiling darwin dependences:

Code:
../config.site.mk:24: *** Recursive variable `CPPFLAGS' references itself (eventually).  Stop.

BR
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #26
yea, yea. working on it Smile


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: #27
hahahah Ok Davilla! Just testing Smile
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #28
New error:

Code:
make -C libcec
/usr/bin/curl -Ls --create-dirs --output /Users/Shared/xbmc-depends/tarballs/libcec-1.5.2.tar.bz2 http://mirrors.xbmc.org/build-deps/darwin-libs/libcec-1.5.2.tar.bz2
rm -rf libcec
tar xf /Users/Shared/xbmc-depends/tarballs/libcec-1.5.2.tar.bz2
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
make[1]: *** [libcec] Error 1
make: *** [libcec] Error 2

The problem is http://mirrors.xbmc.org/build-deps/darwi....2.tar.bz2 doesn't exists. It's http://mirrors.xbmc.org/build-deps/darwi...5.2.tar.gz instead.

BR
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 114
Location: germany
Post: #29
hehe will ponk the right people ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #30
One question, all the source code of git://github.com/xbmc/xbmc.git is eden version??
find quote
Post Reply