Error opening CMake project in Qt Creator on Ubuntu: Qt 5 is being picked even though Qt 4 i selected



  • I'm trying to open Krusader CMake project with Qt Creator. It doesn't work because Qt 5 is being picked, even though there’s Qt version selector in the project dialog in Creator, and it’s set to Qt 4. There was no qmake in PATH previously, now I’ve added Qt 4’s qmake to path. Still no luck. I can’t delete Qt 5 from kits in Creator because it’s auto-detected, and I don’t want to uninstall Qt 5. How can I fix this?



  • Personally when it comes to Qt4 I use Qt from Ubuntu repository because it already configured with all needed paths.

    So I suggest to install Qt from Ubuntu repositories.



  • I did exactly that. I installed qt-sdk package to get qt4.

    P. S. If I manage to open it, will Creator build project structure tree like it does for regular qmake projects? Because that's what I need it for, if I can't get project structure I don't need to open it in Creator.



  • What's Ubuntu version you're working on?

    There is big difference between 13.04 and the older version because Ubuntu start using Qt5 for Ubutnu SDK.

    Any way, I prefer to ask Krusader guys because this issue related to stupid cmake (I really hate cmake because I always suffer from its stupid configurations)



  • It's Kubuntu 13.04 (KDE desktop).



  • Krusader guys said it's because Qt 5 is being picked, even though there's Qt version selector in the project dialog in Creator, and it's set to Qt 4. There was no qmake in PATH previously, now I've added Qt 4's qmake to path. Still no luck. I can't delete Qt 5 from kits in Creator because it's auto-detected, and I don't want to uninstall Qt 5. How can I fix this?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.