CMake doesn't know where is Qt4 qmake

后端 未结 8 1512
自闭症患者
自闭症患者 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:37

    In my case it was just that qtchooser was missing the "default" configuration. I figured cmake is just executing qtchooser and looking for a "default" configuration file name. You can install any configuration file by doing the following:

    qtchooser -install  
    

    In my case I simply provided "default" as the arbitrary name... this created the default.conf file in the appropriate locations and all is well. I don't think there is a limit to how many named versions of qt you have. If you do this as root it should work for all users.

提交回复
热议问题