14th Mar, 2009

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

Responses

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

Problem solved with:
sudo apt-get install libxext-dev libxext6-dbg x11proto-xext-dev

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.

omg thank you soo much .. those packages were seriously givin me problems

i think packages vary from distribution to distribution. that’s why there’s no universal method mentioned in Qt installer

yet I found this page very helpful! ty

hello there..
i found this is really helpful for me to install soccermonitor for robocup simulation in ubuntu lucid lynx (10.04)..

i would like to say big thanks to the writer here, :)

Leave a response

Your response:

Categories