【发布时间】:2011-02-24 08:26:07
【问题描述】:
我正在使用 SFML,我想结合使用 Qt Creator。当我手动编译时,我将以下参数提供给链接器-lsfmlsystem -lsfmlwindow。
如果我使用 Qt Creator 和(我认为)QMake,我该怎么做?
【问题讨论】:
标签: c++ qt-creator qmake sfml
我正在使用 SFML,我想结合使用 Qt Creator。当我手动编译时,我将以下参数提供给链接器-lsfmlsystem -lsfmlwindow。
如果我使用 Qt Creator 和(我认为)QMake,我该怎么做?
【问题讨论】:
标签: c++ qt-creator qmake sfml
只需添加
LIBS += -L/path/to/sfml -lsfmlsystem -lsfmlwindow
到 .pro 文件。
您可以使用 QtCreator 从侧边栏的“项目”视图打开项目文件,或通过 Ctrl-K 搜索它。 (顺便说一句,侧边栏不是左下方的图标列表,它是右侧的窗格,可以使用 Alt-0 显示/隐藏。)
【讨论】: