cmake not finding Qt4

后端 未结 5 2027
情书的邮戳
情书的邮戳 2021-02-19 18:42

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:30

    I had this problem for a slightly different reason. Maybe this will help someone else:

    I uninstalled Qt 4.8.3 and then installed qt 4.8.4. Based on Slava's answer I discovered that CMake is getting the value of $(qt_install_version} from:

    [HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\DefaultVersion]
    

    This was still set to 4.8.3 even though all the other registry entries were updated to 4.8.4. Changing the value of the DefaultVersion key to 4.8.4 fixed the problem for me.

提交回复
热议问题