【问题标题】:Qt Creator / QMake Linker LibrariesQt Creator / QMake 链接器库
【发布时间】:2011-02-24 08:26:07
【问题描述】:

我正在使用 SFML,我想结合使用 Qt Creator。当我手动编译时,我将以下参数提供给链接器-lsfmlsystem -lsfmlwindow

如果我使用 Qt Creator 和(我认为)QMake,我该怎么做?

【问题讨论】:

    标签: c++ qt-creator qmake sfml


    【解决方案1】:

    只需添加

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

    到 .pro 文件。

    您可以使用 QtCreator 从侧边栏的“项目”视图打开项目文件,或通过 Ctrl-K 搜索它。 (顺便说一句,侧边栏不是左下方的图标列表,它是右侧的窗格,可以使用 Alt-0 显示/隐藏。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-10
      • 1970-01-01
      • 1970-01-01
      • 2011-09-30
      • 1970-01-01
      • 2012-09-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多