Trouble building Qt Creator from GIT, Project MESSAGE: Cannot build Qt Creator with Qt version 4.8.7.



  • Hello! I am a beginner!
    I am attempting to install Qt Creator using the instructions at this link: https://wiki.qt.io/Building_Qt_Creator_from_Git
    I have Ubuntu 16.04 and I am seeing the problem that is mentioned in the instructions: it says "If the output of qmake -v points to a wrong version of Qt, or returns an error, you need to show the qmake binary to your environment (it may also mean that something is wrong with your Qt installation). You need to modify your PATH environment variable to include the directory with the qmake executable, e.g. <Qt installation directory>/qtbase/bin." How do I modify the PATH environment variable correctly? I know I need to edit ~/.profile but I don't know what to write there.

    My output for qmake -v is
    QMake version 2.01a
    Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu

    If I try to run qmake -r I get the following error:
    Project MESSAGE: Cannot build Qt Creator with Qt version 4.8.7.
    Project ERROR: Use at least Qt 5.6.0.
    I got the same error when I tried to install Qt Creator from the qt-creator-opensource-src-4.2.1.tar.gz file

    I installed QT binary packages from source using the instructions in the README in qt-everywhere-opensource-src-5.8.0.tar.gz

    I am very confused, any help is appreciated!
    -Laura


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Qt Creator requires now a series 5 version of Qt. Since you also built Qt yourself, simply use the fullpath to that Qt version's qmake when trying to build Qt Creator.

    Out of curiosity, any reason for not using the pre-built package ?


Log in to reply
 

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