Using Qt Creator with Ubuntu 8.10

Saturday, 14 March 2009, 17:26 | Category : Linux, Software Development, ubuntu

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

4 Comments for “Using Qt Creator with Ubuntu 8.10”

  1. 1Edvaldo

    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

  2. 2Edvaldo

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

  3. 3Tymek Majewski

    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.

  4. 4brad

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

Leave a comment