cmake not finding Qt4

后端 未结 5 1928
盖世英雄少女心
盖世英雄少女心 2021-02-19 18:32

Since 4.8.0 is out, I\'ve reinstalled Qt, and now I want to use cmake too. To make cmake work, I remember having to add the mingw bin folder (QtSDK\\Desktop\\Qt\\4.7.3

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 19:17

    I had the same problem and I solved providing the path to qmake,

     QT_QMAKE_EXECUTABLE   /opt/qt-4.8.7/bin/qmake
    

    On Mac, while the binaries are saved in /usr/local/Trolltech/Qt-4.8.7/bin the required qmake required as value of QT_QMAKE_EXECUTABLE is, for my OS, stored in the path /opt/qt-4.8.7/bin/qmake . Hope this help as well.

提交回复
热议问题