CMake doesn't know where is Qt4 qmake

后端 未结 8 1506
自闭症患者
自闭症患者 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
    
    0 讨论(0)
  • 2021-02-04 00:44

    Simplest solution was add a link in the directory that the gem expected to find it. On Ubuntu 14.04 it qmake lives in /usr/bin. Simple solution.

    0 讨论(0)
提交回复
热议问题