Announcement

Collapse
No announcement yet.

Installing QT 4.5.2 on Kubuntu 9.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Installing QT 4.5.2 on Kubuntu 9.04

    After much fiddling, here is a list of instructions for installing the current QT version (4.5.2) on Kubuntu:

    1. Use a package manager (e.g. synaptic) to install "gcc"

    2. Download the appropriate Linux/X11 .bin file from http://www.qtsoftware.com/downloads, e.g. "qt-sdk-linux-x86-opensource-2009.03.bin"

    3. Change the permissions on the .bin file so that it executable, e.g. "chmod u+x qt-sdk-linux-x86-opensource-2009.03.bin"

    4. Open a console window and execute the .bin file, e.g. "sudo ./qt-sdk-linux-x86-opensource-2009.03.bin"

    (NOTE - if you do not execute using sudo, QT will be installed into your home directory and will not be accessible by any other users on the machine.)

    5. Before you can run QT, you need to set up some environment variables. Create the "/etc/scripts" folder, e.g. "sudo mkdir /etc/scripts"

    6. Create a file called ".qtconfig" in your "/etc/scripts" folder, and edit it so it contains the following:

    Originally posted by /etc/scripts/.qtconfig
    # /etc/scripts/.qtconfig: QT configuration script

    echo "Loading configuration script (/etc/scripts/.qtconfig) for QT ..."

    if [ -d /opt/qtsdk-2009.03 ]; then

    echo "... configured to use QT 4.5.2 (/opt/qtsdk-2009.03)"

    export QTDIR="/opt/qtsdk-2009.03"
    export PATH="$QTDIR/bin:$QTDIR/qt/bin:$PATH"
    export QMAKESPEC="linux-g++"
    export CC="gcc"
    else
    echo "... QT 4.5.2 not found."
    fi
    (modify the .qtconfig script so that it refers to the target folder where QT was just installed - the script is set to "/opt/qtsdk-2009.03" by default)

    8. Modify the "/etc/profile" OR "/etc/profile.local" file to include the following:

    Originally posted by /etc/profile
    # Load QT configuration script
    if [ -f /etc/scripts/.qtconfig ]; then
    . /etc/scripts/.qtconfig
    fi
    9. You can test the QT configuration script is correct by opening a console application and entering "source /etc/profile". If the .qtconfig script is being read and is detecting the QT installation, you should see:

    Originally posted by Konsole
    Loading configuration script (/etc/scripts/.qtconfig) for QT ...
    ... configured to use QT 4.5.2 (/opt/qtsdk-2009.03)
    10. When you run QT Creator (from the menu or command line using "qtcreator"), use the Tools -> Options menu item and check that "Qt" tab shows that the application has auto detected the above target folder.

    11. When you first build a console or GUI application, the project make files may have library dependencies to libraries that need to be installed before the build will be successful, including:


    Compiler: library not foundRequired Library file
    lfreetypelibfreetype6-dev
    lgobject-2.0libglib2.0-dev
    lSMlibsm-dev
    lxrenderlibXRender-dev
    lfontconfiglibfontconfig1-dev
    lXextlibXext-dev


    (Above instructions tested on Kubuntu 9.04 and Suse 11.1)

    #2
    Re: Installing QT 4.5.2 on Kubuntu 9.04

    You can also add the PPA of PQuiles. That automatically upgrades your Qt 4.5.0 to 4.5.2 Much easier and works very good
    Most important laptop specs (this is my main computer, with Kubuntu on it):<br /><br />4096MB RAM (DDR2)<br />500GB Hard Disk<br />ATI Mobility Radeon 4570HD Videocard with 512MB GDDR3 RAM, up to 2280MB VRAM<br />Intel® Core™ 2 Duo-processor T6600<br /><br />OS: Kubuntu 10.10

    Comment


      #3
      Re: Installing QT 4.5.2 on Kubuntu 9.04

      are you talking about this?
      https://launchpad.net/~pgquiles/+ppa-packages
      HP Pavilion dv6 core i7 (Main)
      4 GB Ram
      Kubuntu 18.10

      Comment


        #4
        Re: Installing QT 4.5.2 on Kubuntu 9.04

        Hi all,

        if you can't build the examples, shipping with qt creator, goto projects->build, enable 'shadow-build' and choose your home dir, eg '/home/user/workspace/examples'.

        Regards

        Comment

        Working...
        X