开发者

Link with SDL using Cocotron CDT

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 开发者_StackOverflow社区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)


Problem solved: explicitly add "Other Linker Flag"s for every dependency of SDL. For anyone else trying to do this, that's:

-lFLAC -lnsl -logg -lvorbis -lvorbisenc -ldbus -lsndfile -luuid -lwrap -lXau -lXdmcp -lXext -lXi -lxcb -lXtst -lX11-xcb -lxcb-atom -lSM -lrt -lpulsecommon -lSDL -lpulse -lpulse-simple -lX11 -lICE
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