•   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 10
  •   
[MAC] Compiling on OSX Lion / Xcode 4.1`
#46
(2012-05-27, 19:41)davilla Wrote: http://imame4all.googlecode.com/svn-hist..._xcode.txt

It's funny: using Xcode compile fine, but with command line give me that error... I don't know why!... Anyway, it worked, I'm going to test it.

Thanks for all Davilla.

BR
Reply
#47
Hello again,

I'm trying to build xbmc for osx following the instructions, but it fail in the final step:

Code:
kaya:xbmc i5Js$ xcodebuild -sdk macosx10.4 -project XBMC.xcodeproj -target XBMC.app -configuration Release build
Build settings from command line:
    PLATFORM_NAME = macosx
    SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk


=== BUILD NATIVE TARGET XBMC OF PROJECT XBMC WITH CONFIGURATION Release ===
Check dependencies
LLVM GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file Application.cpp)
LLVM GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file Application.cpp)
Mac OS X deployment target '10.6' for architecture 'x86_64' and variant 'normal' is greater than the maximum value '10.4' for the Mac OS X 10.4 SDK.
[WARN]Mac OS X deployment target '10.6' for architecture 'x86_64' and variant 'normal' is greater than the maximum value '10.4' for the Mac OS X 10.4 SDK.
** BUILD FAILED **

I don't know why is using x64 and SDK 10.6 What's wrong??

Thx.
Reply
#48
you are using sdk 10.4 - its not supported anymore ... use xcodebuild -sdk macosx10.6 or 10.7 if you are on lion ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#49
So, I've to install lastest xcode? Because I've only 10.4,10.5 and 10.6 sdk installed...

Thanks for your answer.

BR
Reply
#50
use 10.6 sdk, just like Memphiz said.

instead of

"kaya:xbmc i5Js$ xcodebuild -sdk macosx10.4 -project XBMC.xcodeproj -target XBMC.app -configuration Release build"

do

""kaya:xbmc i5Js$ xcodebuild -sdk macosx10.6 -project XBMC.xcodeproj -target XBMC.app -configuration Release build""

see the change ?
MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
Reply
#51
Thanks for your answer Davilla, I did it, but I had a lot of errors. The last line:

Code:
CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/x86_64/CoreAudioGraph.o /Users/i5Js/xbmc/xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioGraph.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/x86_64/HTTPImageHandler.o /Users/i5Js/xbmc/xbmc/network/httprequesthandler/HTTPImageHandler.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/x86_64/CDDARipJob.o /Users/i5Js/xbmc/xbmc/cdrip/CDDARipJob.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
(724 failures)

Some lines from the beginning:

Code:
kaya:xbmc i5Js$ xcodebuild -sdk macosx10.6 -project XBMC.xcodeproj -target XBMC.app -configuration Release build
Build settings from command line:
    PLATFORM_NAME = macosx
    SDKROOT = /Developer/SDKs/MacOSX10.6.sdk


=== BUILD NATIVE TARGET XBMC OF PROJECT XBMC WITH CONFIGURATION Release ===
Check dependencies
CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/x86_64/Application.o xbmc/Application.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
    cd /Users/i5Js/xbmc
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O2 -Wreturn-type -Wunused-variable -Wsign-compare -DTARGET_POSIX -DTARGET_DARWIN -DTARGET_DARWIN_OSX -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -DHAS_SDL_JOYSTICK -DHAVE_CONFIG_H -DHAS_SPC_CODEC -isysroot /Developer/SDKs/MacOSX10.6.sdk -funroll-loops -ftree-vectorize -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/i5Js/xbmc/build/XBMC.build/Release/XBMC.build/XBMC.hmap -F/Users/i5Js/xbmc/build/Release -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/libcec -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/mysql -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/freetype2 -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/python2.6 -I/Users/i5Js/xbmc/build/Release/include -I/Users/i5Js/xbmc -Ixbmc -Ixbmc/osx -Ixbmc/linux -Ixbmc/cores/dvdplayer -Ixbmc/cores/AudioEngine -Ixbmc/cores/AudioEngine/Utils -Ilib -Ilib/ffmpeg -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/libcec -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/mysql -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/freetype2 -I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include/python2.6 -I/Users/i5Js/xbmc/build/XBMC.build/Release/XBMC.build/DerivedSources/x86_64 -I/Users/i5Js/xbmc/build/XBMC.build/Release/XBMC.build/DerivedSources -c /Users/i5Js/xbmc/xbmc/Application.cpp -o /Users/i5Js/xbmc/build/XBMC.build/Release/XBMC.build/Objects-normal/x86_64/Application.o

In file included from /Users/i5Js/xbmc/xbmc/guilib/IMsgTargetCallback.h:32,
                 from /Users/i5Js/xbmc/xbmc/Application.h:27,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:24:
/Users/i5Js/xbmc/xbmc/guilib/GUIMessage.h:272:32: error: boost/shared_ptr.hpp: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/network/WebServer.h:35,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:40:
/Users/i5Js/xbmc/xbmc/network/httprequesthandler/IHTTPRequestHandler.h:33:24: error: microhttpd.h: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/network/httprequesthandler/HTTPWebinterfaceHandler.h:24,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:50:
xbmc/addons/IAddon.h:25:45: error: boost/enable_shared_from_this.hpp: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/addons/Addon.h:24,
                 from /Users/i5Js/xbmc/xbmc/addons/Skin.h:24,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:64:
xbmc/addons/AddonVersion.h:25:31: error: boost/operators.hpp: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/addons/Addon.h:25,
                 from /Users/i5Js/xbmc/xbmc/addons/Skin.h:24,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:64:
xbmc/utils/XBMCTinyXML.h:43:21: error: tinyxml.h: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/filesystem/StackDirectory.h:25,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:79:
xbmc/utils/RegExp.h:34:18: error: pcre.h: No such file or directory
In file included from xbmc/rendering/gl/RenderSystemGL.h:28,
                 from /Users/i5Js/xbmc/xbmc/windowing/osx/WinSystemOSXGL.h:28,
                 from /Users/i5Js/xbmc/xbmc/windowing/WindowingFactory.h:52,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:101:
/Users/i5Js/xbmc/xbmc/system_gl.h:43:25: error: GL/glew.h: No such file or directory
/Users/i5Js/xbmc/xbmc/Application.cpp:114:21: error: SDL/SDL.h: No such file or directory
In file included from /Users/i5Js/xbmc/xbmc/filesystem/AFPFile.h:32,
                 from /Users/i5Js/xbmc/xbmc/Application.cpp:131:
/Users/i5Js/xbmc/xbmc/filesystem/DllLibAfp.h:30:35: error: afpfs-ng/libafpclient.h: No such file or directory
/Users/i5Js/xbmc/xbmc/filesystem/DllLibAfp.h:31:30: error: afpfs-ng/map_def.h: No such file or directory
/Users/i5Js/xbmc/xbmc/filesystem/DllLibAfp.h:32:31: error: afpfs-ng/midlevel.h: No such file or directory

where is the entire output file to paste it?

Thanks again.

BR
Reply
#52
you better have build depends with -arch x86_64 or the xcode build will not find them Smile

This is a hint "xbmc/addons/IAddon.h:25:45: error: boost/enable_shared_from_this.hpp: No such file or directory"

In general, sdk versions and arch MUST match between the depends build and what xcode uses. That's why they are called 'depends' Smile

"-I/Users/Shared/xbmc-depends/macosx10.6_x86_64/include"

See the path name ? It combines the sdk version and the arch.
MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
Reply
#53
davilla i think the arch is missing in the xcodebuild command (should be i386 as he seems to just following the current readme). Not sure how this has to be done ... but i guess:

xcodebuild ARCHS=i386 ONLY_ACTIVE_ARCH=NO -sdk macosx10.6 -project XBMC.xcodeproj -target XBMC.app -configuration Release build
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#54
(2012-06-04, 12:43)Memphiz Wrote: davilla i think the arch is missing in the xcodebuild command (should be i386 as he seems to just following the current readme). Not sure how this has to be done ... but i guess:

xcodebuild ARCHS=i386 ONLY_ACTIVE_ARCH=NO -sdk macosx10.6 -project XBMC.xcodeproj -target XBMC.app -configuration Release build

This command almost did the trick.... Only one error

Code:
** BUILD FAILED **


The following build commands failed:
XBMC:
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/AirTunesServer.o /Users/i5Js/xbmc/xbmc/network/AirTunesServer.cpp normal i386 c++ com.apple.compilers.llvmgcc42
(1 failure)


BR


Reply
#55
xcode 3.x needs 'ARCHS=i386' or 'ARCHS=x86_64' in the xcodebuild line. xcode4 has a -arch setting and that should be used under xcode4.
MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
Reply
#56
(2012-06-04, 18:50)i5Js Wrote:
(2012-06-04, 12:43)Memphiz Wrote: davilla i think the arch is missing in the xcodebuild command (should be i386 as he seems to just following the current readme). Not sure how this has to be done ... but i guess:

xcodebuild ARCHS=i386 ONLY_ACTIVE_ARCH=NO -sdk macosx10.6 -project XBMC.xcodeproj -target XBMC.app -configuration Release build

This command almost did the trick.... Only one error

Code:
** BUILD FAILED **


The following build commands failed:
XBMC:
    CompileC build/XBMC.build/Release/XBMC.build/Objects-normal/i386/AirTunesServer.o /Users/i5Js/xbmc/xbmc/network/AirTunesServer.cpp normal i386 c++ com.apple.compilers.llvmgcc42
(1 failure)


BR

you know, that only shows the file with the error, to see the ACTUAL error, scroll up to that file.
MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
Reply
#57
I bet a stale dependency ... just in case its something with metadata in AirTunes -

make -C tools/darwin/depends/libshairport distclean
make -C tools/darwin/depends/libshairport

then rerun the xcodebuild cmd.

AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#58
Great!!!! Worked like a charm!!!

Thanks a lot Memphiz
Reply
#59
one question, it would be better compile it for 64bits or 32bits?
Reply
#60
better for what? ^^
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
  •   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 10
  •   
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
[MAC] Compiling on OSX Lion / Xcode 4.1`00