Issues compiling Plex on Snow Leopard

Installed latest version of xcode v3.2.5. Clean installation of Macports, and installed the bwtoolkit and recommended Macport packages (and also installed Python25 package and selected as default). Getting pythe following compilation errors when I try the following:



xcodebuild -parallelizeTargets -configuration Debug



Any ideas?



<br />
$ xcodebuild -parallelizeTargets -configuration Debug<br />
<br />
=== BUILD NATIVE TARGET PlexHelper OF PROJECT Plex WITH CONFIGURATION Debug ===<br />
Check dependencies<br />
<br />
=== BUILD NATIVE TARGET CrashReporter OF PROJECT Plex WITH CONFIGURATION Debug ===<br />
Check dependencies<br />
<br />
=== BUILD NATIVE TARGET relaunch OF PROJECT Plex WITH CONFIGURATION Debug ===<br />
Check dependencies<br />
<br />
=== BUILD NATIVE TARGET frontrowlauncher OF PROJECT Plex WITH CONFIGURATION Debug ===<br />
Check dependencies<br />
<br />
=== BUILD NATIVE TARGET Plex OF PROJECT Plex WITH CONFIGURATION Debug ===<br />
Check dependencies<br />
CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/Application.o xbmc/Application.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
    cd /Users/yang/projects/plex<br />
    setenv LANG en_US.US-ASCII<br />
    /Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DAPPLICATION_VERSION="0.9.1.9" -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK -DHAS_VIDEO_PLAYBACK -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Plex.hmap -F/Users/yang/projects/plex/build/Debug -F/Users/yang/projects/plex/plex/Frameworks -F/Users/yang/projects/plex -I/Users/yang/projects/plex/build/Debug/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg -Ixbmc/cores/dvdplayer/DVDCodecs/Audio/libdca -Ixbmc -Ixbmc/lib/libaften -Ixbmc/lib/libffmpeg-OSX -Ixbmc/utils -Ixbmc/lib -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include -Ixbmc/lib/libportaudio -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/linux -Iguilib -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources/i386 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources -c /Users/yang/projects/plex/xbmc/Application.cpp -o /Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Objects-normal/i386/Application.o<br />
<br />
In file included from /Users/yang/projects/plex/xbmc/cores/VideoRenderers/LinuxRendererGL.h:9,<br />
                 from /Users/yang/projects/plex/xbmc/cores/VideoRenderers/RenderManager.h:25,<br />
                 from /Users/yang/projects/plex/xbmc/Application.cpp:102:<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_video(AVCodecContext*, AVFrame*, int*, uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:82: warning: 'avcodec_decode_video' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3518)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:82: warning: 'avcodec_decode_video' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3518)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:83: warning: 'avcodec_decode_audio2' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3456)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:83: warning: 'avcodec_decode_audio2' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3456)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_subtitle(AVCodecContext*, AVSubtitle*, int*, const uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:84: warning: 'avcodec_decode_subtitle' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3571)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:84: warning: 'avcodec_decode_subtitle' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3571)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::av_parser_parse(AVCodecParserContext*, AVCodecContext*, uint8_t**, int*, const uint8_t*, int, int64_t, int64_t)':<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:93: warning: 'av_parser_parse' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3842)<br />
/Users/yang/projects/plex/xbmc/cores/VideoRenderers/../ffmpeg/DllAvCodec.h:93: warning: 'av_parser_parse' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3842)<br />
In file included from /Users/yang/projects/plex/xbmc/ThumbLoader.h:26,<br />
                 from /Users/yang/projects/plex/xbmc/GUIWindowMusicSongs.h:25,<br />
                 from /Users/yang/projects/plex/xbmc/Application.cpp:141:<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h: In member function 'virtual void DllAvFormat::av_destruct_packet_nofree(AVPacket*)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h:93: warning: 'av_destruct_packet_nofree' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:2934)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h:93: warning: 'av_destruct_packet_nofree' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:2934)<br />
