首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在MacOS10.11.6上编译VLCKit

在MacOS10.11.6上编译VLCKit
EN

Stack Overflow用户
提问于 2016-10-26 11:28:42
回答 1查看 324关注 0票数 1

我正在尝试按照这个wiki在MacOS10.11上编译VLCKit:https://wiki.videolan.org/VLCKit/

我克隆了git://git.videolan.org/vlc-bindings/VLCKit.git,然后在Xcode8.0中打开VLCKit.xcodeproj,最后运行"Build Everything“。

但是构建失败了,出现了以下问题:

代码语言:javascript
复制
'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'
EN

回答 1

Stack Overflow用户

发布于 2016-11-24 01:29:42

我也遇到了同样的问题,但是通过将std=c++11 -stdlib=libc++添加到在Configure.sh中导出的CXX标志,我能够通过这些检查,因此该部分如下所示:

代码语言:javascript
复制
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

希望这能有所帮助!

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40253221

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档