OpenTrack构建中的Xcode libtool错误

时间:2015-07-23 15:12:43

标签: xcode libtool-xcode

我使用CMake 3.3.0-rc4为OpenTrack生成Xcode项目。但是,当我尝试在Xcode 6.4中构建ALL_BUILD目标时,我立即得到以下错误。

Libtool build/Debug/libopentrack-version.a normal x86_64
    cd /Users/david/Documents/Programming/OpenTrack
    export MACOSX_DEPLOYMENT_TARGET=10.10
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/user/Documents/Programming/OpenTrack/build/Debug -filelist /Users/user/Documents/Programming/OpenTrack/build/opentrack.build/Debug/opentrack-version.build/Objects-normal/x86_64/opentrack-version.LinkFileList -stdlib=libc++ -framework Cocoa -framework CoreFoundation -lobjc -lz -framework Carbon -o /Users/user/Documents/Programming/OpenTrack/build/Debug/libopentrack-version.a

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `t' in: -stdlib=libc++
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]

项目的构建设置具有以下针对链接/其他图书馆员标志的设置:

OTHER_LIBTOOLFLAGS = -stdlib=libc++ -framework Cocoa -framework CoreFoundation -lobjc -lz -framework Carbon

从上面的libtool用法语句中,我看起来像是为完全不同版本的libtool生成了这组选项。我可以做什么(如果有的话)使用当前版本的Xcode构建这个项目?

1 个答案:

答案 0 :(得分:0)

您不能将标记-stdlib=libc++-frameworklibtool一起使用,因为它们仅在链接器中有效,因此您应该将OTHER_LIBTOOLFLAGS设为空,因为这些选项都不是应用