Qmake error : could not find a Qt installation of ''



  • Error-

    $ qmake qmake: could not find a Qt installation of ''

    I installed Qt Version 4.8.2

    Partial File of .profile in my home directory

    set PATH so it includes user's private bin if it exists

    if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
    PATH="/usr/local/Trolltech/Qt-4.8.2/bin:$PATH"
    PATH="/home/user/qt-everywhere-opensource-src-4.8.2/bin:$PATH"
    export PATH
    fi

    Output-

    $ which qmake

    /usr/bin/qmake

    Properties
    Name - qmake
    Type - Link to executable (application/x-executable)
    Link Target - qtchooser
    Location - /usr/bin

    qmake is present in this location

    /usr/local/Trolltech/Qt-4.8.2/bin
    Properties

    Name - qmake
    Type - executable (application/x-executable)
    Size - 3.4 MB (3,407,312 bytes)
    Location - /usr/local/Trolltech/Qt-4.8.2/bin


    qmake is also present in this location

    /home/username/qt-everywhere-opensource-src-4.8.2/bin
    Properties

    Name - qmake
    Type - executable (application/x-executable)
    Size - 11.2 MB (11,157,974 bytes)
    Location - /home/username/qt-everywhere-opensource-src-4.8.2/bin


    How to make qmake work? Which one is the correct path for qmake?



  • All of them are correct qmakes. You can have as many Qt installations as you need. If you need to use some particular installation then run qmake with full path. For example:
    @
    /home/username/qt-everywhere-opensource-src-4.8.2/bin/qmake
    @


Log in to reply
 

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