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

7 thoughts on “Using Qt Creator with Ubuntu 8.10

  1. Edvaldo

    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. Tymek 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.

  3. Anonymous

    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

  4. Windy

    I know it’s been years, but have you upgraded to QtC 2.0.1 on Ubuntu 10.04? I have this qt-sdk-linux-x86-opensource-2010.05.1.bin file, and can’t figure a way to “install” it. Too much a noob I guess. Some bins run as commands, but I get:
    ubuntu:~/downloads/Qt_Creator$ sudo ./qt-sdk-linux-x86-opensource-2010.05.1.bin
    sudo: ./qt-sdk-linux-x86-opensource-2010.05.1.bin: command not found
    which seems really odd.

Comments are closed.