In file included from /Users/yang/projects/plex/xbmc/Application.cpp:244:<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onViewModeChanged(const std::string&, const std::string&, const std::string&, int, int, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:41: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:42: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onPlayingProgress(const CFileItemPtr&, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onRate(const CFileItemPtr&, float)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/Application.cpp: In member function 'bool CApplication::PlayStack(const CFileItem&, bool)':<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4538: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4538: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4538: error: expected `;' before 'int'<br />
/Users/yang/projects/plex/xbmc/Application.cpp: In member function 'bool CApplication::PlayFile(const CFileItem&, bool)':<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4648: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4648: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/Application.cpp:4648: error: expected `;' before 'int'<br />
/Users/yang/projects/plex/xbmc/Application.cpp: In member function 'void CApplication::UpdateFileState(bool, bool)':<br />
/Users/yang/projects/plex/xbmc/Application.cpp:5916: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/Application.cpp:5916: error: expected primary-expression before '>' token<br />
CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/PlexMediaServerQueue.o xbmc/osx/PlexMediaServerQueue.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
    cd /Users/yang/projects/plex<br />
    setenv LANG en_US.US-ASCII<br />
    /Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DAPPLICATION_VERSION="0.9.1.9" -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK -DHAS_VIDEO_PLAYBACK -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Plex.hmap -F/Users/yang/projects/plex/build/Debug -F/Users/yang/projects/plex/plex/Frameworks -F/Users/yang/projects/plex -I/Users/yang/projects/plex/build/Debug/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg -Ixbmc/cores/dvdplayer/DVDCodecs/Audio/libdca -Ixbmc -Ixbmc/lib/libaften -Ixbmc/lib/libffmpeg-OSX -Ixbmc/utils -Ixbmc/lib -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include -Ixbmc/lib/libportaudio -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/linux -Iguilib -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources/i386 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources -c /Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.cpp -o /Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Objects-normal/i386/PlexMediaServerQueue.o<br />
<br />
In file included from /Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.cpp:3:<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onViewModeChanged(const std::string&, const std::string&, const std::string&, int, int, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:41: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:42: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onPlayingProgress(const CFileItemPtr&, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onRate(const CFileItemPtr&, float)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: expected primary-expression before '>' token<br />
CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIMediaWindow.o xbmc/GUIMediaWindow.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
    cd /Users/yang/projects/plex<br />
    setenv LANG en_US.US-ASCII<br />
    /Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DAPPLICATION_VERSION="0.9.1.9" -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK -DHAS_VIDEO_PLAYBACK -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Plex.hmap -F/Users/yang/projects/plex/build/Debug -F/Users/yang/projects/plex/plex/Frameworks -F/Users/yang/projects/plex -I/Users/yang/projects/plex/build/Debug/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg -Ixbmc/cores/dvdplayer/DVDCodecs/Audio/libdca -Ixbmc -Ixbmc/lib/libaften -Ixbmc/lib/libffmpeg-OSX -Ixbmc/utils -Ixbmc/lib -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include -Ixbmc/lib/libportaudio -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/linux -Iguilib -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources/i386 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources -c /Users/yang/projects/plex/xbmc/GUIMediaWindow.cpp -o /Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIMediaWindow.o<br />
<br />
In file included from /Users/yang/projects/plex/xbmc/GUIMediaWindow.cpp:51:<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onViewModeChanged(const std::string&, const std::string&, const std::string&, int, int, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:41: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:42: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onPlayingProgress(const CFileItemPtr&, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onRate(const CFileItemPtr&, float)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: expected primary-expression before '>' token<br />
CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIWindowVideoBase.o xbmc/GUIWindowVideoBase.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
    cd /Users/yang/projects/plex<br />
    setenv LANG en_US.US-ASCII<br />
    /Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DAPPLICATION_VERSION="0.9.1.9" -D_DEBUG -D_LINUX -D_REENTRANT -D_FILE_DEFINED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_SDL_JOYSTICK -DHAS_VIDEO_PLAYBACK -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Plex.hmap -F/Users/yang/projects/plex/build/Debug -F/Users/yang/projects/plex/plex/Frameworks -F/Users/yang/projects/plex -I/Users/yang/projects/plex/build/Debug/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg/include -Ixbmc/cores/dvdplayer/Codecs/ffmpeg -Ixbmc/cores/dvdplayer/DVDCodecs/Audio/libdca -Ixbmc -Ixbmc/lib/libaften -Ixbmc/lib/libffmpeg-OSX -Ixbmc/utils -Ixbmc/lib -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include -Ixbmc/lib/libportaudio -Ixbmc/cores -Ixbmc/cores/dvdplayer -Ixbmc/cores/ffmpeg -Ixbmc/linux -Iguilib -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/mysql5 -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11R6/include -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources/i386 -I/Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/DerivedSources -c /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp -o /Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIWindowVideoBase.o<br />
<br />
In file included from /Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h:3,<br />
                 from /Users/yang/projects/plex/xbmc/ThumbLoader.h:26,<br />
                 from /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.h:27,<br />
                 from /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:23:<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_video(AVCodecContext*, AVFrame*, int*, uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:82: warning: 'avcodec_decode_video' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3518)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:82: warning: 'avcodec_decode_video' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3518)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:83: warning: 'avcodec_decode_audio2' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3456)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:83: warning: 'avcodec_decode_audio2' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3456)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::avcodec_decode_subtitle(AVCodecContext*, AVSubtitle*, int*, const uint8_t*, int)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:84: warning: 'avcodec_decode_subtitle' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3571)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:84: warning: 'avcodec_decode_subtitle' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3571)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h: In member function 'virtual int DllAvCodec::av_parser_parse(AVCodecParserContext*, AVCodecContext*, uint8_t**, int*, const uint8_t*, int, int64_t, int64_t)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:93: warning: 'av_parser_parse' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3842)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvCodec.h:93: warning: 'av_parser_parse' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:3842)<br />
In file included from /Users/yang/projects/plex/xbmc/ThumbLoader.h:26,<br />
                 from /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.h:27,<br />
                 from /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:23:<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h: In member function 'virtual void DllAvFormat::av_destruct_packet_nofree(AVPacket*)':<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h:93: warning: 'av_destruct_packet_nofree' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:2934)<br />
