Compiling on OS X 10.9 Mavericks - crud302 - 2013-11-20
Hi All,
I'm curious if anyone has successfully built xbmc on Mavericks (os X 10.9). I tried today using the git repo (up to commit cca24dd2).
I managed to get through the compilation only to have a linker error kill the process.
compile command:
Code: xcodebuild -configuration Release ONLY_ACTIVE_ARCH=YES ARCHS=x86_64 VALID_ARCHS=x86_64 -target "XBMC.app" -project XBMC.xcodeproj
final result:
Code: ld: library not found for -lavdevice
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My setup : Mac OS X 10.9, Macbook Pro 5,1, Xcode 5.0.2, 64-bit target xbmc.app
Compiling on OS X 10.9 Mavericks - Memphiz - 2013-11-20
you missed "make xcode_depends"
RE: Compiling on OS X 10.9 Mavericks - crud302 - 2013-11-21
Thanks Memphiz, but that's not it. I followed the instructions here to the letter.
I'll run the make steps under 4a again and take a closer look at the output.
here is the tail of the output from make xcode_depends.
Code: [100%] Building C object CMakeFiles/projectM.dir/stb_image_aug.c.o
Linking CXX shared library libprojectM.dylib
clang: warning: argument unused during compilation: '-fheinous-gnu-extensions'
[100%] Built target projectM
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -O2 -fheinous-gnu-extensions -no-cpp-precomp -no-integrated-as -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -isystem /Users/Shared/xbmc-depends/macosx10.9_x86_64-target/include -fheinous-gnu-extensions -no-cpp-precomp -no-integrated-as -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -isystem /Users/Shared/xbmc-depends/macosx10.9_x86_64-target/include -O3 -g -D_DEBUG -Wall -L/Users/Shared/xbmc-depends/macosx10.9_x86_64-target/lib -Wl,-search_paths_first -arch x86_64 -mmacosx-version-min=10.6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -Wl,-alias_list,/Users/crud/dev/xbmc/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
-bundle -undefined dynamic_lookup -read_only_relocs suppress -o /Users/crud/dev/xbmc/addons/visualization.projectm/projectM.vis \
/Users/crud/dev/xbmc/xbmc/cores/DllLoader/exports/wrapper.o ./libprojectM/CMakeFiles/projectM.dir/*.o Main.o
clang: warning: argument unused during compilation: '-fheinous-gnu-extensions'
clang: warning: argument unused during compilation: '-fheinous-gnu-extensions'
ld: warning: -read_only_relocs cannot be used with x86_64
/Applications/Xcode.app/Contents/Developer/usr/bin/make /Users/crud/dev/xbmc/addons/visualization.projectm/resources/presets.zip
make[2]: `/Users/crud/dev/xbmc/addons/visualization.projectm/resources/presets.zip' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/screensavers/rsxs-0.9/xbmc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ..
make[2]: *** No targets specified and no makefile found. Stop.
make[1]: *** [..] Error 2
make: *** [xbmc/screensavers/rsxs-0.9/xbmc] Error 2
RE: Compiling on OS X 10.9 Mavericks - jmarshall - 2013-11-21
Failing at rsxs is a known issue. Just make sure you run make xcode_depends enough so that everything else is built (order and -j 5 etc. may mean it will bail earlier than it should otherwise).
Once done, the xcode build step should be fine.
RE: Compiling on OS X 10.9 Mavericks - crud302 - 2013-11-21
That worked. Thanks a bunch.
Compiling on OS X 10.9 Mavericks - Memphiz - 2013-11-21
@jm rsxs should have been fixed with
https://github.com/xbmc/xbmc/commit/444d5b661eb0537e4a30e57c78b6c327bf71e251
i thought. I compile xbmc on 10.9 without issues atm.
RE: Compiling on OS X 10.9 Mavericks - jmarshall - 2013-11-21
Could well be - been a while since I built xcode_depends
(It was an issue on 10.8 as well - at least I'm still on 10.8)
RE: Compiling on OS X 10.9 Mavericks - davilla - 2013-11-22
rsxs was fixed a bit back, I also have zero problems compiling under 10.9.
RE: Compiling on OS X 10.9 Mavericks - garbear - 2014-03-21
rsxs is causing me issues. i'm seeing
Code: /Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/visualizations/OpenGLSpectrum
make[1]: `/Users/garrett/Documents/xbmc/addons/visualization.glspectrum/opengl_spectrum.vis' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/visualizations/WaveForm
make[1]: `/Users/garrett/Documents/xbmc/addons/visualization.waveform/Waveform.vis' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/visualizations/fishBMC
make[1]: `/Users/garrett/Documents/xbmc/addons/visualization.fishbmc/fishbmc.vis' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/visualizations/XBMCProjectM
make[1]: `/Users/garrett/Documents/xbmc/addons/visualization.projectm/projectM.vis' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C xbmc/screensavers/rsxs-0.9/xbmc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ..
make[2]: *** No targets specified and no makefile found. Stop.
make[1]: *** [..] Error 2
make: *** [xbmc/screensavers/rsxs-0.9/xbmc] Error 2
make with multiple jobs and the -k flag was able to finish the other targets, so xbmc still compiles and runs
|