CMake doesn't know where is Qt4 qmake

后端 未结 8 1502
自闭症患者
自闭症患者 2021-02-04 00:05

I am using Debian OS and I\'m trying to point to cmake where is my Qt4.

I try to build qjson library and with its CMakeLists.txt: http://pastebin.com/fKNp0Qgy

I

8条回答
  •  执笔经年
    2021-02-04 00:44

    Here is the answers

    https://askubuntu.com/questions/540746/ubuntu-14-04-qt5-development-libraries/540757#540757

    Seems

    apt-file search Qt5CoreConfig.cmake was what I was missing. This got me:

    qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake
    

    Installing that seems to lead to CMake finding Qt5. qmake still reports the same problem when directly called though...some remnant from qt4 still installed it seems...

    As for the qmake problem, this is fixed by:

    sudo apt-get install qt5-default
    

提交回复
热议问题