Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to import/convert a Qt-qmake project into Qt Creator?



  • Following this question, I am trying to import/convert an existing Qt-qmake project into Qt Creator. However, I have similar issues as this question. Basically everything is deactivated:

    Screenshot 2020-04-26 at 15.18.07.png

    I can't compile or run anything!

    I would appreciate if you could help me know that what is the most canonical way to import/convert a Qt-qmake project into Qt Creator?


  • Lifetime Qt Champion

    Hi,

    Looks like your Kit have errors.

    What version of Qt did you install ?
    How did you instal it ?
    What OS are you on ? What version is it ?
    What compiler are you using ?
    Since I see darwin here, I would guess macOS. If so, did you install Xcode ?



  • Dear @SGaist ,

    What version of Qt did you install ? How did you instal it ?

    My Qt installation is somewhat messy at the moment. I was trying to install it via HomeBrew as described here. But it didn't work so I downloaded Qt Creator from the Qt company official website and installation. However, I had issues with that too.

    Right now:

    qmake --version
    QMake version 2.01a
    Using Qt version 4.8.7 in /usr/local/lib
    

    and

    which qmake
    /usr/local/bin/qmake
    

    In the terminal. But the Qt Creator Version 4.12.2 is installed in /Users/<user>/Qt/.

    The qmake used to compile the above project though is in /System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake and it is

    QMake version 3.1
    Using Qt version 5.14.1
    

    What OS are you on ? What version is it ?

    • macOS Catalina Version 10.15.4

    What compiler are you using ?

    I have Xcode command-line tools, GNU C/C++, and LLVM/Clang installed. But I think the default Xcode/Clang is being deployed.


  • Lifetime Qt Champion

    So it means that at some point you installed Qt 4 in your system.

    As you can see there's a red sign on your kit, go to the settings page and put the mouse cursor on it. You'll have more information about what is wrong.



  • @SGaist This is what I see when keeping mouse cursor on the kit:

    Screenshot 2020-04-26 at 16.06.56.png

    is the

    No Qt version set in kit

    the problem? How do I solve it?


  • Lifetime Qt Champion

    Well, as silly as it may sound: select the Qt 5 installation you have from brew. If you don't have it, go to the Qt versions tab and set it up there. Then come back to the kit page and chose it there.


Log in to reply