/Users/yang/projects/plex/xbmc/cores/ffmpeg/DllAvFormat.h:93: warning: 'av_destruct_packet_nofree' is deprecated (declared at xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/avcodec.h:2934)<br />
In file included from /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:54:<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onViewModeChanged(const std::string&, const std::string&, const std::string&, int, int, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:40: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:41: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:42: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onPlayingProgress(const CFileItemPtr&, int)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:50: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h: In member function 'void PlexMediaServerQueue::onRate(const CFileItemPtr&, float)':<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: 'lexical_cast' was not declared in this scope<br />
/Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.h:71: error: expected primary-expression before '>' token<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp: In member function 'int CGUIWindowVideoBase::GetResumeItemOffset(const CFileItem*)':<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:457: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:457: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:457: error: expected ';' before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:457: error: expected unqualified-id before '>' token<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp: In member function 'void CGUIWindowVideoBase::OnResumeItem(int)':<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:525: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:525: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:525: error: expected ',' or ';' before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp: In static member function 'static void CGUIWindowVideoBase::MarkUnWatched(const CFileItemPtr&)':<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:997: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:997: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:997: error: expected ',' or ';' before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:998: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:998: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:998: error: expected ',' or ';' before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp: In static member function 'static void CGUIWindowVideoBase::MarkWatched(const CFileItemPtr&)':<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1017: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1017: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1017: error: expected ',' or ';' before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1018: error: 'lexical_cast' is not a member of 'boost'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1018: error: expected primary-expression before 'int'<br />
/Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp:1018: error: expected ',' or ';' before 'int'<br />
PhaseScriptExecution "Run Script" build/Plex.build/Debug/Plex.build/Script-E3AC021F0E3B34FA00DD298E.sh<br />
    cd /Users/yang/projects/plex<br />
    /bin/sh -c /Users/yang/projects/plex/build/Plex.build/Debug/Plex.build/Script-E3AC021F0E3B34FA00DD298E.sh<br />
<br />
** BUILD FAILED **<br />
<br />
<br />
The following build commands failed:<br />
Plex:<br />
	CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/PlexMediaServerQueue.o /Users/yang/projects/plex/xbmc/osx/PlexMediaServerQueue.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
	CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIMediaWindow.o /Users/yang/projects/plex/xbmc/GUIMediaWindow.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
	CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/GUIWindowVideoBase.o /Users/yang/projects/plex/xbmc/GUIWindowVideoBase.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
	CompileC build/Plex.build/Debug/Plex.build/Objects-normal/i386/Application.o /Users/yang/projects/plex/xbmc/Application.cpp normal i386 c++ com.apple.compilers.gcc.4_2<br />
(4 failures)<br />




I was also getting these errors

LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).

