[SOLVED] Error "Failed to find qmake" on Fedora Linux

Qmake is a compiler tool that most of the time you install with the QT-Devel tools, and it's purpose is to help you compile QT based apps on your system. In Fedora Linux (since Fedora 15 I believe) there's a problem with the "nomenclature" of the qmake binary, making it hard to find for some scripts. In order to solve the problem that is mentioned in the tiltle of this post, you have to issue the following commands in your terminal:

locate qmake | grep bin/

this will output the following:


We know the correct path is the first line because it is located under /usr/bin. As you might have guessed, the problem is that in fedora the new name for the qmake binary is qmake-qtX (qt4, qt5, etc.), so the next thing we need to do is the following:

sudo ln -s /usr/bin/qmake-qt4 /usr/bin/qmake

And we're good to go, now we have a qmake binary that those problematic scripts can find and use.