c++ - 无法在 Xcode 上启动 SFML 应用程序

标签 c++ xcode sfml

根据教程 http://www.sfml-dev.org/tutorials/2.0/start-osx.php 在 Mac OS 上安装了 SFML (Xcode 6.1),它有点工作,所以我可以创建 SMFL 应用程序,但是当我尝试构建该标准项目时,它出现以下错误

Ld /Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Intermediates/Test.build/Debug/Test.build/Objects-normal/x86_64/Test normal x86_64
    cd /Users/andreybondar/Desktop/Test
    export MACOSX_DEPLOYMENT_TARGET=10.10
    /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.10.sdk -L/Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Products/Debug -L/usr/local/lib -F/Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Products/Debug -F/Library/Frameworks -filelist /Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Intermediates/Test.build/Debug/Test.build/Objects-normal/x86_64/Test.LinkFileList -mmacosx-version-min=10.10 -frameworksfml-system -frameworksfml-window -frameworksfml-graphics -frameworksfml-audio -frameworksfml-network -stdlib=libc++ -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Intermediates/Test.build/Debug/Test.build/Objects-normal/x86_64/Test_dependency_info.dat -o /Users/andreybondar/Library/Developer/Xcode/DerivedData/Test-draycgeyywzpqjgugruuudxcdqqj/Build/Intermediates/Test.build/Debug/Test.build/Objects-normal/x86_64/Test

clang: error: unknown argument: '-frameworksfml-system'
clang: error: unknown argument: '-frameworksfml-window'
clang: error: unknown argument: '-frameworksfml-graphics'
clang: error: unknown argument: '-frameworksfml-audio'
clang: error: unknown argument: '-frameworksfml-network'

那么,我应该怎么做才能让它工作,因为我已经尝试手动将所有 SFML 文件放入它们的目录中,但不知道我还能做些什么。

最佳答案

您正在阅读旧版本的教程。阅读 SFML 2.1 的那些反而。区别之一是此消息:

If you have Xcode 5, you must use the new version of the templates.

在下载页面上可用。长话短说,此模板更新修复了 Xcode 5 及更高版本中引入的回归。

source

关于c++ - 无法在 Xcode 上启动 SFML 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26803551/

相关文章:

c++ - 如何找到该图像或多或少是均匀的 w.r.t 颜色(色调)?

c++ - 2D Box Collision - 这是对的吗?

ios - Upnpx LastChangeParser

iphone - MFMailComposeViewController 中缺少 TabView

c++ - 异常是如何转移到寻找处理程序的?

c++ - 以两种数据类型作为参数的堆栈 STL

iphone - 点击背景将背景颜色更改为所选颜色

c++ - 操作迭代器列表+指针

c++ - 系统查找错误 undefined symbol SFML

c++ - 如何检查两个矩形(一个旋转)是否在 SFML 中相交