But I went around that for now by commenting out the offending line in pyport.h.

Any help would be greatly appreciated. Thank you!

Hi kyopo,



For Python, don’t use MacPorts (architecture weirdness in < python26), use MacPython 2.4.4, the binary release, and make sure that XCode can see the framework (mine was /Library/Frameworks/Python.framework/Versions/2.4/include).



For the boost errors, #include <boost/lexical_cast.hpp> on all files that complain about lexical_cast<>.



Happy hacking!

You might also have problems with libmad, see this thread.



If you’re on x86_64, you’ll probably want to tell macports to compile to i386, or Plex will crash and burn trying to link libraries from two different architectures (Plex links to i386). Edit macports.conf and uncomment “build_arch i386”.



I’ve attached a patch that fixes the libmad issue (devs: in my opinion it’s safe to link against the generic libmad.dylib symlink, this lib hasn’t seen an update in 7 years), the boost lib issue, includes a path to Python frameworks that were installed to root (e.g. MacPython), and also disables code signing for the Debug target.



Actually: forum admins: why can’t we attach .patch files?



Patch inline:



<br />
From f683a03485bb5697eb7d21a432ad00f66bf777dd Mon Sep 17 00:00:00 2001<br />
From: Andre Reis <andrebragareis@gmail.com><br />
Date: Sun, 6 Feb 2011 16:19:14 -0500<br />
Subject: [PATCH] Fix common compilation issues with clean installs<br />
<br />
---<br />
 Plex.xcodeproj/project.pbxproj  |    9 ++++++---<br />
 xbmc/osx/PlexMediaServerQueue.h |    1 +<br />
 2 files changed, 7 insertions(+), 3 deletions(-)<br />
<br />
diff --git a/Plex.xcodeproj/project.pbxproj b/Plex.xcodeproj/project.pbxproj<br />
index 26a8a48..7206644 100644<br />
--- a/Plex.xcodeproj/project.pbxproj<br />
+++ b/Plex.xcodeproj/project.pbxproj<br />
@@ -43,6 +43,7 @@<br />
 		1AF6A79C0E994BFB00D96BD7 /* ModelNames.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1AF6A79B0E994BFB00D96BD7 /* ModelNames.plist */; };<br />
 		341F0A1C108E8B7000C6D28E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E38E238D0D2626E600618676 /* Cocoa.framework */; };<br />
 		34A2F55810899C9B00F6206C /* HIDRemote.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A2F55710899C9B00F6206C /* HIDRemote.m */; };<br />
+		47A5B36712FF415A001C2E4E /* libmad.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 47A5B36612FF415A001C2E4E /* libmad.dylib */; };<br />
 		9421E33A0ED6A99E00A26254 /* CoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 943BC2870ED3F1E500B7CB45 /* CoreAudioRenderer.cpp */; };<br />
 		949384630F591AE6004DFC17 /* FileEyeTVSocket.mm in Sources */ = {isa = PBXBuildFile; fileRef = 949384620F591AE6004DFC17 /* FileEyeTVSocket.mm */; };<br />
 		94B1852B0EB48264008C38FA /* CoreAudioAUHAL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 94B185280EB48264008C38FA /* CoreAudioAUHAL.cpp */; };<br />
