2016-10-26 5 views
1

マックOS:https://wiki.videolan.org/VLCKit/コンパイルVLCKitに私がこのウィキ次のMac OS 10.11にVLCKitをコンパイルしようとしている10.11.6

私はクローンgitのを持っている://git.videolan.org/vlc-bindings/VLCKitを。 gitそしてXcode 8.0でVLCKit.xcodeprojを開き、最後に "Build Everything"を実行してください。

しかしthoses問題で失敗したビルド:

'checking for C/C++ restrict keyword... __restrict 
checking whether xcrun clang++ supports C++11 features by default... no 
checking whether xcrun clang++ supports C++11 features with -std=c++11... no 
checking whether xcrun clang++ supports C++11 features with -std=c++0x... no 
configure: error: *** A compiler with support for C++11 language features is required. 
Command /bin/sh failed with exit code 1 

** BUILD FAILED ** 


The following build commands failed: 
    PhaseScriptExecution configure build/VLCKit.build/Debug/Run\ VLC\ configure.build/Script-63FFDBCD0D2AE2AE0092FC96.sh 
(1 failure) 
make: *** [build/Debug/VLCKit.framework] Error 65' 

答えて

2

は、私は同じ問題を持っていたが、私はセクションでは、次のようになりますように、Configure.shでエクスポートCXXフラグにstd=c++11 -stdlib=libc++を追加することにより、これらのチェックに合格し取得することができました:

if test $arch = "x86_64"; then 
    export CFLAGS="-m64 -arch x86_64 $optim" 
    export CXXFLAGS="-m64 -arch x86_64 -std=c++11 -stdlib=libc++ $optim" 
    export OBJCFLAGS="-m64 -arch x86_64 $optim" 
    export CPPFLAGS="-m64 -arch x86_64 $optim" 
    this_args="--build=x86_64-apple-darwin15 --with-contrib=$VLC_SRC_DIR/contrib/x86_64-apple-darwin15 $this_args" 
    export PKG_CONFIG_PATH=$VLC_SRC_DIR/contrib/x86_64-apple-darwin11/lib/pkgconfig 
fi 

関連する問題