如何在我的 Mac 上设置 SFML 2.0?
我尝试过代码块,但没有编译。 我跟着它就停止了
-------------- Build: Debug in test2 ---------------
Linking console executable: bin/Debug/test2
ld: framework not found SFML
collect2: ld returned 1 exit status
。然而,它给了我很多不同的错误,没有明显的原因。我已经多次尝试使用 sfml2 源的两个不同副本。它们的下载间隔了大约 4 个月的时间。最旧的副本是我在电脑上的 Visual Studio 2010 中使用的副本。另一种是我现在用的。
而且每次我重新启动程序时,所有设置都会丢失。我的下一个选择是 xcode3,但我找不到安装 SFML 文件的位置。一本完整的指南确实是我唯一需要的。代码块是首选。
I've tried codeblocks, but nothing compiles. It stops with
-------------- Build: Debug in test2 ---------------
Linking console executable: bin/Debug/test2
ld: framework not found SFML
collect2: ld returned 1 exit status
I followed it. However, it gave me a lot of different errors for no apparent reason. I've tried multiple times with two different copies of sfml2 source. They were downloaded with about 4 months time inbetween. The oldest copy is the one i was using in visual studio 2010 on my pc. The other one is the one I am using now.
And also every time i restart the program all settings are lost. My next option is xcode3, but I can't find where to install the SFML files. A complete guide would really be the only thing I need. Codeblocks is prefered.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
链接器 (ld) 找不到库
你尝试过吗: http://www.sfml-dev.org /tutorials/2.0/compile-with-cmake.php
Linker (ld) cannot find libraries
did you try: http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
上次我听说,OSX 版本不是最新的< /a>,但那是四月份的事了,我不知道从那时起它们是否已经更新了,我我已经有一段时间没有尝试在我的 Mac 上编译我自己的 SFML 项目了。
Last I heard, the OSX version was not up to date, but that was back in April, I don't know if they've been updated since then and I haven't tried to compile my own SFML project on my Mac in a while.