开发者

Qt Creator / QMake Linker Libraries

I'm using SFML, and I want to use Qt Creator in conjunction with it. When I'm compiling manually, I supply the following arguments to the linker -lsfmlsystem -lsfmlw开发者_如何学Cindow.

How do I do this if I'm using Qt Creator and (I think) QMake?


Just add

LIBS += -L/path/to/sfml -lsfmlsystem -lsfmlwindow

to the .pro file.

You can open project files with QtCreator from the Projects view of the sidebar or searching for it via Ctrl-K. (BTW, the sidebar is not the list of icons down the left, it's the pane to the right of that which can be shown/hidden with Alt-0.)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