PDA

View Full Version : How to install Qt on Ubuntu from a package manager tool ?



fredgillot
19th October 2012, 02:31
I use Linux Ubuntu 12.4, downloaded Qt SDK from http://qt-project.org/downloads and get the "need C++ compiler error" whereas CMake is installed.
The problem is that sofwares on Ubuntu should be installed thanks to a package manager but Qt is invisible to the Ubuntu Software Center and if one start using http://packages.ubuntu.com/precise/qt4-dev-tools for instance, it will take days to get all dependancies manually.
How to install everything Qt needs so that it takes into account the existing CMake and installation completes. I suppose I'll have to go by the Shell to compile but that's fine.
Thanks
Fred

wysota
19th October 2012, 03:11
First thing is that Qt doesn't use CMake (and CMake is not a compiler anyway).

Now, that said, open the terminal, and type in the following:

sudo apt-get install libqt4-dev qt4-dev-tools qtcreator

and confirm with your user password.