如何在我的 Mac 上设置 SFML 2.0?

发布于 2024-11-28 00:41:13 字数 435 浏览 1 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对你的占有欲 2024-12-05 00:41:13

链接器 (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

执笏见 2024-12-05 00:41:13

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文