开发者

Qt Creator / QMake Linker Libraries

开发者 https://www.devze.com 2023-01-01 17:33 出处:网络
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.

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

精彩评论

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