Using Qt Creator with Ubuntu 8.10
The recent change of licencing model for the Qt toolkit got it a lot of press recently. My GUI-based development experience is all Windows based, using MFC and wxWidgets. As I’ve found myself using Ubuntu and OSX a lot more recently, the idea of using Qt to write software to run on Windows, Linux or OSX has some appeal. Of particular interest was the ease with which you can integrate WebKit, allowing you to embed web capabilities into a cross-platform app with ease.
Installation under Ubuntu 8.10 is straightforward, but I’m writing this post just to note the install steps I took. Hope it helps someone!
- Download and install the SDK, which includes an IDE
- Once installed, there’s a few packages you’ll need to ensure your first build completes:
- sudo apt-get install libfreetype6-dev libfontconfig-dev libxrender-dev libsm-dev libglib2.0-dev
Now you’re good to go!
Edit: Edvaldo in the comments noted he needed to install some additional packages as follows:
- sudo apt-get install libxext-dev libxext6-dbg x11proto-xext-dev

1Edvaldo
wrote on 29 March 2009 at 18:13
I’m starting to develop applications on Linux.
This post helped, but still have problems:
g++ -Wl,-rpath,/home/edvaldo/qtsdk-2009.01/qt/lib -o TesteQt debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L/home/edvaldo/qtsdk-2009.01/qt/lib -lQtGui -L/home/edvaldo/qtsdk-2009.01/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/bin/ld: cannot find -lXext
2Edvaldo
wrote on 29 March 2009 at 18:40
Problem solved with:
sudo apt-get install libxext-dev libxext6-dbg x11proto-xext-dev
3Tymek Majewski
wrote on 8 April 2009 at 14:06
Thanks so much for extra dev libs needed. I find it very very strange that the qt installer/doc does not tell you about these missing libs.
4brad
wrote on 8 May 2009 at 18:03
omg thank you soo much .. those packages were seriously givin me problems