@@ -815,7 +816,6 @@<br />
 		E371C5230E2F2DF500FBF841 /* libGoAhead-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E38F12E90D2A17B30035C331 /* libGoAhead-osx.a */; };<br />
 		E371C5240E2F2DF500FBF841 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E38E24260D26317D00618676 /* libiconv.dylib */; };<br />
 		E371C5250E2F2DF500FBF841 /* liblzo.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E38E24270D26317D00618676 /* liblzo.dylib */; };<br />
-		E371C5260E2F2DF500FBF841 /* libmad.0.2.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E3EB8F030D5D5C0300FFF489 /* libmad.0.2.1.dylib */; };<br />
 		E371C5270E2F2DF500FBF841 /* libmysqlclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 88ECB6EB0DE07C56003396A7 /* libmysqlclient.a */; };<br />
 		E371C5280E2F2DF500FBF841 /* libogg.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 88ECB6E90DE07BEE003396A7 /* libogg.a */; };<br />
 		E371C5290E2F2DF500FBF841 /* libpcre.0.0.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E3BBB7A10D7EA8B200CAAFD3 /* libpcre.0.0.1.dylib */; };<br />
@@ -1015,6 +1015,7 @@<br />
 		1AF6A79B0E994BFB00D96BD7 /* ModelNames.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = ModelNames.plist; path = plex/ModelNames.plist; sourceTree = "<group>"; };<br />
 		34A2F55610899C9B00F6206C /* HIDRemote.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HIDRemote.h; path = tools/EventClients/Clients/XBMCHelper/HIDRemote.h; sourceTree = "<group>"; };<br />
 		34A2F55710899C9B00F6206C /* HIDRemote.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = HIDRemote.m; path = tools/EventClients/Clients/XBMCHelper/HIDRemote.m; sourceTree = "<group>"; };<br />
+		47A5B36612FF415A001C2E4E /* libmad.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libmad.dylib; path = /opt/local/lib/libmad.dylib; sourceTree = "<absolute>"; };<br />
 		6E97BDBC0DA2B5D8003A2A89 /* GUIInfoColor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GUIInfoColor.cpp; sourceTree = "<group>"; };<br />
 		6E97BDBD0DA2B5D8003A2A89 /* GUIInfoColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GUIInfoColor.h; sourceTree = "<group>"; };<br />
 		6E97BDBF0DA2B620003A2A89 /* EventClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventClient.h; sourceTree = "<group>"; };<br />
@@ -3063,7 +3064,6 @@<br />
 				E371C5230E2F2DF500FBF841 /* libGoAhead-osx.a in Frameworks */,<br />
 				E371C5240E2F2DF500FBF841 /* libiconv.dylib in Frameworks */,<br />
 				E371C5250E2F2DF500FBF841 /* liblzo.dylib in Frameworks */,<br />
-				E371C5260E2F2DF500FBF841 /* libmad.0.2.1.dylib in Frameworks */,<br />
 				E371C5270E2F2DF500FBF841 /* libmysqlclient.a in Frameworks */,<br />
 				E371C5280E2F2DF500FBF841 /* libogg.a in Frameworks */,<br />
 				E371C5290E2F2DF500FBF841 /* libpcre.0.0.1.dylib in Frameworks */,<br />
@@ -3100,6 +3100,7 @@<br />
 				E3065EA210182FEB004555EF /* CoreVideo.framework in Frameworks */,<br />
 				E3D32FFF114C5E2D00F2B108 /* libboost_regex-mt.dylib in Frameworks */,<br />
 				94F96C501185A7B000AA6635 /* VideoDecodeAcceleration.framework in Frameworks */,<br />
+				47A5B36712FF415A001C2E4E /* libmad.dylib in Frameworks */,<br />
 			);<br />
 			runOnlyForDeploymentPostprocessing = 0;<br />
 		};<br />
@@ -3151,6 +3152,7 @@<br />
 				1AF6A79B0E994BFB00D96BD7 /* ModelNames.plist */,<br />
 				E3065EA110182FEB004555EF /* CoreVideo.framework */,<br />
 				E3D32FFE114C5E2D00F2B108 /* libboost_regex-mt.dylib */,<br />
