Kodi Community Forum
[MAC] Compiling on OSX Lion / Xcode 4.1` - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [MAC] Compiling on OSX Lion / Xcode 4.1` (/showthread.php?tid=107126)

Pages: 1 2 3 4 5 6 7 8 9 10


- i5Js - 2011-08-28

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



- i5Js - 2011-08-28

Fix it! To compile xbmc, just install xcode 3.2.6.

Building environment....

EDIT: Build all xbmc successfully under Lion!

BR


- i5Js - 2011-09-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



- scbash - 2011-09-18

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/37eb1b3453cff67aee7b6cb641a83d69807a33b3

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


- davilla - 2011-09-18

fixed in trunk.


- i5Js - 2011-09-18

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


- scbash - 2011-09-19

davilla Wrote:fixed in trunk.

Thanks. Tested on my 10.6.8 machine with no problems.

Thanks,
Stephen


- i5Js - 2011-09-19

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)



- i5Js - 2011-09-20

I don't know why, but compiled again from start and, worked!


- i5Js - 2011-10-02

New error compiling darwin dependences:

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

BR


- davilla - 2011-10-02

yea, yea. working on it Smile


- i5Js - 2011-10-02

hahahah Ok Davilla! Just testing Smile


RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-03-29

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/darwin-libs/libcec-1.5.2.tar.bz2 doesn't exists. It's http://mirrors.xbmc.org/build-deps/darwin-libs/libcec-1.5.2.tar.gz instead.

BR


RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - Memphiz - 2012-03-29

hehe will ponk the right people ...


RE: [MAC] Compiling on OSX Lion / Xcode 4.1` - i5Js - 2012-03-29

One question, all the source code of git://github.com/xbmc/xbmc.git is eden version??