qmake not found although Qt installed qmake not found although Qt installed unix unix

qmake not found although Qt installed


What distro is that? Probably qmake is in separate package, e.g. in Debian it's qt4-qmake package, also look for some qt-devel, qt4-devel or similar.

pwadas@vao:~$ which qmake/usr/bin/qmakepwadas@vao:~$ ls -al /usr/bin/qmakelrwxrwxrwx 1 root root 23 mar 26  2012 /usr/bin/qmake -> /etc/alternatives/qmakepwadas@vao:~$ update-alternatives --list qmake/usr/bin/qmake-qt3/usr/bin/qmake-qt4pwadas@vao:~$ dpkg -S /usr/bin/qmake-qt4qt4-qmake: /usr/bin/qmake-qt4pwadas@vao:~$ 


Seeing as the Qt3/Qt4 libraries overlap in all the Linux distros I've tried, I thought it might be a good idea to provide a more thorough answer to resolving this issue. If you're running a debian-based distro, the previously-suggested answer to use dpkg might work; however, on other Linux distributions, such as Fedora, for example, that won't quite work.

A more suitable solution, regardless of what distribution you're running, if you have alternatives installed is to do this:

update-alternatives --install /usr/bin/qmake qmake /usr/bin/qmake-qt4 10

Then, for good measure, you can follow that with: update-alternatives --set qmake /usr/bin/qmake-qt4