+				47A5B36612FF415A001C2E4E /* libmad.dylib */,<br />
 			);<br />
 			name = XBMC;<br />
 			sourceTree = "<group>";<br />
@@ -7504,7 +7506,7 @@<br />
 			buildSettings = {<br />
 				ALWAYS_SEARCH_USER_PATHS = YES;<br />
 				APPLICATION_VERSION = 0.9.1.9;<br />
-				CODE_SIGN_IDENTITY = Plex;<br />
+				CODE_SIGN_IDENTITY = "Don't Code Sign";<br />
 				COPY_PHASE_STRIP = NO;<br />
 				FRAMEWORK_SEARCH_PATHS = (<br />
 					"$(inherited)",<br />
@@ -7538,6 +7540,7 @@<br />
 					"xbmc/lib/libffmpeg-OSX",<br />
 					xbmc/utils/,<br />
 					xbmc/lib/,<br />
+					/Library/Frameworks/Python.framework/Versions/2.4/include/,<br />
 					/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/,<br />
 					xbmc/lib/libportaudio,<br />
 					xbmc/cores,<br />
diff --git a/xbmc/osx/PlexMediaServerQueue.h b/xbmc/osx/PlexMediaServerQueue.h<br />
index 992d881..e425dbb 100644<br />
--- a/xbmc/osx/PlexMediaServerQueue.h<br />
+++ b/xbmc/osx/PlexMediaServerQueue.h<br />
@@ -4,6 +4,7 @@<br />
 #include <queue><br />
 #include <boost/thread.hpp><br />
 #include <boost/thread/condition.hpp><br />
+#include <boost/lexical_cast.hpp><br />
 <br />
 #include "FileItem.h"<br />
 #include "Thread.h"<br />
-- <br />
1.7.0<br />
<br />


Hey,



I’m trying to setup plex on xcode and I’m having the same issues with LONG_BIT when compiling.




I installed Mac python 2.4.4 but being totally new to Xcode...how does one make sure that xcode can see it...?

Regards,

delley

If you’re trying to build the latest client (the Laika version), just run “bootstrap.py” in the repo’s root directory. This will fetch and build all the dependencies for you.



I followed the setup guide here: http://wiki.plexapp.com/index.php/How_to_Compile

And I choose to git the source from 0.9 branch...is that the right one for the latest version with the Laika client..?


Hey, I'm having a problem running bootstrap.py -- it gives this output:


<br />
-> Updating submodules<br />
...Command failed: "git submodule update --init"<br />
Output: Submodule 'addons/skin.mediastream' () registered for path 'addons/skin.mediastream'<br />
Submodule 'xbmc/cores/dvdplayer/Codecs/ffmpeg' () registered for path 'xbmc/cores/dvdplayer/Codecs/ffmpeg'<br />
Cloning into 'addons/skin.mediastream'...<br />
ERROR: Permission to plexinc/plex-mediastream.git denied to mjsuhonos.<br />
fatal: The remote end hung up unexpectedly<br />
Clone of 'git@github.com:plexinc/plex-mediastream.git' into submodule path 'addons/skin.mediastream' failed<br />




Not really clear on what github permissions are required to clone a repo?

FWIW, I'm trying to build Plex off the laika branch, and it keeps giving "Unrecognized command line option -Wno-gnu" for every file (827 failures). I'm using Xcode 3.2.6 and followed the instructions on the linked Wiki page to get all the dependencies etc. via macports. Is it worth my while to download Xcode 4.2? Is this a requirement now?

Thanks in advance!


@robotninja - I also had the same bootstrap.py problems you did until I re-setup my SSH keys - see [Set Up Git](http://help.github.com/mac-set-up-git/). That resolved it for me.

As for the "Unrecognized command line option -Wno-gnu", I too am getting these. I'd also like to know how to resolve them as I'm fairly new to using the Xcode environment.

Thanks!

Sorry, we’ll try to get documentation up shortly! XCode 4.2 is where you want to be.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.