PDA

View Full Version : Qt on Ubuntu 10.04 from Ubuntu packages?



teele
27th March 2012, 06:32
What is the correct way to install Qt from the Ubuntu package sources on Ubuntu 10.04?

Somehow I managed to install Qt on my machine from the Ubuntu packages and I could compile some example programs. This was about a week ago. Then, I tried to install qwt, from the package sources as well, but since then Qt has not worked at all.

I have tried to totally remove Qt from Synaptic and re-install it but all attempts have failed

sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui

is my latest attempt.

What I noticed, is that the non-working installation uses an older version of qmake than the version that compiled the example snippets a week ago. There is some older stuff on the machine that cannot be erased by removing the packages from synaptic??

If I try to install Qt with the Nokia installer, how can I remove all the files and reset the state of my machine to the original state when I need the space for something else?


teele

wysota
27th March 2012, 20:55
I don't have any problems with Qt installed using apt from default (k)ubuntu repositories.

teele
27th March 2012, 21:16
I got qt working when I removed every and each qwt related package from Synaptic. The question changes a bit, then. Could I get qwt from the Ubuntu packages so that I do not confuse the working qt on my machine?

What would be the command line for getting qwt safely from the packages. My Ubuntu version is 10.04.

teele

wysota
27th March 2012, 22:05
apt-get install libqwt-dev

teele
28th March 2012, 07:18
I just tried

apt-get install libqwt-dev

but it didn't give a working system. In fact, the entire qt was confused after that.

Then, I tried removing qwt but, still, the system was not working. After some remove and reinstall cycles of qt with autoremove commands, I finally got my qt back. There is no qwt, which seems to be the problem not only for qwt itself but for the entire qt system on my machine.

It is interesting that the

apt-get install libqwt-dev

command works on your machine but not on mine. I have a standard Ubuntu 10.04 installation with no personal tweaks.

Could I get an animated sine curve in a coordinate system somehow without qwt?

teele

wysota
28th March 2012, 08:41
I just tried

apt-get install libqwt-dev

but it didn't give a working system. In fact, the entire qt was confused after that.
Apparently your system was already broken before issuing this command.


Could I get an animated sine curve in a coordinate system somehow without qwt?
You can always draw it yourself. However it won't repair your broken system installation :)