I had gone through a heap load of trouble getting this to work to let’s get started:
First download Qt 5.0.1 from http://qt-project.org/downloads I’m using a 32bit machine so I’ll select that and download the file qt-linux-opensource-5.0.1-x86-offline.run. To install the .run file, right click for terminal in the directory containing the installer and type:
chmod u+x qt-linux-opensource-5.0.1-x86-offline.run
./qt-linux-opensource-5.0.1-x86-offline.run
Let it install with all default settings.
Now if you just try to run Qt Creator now you’ll realize you can’t open the application. That’s because there seems to be some faulty linking problem thing going on. To fix this, you’ll create your own custom launcher.
Right click your desktop and select “Create Launcher…”.
Type = Location
Name = Qt Creator
Location = opt/Qt5.0.1/Tools/QtCreator/bin/qtcreator
now if you navigate to the qt5 directory and type “png” you will be able to find the Qt Creator logo. Just drag and drop it to that red rocket, press “ok” and you have your launcher set up.
Now, you should be able to run Qt creator but unable to build and run anything. That’s because lots of dependencies are missing. You would think that by installing Qt 5.0.1 they would install the dependencies as well but they don’t. So go now to synaptic package manager and mark qtcreator for installation.
Now unmark it. And search for all things qt4 and unmark that also. Make sure qt4-doc is unmarked. That takes a lot of space.
Now install. Everything should take up at most 20Mb. I know this is messy solution, and you may probably install things that Qt 5.0.1 doesn’t use, but it’s the easiest way I know how. If Qt Creator is currently running restart it to have the changes made applied.
UPDATE: Alternatively(credits to sierdzio)*, if you do not wish to mark and unmark stuff in the synaptic package manager, you could open up the terminal and copy paste this:
sudo apt-get install build-essential
sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
*I have never tried this before so let me know if it works :D
And so, there you have it. Qt 5.0.1 and Qt Creator 2.6.2 running happily.
Now if you do use the examples(opt/Qt5.0.1/5.0.1/gcc/examples), you’ll realized that you do not have permission to access it. Why? I don’t know. But to change it go to “opt/Qt5.0.1/5.0.1/gcc” right click and open terminal and type
sudo chown -R username examples
Where “username” is the name of the user you wish to transfer full permissions to.
↧