2017-04-08 35 views
1

我偶然發現了構建系統介子(http://mesonbuild.com/),它吸引了我,因爲它的簡單性和本地Qt支持。在Mac上使用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位於哪裏?

回答

1

好吧,我加入

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

我的.bash_profile文件,其中是路徑到包含Qt二進制,如qmake的文件夾修復了這個問題。