【问题标题】:Problems using Qt with meson on Mac在 Mac 上使用带有介子的 Qt 出现问题
【发布时间】:2017-04-08 16:54:16
【问题描述】:

我偶然发现了构建系统介子 (http://mesonbuild.com/),它因其简单性和原生 Qt 支持而吸引了我。

但是,当我按照教程进行操作时,我收到了错误消息

Build type: native build
Project name: qt5 demo
Native cpp compiler: c++ (clang 8.1.0)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/local/bin/pkg-config (0.29.2)
Dependency QtWidgets found: NO

Meson encountered an error in file meson.build, line 3, column 0:
Qt5 native dependency not found (checked pkg-config, qmake-qt5, and qmake)

这很奇怪,因为当我使用 Qt Creator 时,我可以轻松地创建、编译和执行 Qt 项目。我正在使用 MacOS Sierra。 我能以某种方式告诉介子 qmake 的位置吗?

【问题讨论】:

    标签: c++ qt meson-build


    【解决方案1】:

    好的,我通过添加解决了这个问题

    export PATH="<path to qmake>":$PATH
    

    到我的 .bash_profile 文件,其中是包含 qt 二进制文件的文件夹的路径,例如 qmake。

    【讨论】:

      猜你喜欢
      • 2013-11-03
      • 2019-07-03
      • 2011-04-01
      • 2014-10-11
      • 1970-01-01
      • 2020-10-16
      • 2019-08-09
      • 2015-08-02
      • 1970-01-01
      相关资源
      最近更新 更多