1

我使用了 SFML 2 安装程序,可以在这里找到。http://www.sfml-dev.org/download.php

Ld /Users/pjquinn/Library/Developer/Xcode/DerivedData/gangnam_style-ayfrlelgnycrzpdbmwbkqgtkkryv/Build/Products/Debug/gangnam_style.app/Contents/MacOS/gangnam_style normal x86_64
    cd /Users/pjquinn/Programming/C++/gangnam_style
    setenv MACOSX_DEPLOYMENT_TARGET 10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-L/Users/pjquinn/Library/Developer/Xcode/DerivedData/gangnam_style-ayfrlelgnycrzpdbmwbkqgtkkryv/Build/Products/Debug
-F/Users/pjquinn/Library/Developer/Xcode/DerivedData/gangnam_style-ayfrlelgnycrzpdbmwbkqgtkkryv/Build/Products/Debug
-filelist /Users/pjquinn/Library/Developer/Xcode/DerivedData/gangnam_style-ayfrlelgnycrzpdbmwbkqgtkkryv/Build/Intermediates/gangnam_style.build/Debug/gangnam_style.build/Objects-normal/x86_64/gangnam_style.LinkFileList
-mmacosx-version-min=10.7 -lsfml-system-d -lsfml-window-d -lsfml-graphics-d -lsfml-audio-d -lsfml-network-d -stdlib=libc++ -fobjc-link-runtime -framework Foundation -o /Users/pjquinn/Library/Developer/Xcode/DerivedData/gangnam_style-ayfrlelgnycrzpdbmwbkqgtkkryv/Build/Products/Debug/gangnam_style.app/Contents/MacOS/gangnam_style

ld: library not found for -lsfml-system-d clang: error: linker command failed with exit code 1 (use -v to see invocation)

当我创建一个项目时,我应该选择使用框架框吗?

4

2 回答 2

1

安装程序不附带调试二进制文件。

您还应该看看其他问题

于 2012-10-02T21:04:56.110 回答
0

我使用了他们的模板并选中了“使用框架”框,但仍然有问题。我最终做的是自己在项目中添加 SFML 框架文件(他们的安装程序脚本放在 ~/Libraries/Frameworks 中)(简单的拖放)。我仔细检查并确保添加的框架随后包含在构建阶段(它们是)中,并且一切正常。

于 2013-09-19T18:27:19.190 回答