After I installed a fresh copy of Ubuntu’s 11.10 version on my laptop, one of the first tasks (after installing gvim of course) was getting Qt on my machine.
Turned out it was a bit more painful than the docs describe…
Due to the deployment issues at work, I’m currently bound of using Qt 4.7.4 rather than the newest kid in town, being 4.8.0. Therefor I was forced to compile the whole lot from source.
Gcc is installed straight out of the box, but the ‘build-essential’ tools are required, else you can’t actually compile:
The docs then dictate to ./configure, make and sudo make install. And I did. After an hour of 2 or 3 (who keeps track, right), I launched qtconfig.
I noticed Qt used a double spaced font ‘Batang’, and I couldn’t set it to a more decent (like in readable) font…
Some google searches later I learned that you need to configure it with the -fontconfig, in order to use the anti-aliased fonts of your Ubuntu installation. If you just run ‘make clean && ./configure -fontconfig’ you’ll get a configuration error that ‘FontConfig support cannot be enabled due to functionality tests!’. Bollocks.
To get rid of that problem, you’ll need to ‘sudo apt-get install libfontconfig1-dev’, and then configure the Qt source with the fontconfig option enabled, and you’ll be all set up and good to go.