使用 Cocotron CDT 与 SDL 链接
我正在尝试使用 Cocotron 在 Xcode 中为 Linux 进行编译。 Foundation 的一切都运行良好,但我也尝试使用 SDL。我已经从 Linux (Ubuntu) 复制了库,但链接时遇到问题。
尽管也复制了 libpulse-simple (并将其放置在我认为可能有意义的每个目录中),我仍然无法删除此错误:
warning: libpulse-simple.so.0, needed by /Developer/Cocotron/1.0/Linux/i386/Frameworks//libSDL-1.2.so, not found (try using -rpath or -rpath-link)
I'm trying to use Cocotron to compile for Linux in Xcode. Everything's working great with Foundation, but I'm trying to also use SDL. I've copied the libraries over from Linux (Ubuntu) but I'm having trouble linking.
Despite copying libpulse-simple over as well (and placing it in every directory I thought would possibly make sense), I was still unable to remove this error:
warning: libpulse-simple.so.0, needed by /Developer/Cocotron/1.0/Linux/i386/Frameworks//libSDL-1.2.so, not found (try using -rpath or -rpath-link)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已解决:为 SDL 的每个依赖项显式添加“其他链接器标志”。对于其他尝试这样做的人来说,那就是:
Problem solved: explicitly add "Other Linker Flag"s for every dependency of SDL. For anyone else trying to do this, that's: