Results 1 to 6 of 6

Thread: installing and configuring Qt on a laptop running Ubuntu 12.04

  1. #1
    Join Date
    Jun 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default installing and configuring Qt on a laptop running Ubuntu 12.04

    Hi, I'm trying to get Qt working on my Ubuntu 12.04 laptop. I installed via the run file for the 'online' installation from the nokia.qt site. Yet when I tried to run qmake, it wasn't installed. So I installed qmake via synaptic and I'm able to produce makefiles. The problem is that during compilation the compiler fails to find header files like QDebug. It also returns a linking error as it is unable to find QtGui or QtCore. I think that this may have resulted from the installation process. Is there something I can do to reconfigure Qt or some other way to install it so that 'make' can find all the header files and linked libraries? Much in need of help.

    If I need to reinstall Qt (say via the x11 method I have just realised is for *nix) how do I uninstall Qt? I can uninstall qmake via synaptic, but the rest?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: installing and configuring Qt on a laptop running Ubuntu 12.04

    Installing Qt through the online installer will not add appropriate paths to your PATH. Thus you either need to do that yourself somewhere or use apt-get (or synaptic) to install Qt from system repositories instead of using the online installer. Alternatively you can use the full path to qmake while calling it but this is cumbersome in the long run.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: installing and configuring Qt on a laptop running Ubuntu 12.04

    Ok, thanks for your quick response. I'm relatively new at this, so how do I add appropriate paths to my PATH?

    Also, in case that doesn't work what packages do I need to install from the system repositories to install Qt?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: installing and configuring Qt on a laptop running Ubuntu 12.04

    Quote Originally Posted by modoMojo View Post
    I'm relatively new at this, so how do I add appropriate paths to my PATH?
    The easiest way is to add

    bash Code:
    1. export PATH=/path/to/where/you/installed/qt/bin/:$PATH
    To copy to clipboard, switch view to plain text mode 
    to ~/.bashrc and relogin.

    Also, in case that doesn't work what packages do I need to install from the system repositories to install Qt?
    libqt4-dev and qt4-dev-tools. Optionally also qtcreator if you want to use QtCreator. qt4-doc and qtcreator-doc might also come in handy.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jun 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Cool Re: installing and configuring Qt on a laptop running Ubuntu 12.04

    Alright!! I deleted the old QtSDK installation and installed via synaptic the packages you recommended and now make works for Qt files! Thanks, Wysota!

    BTW whereabouts can I find out about what packages to install for particular language developer environments? Or is it just a case of ask around?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: installing and configuring Qt on a laptop running Ubuntu 12.04

    Ask around or try yourself. I usually do:

    apt-cache search <name related to what I want to do>

    and then continue based on the result I get.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt GUI application is not running on another Ubuntu system?
    By gurmeetsingh in forum Qt Programming
    Replies: 9
    Last Post: 25th January 2012, 12:59
  2. Problem with installing Qt Mobility 1.2.0 on Ubuntu 11.04
    By nasiroudin in forum Installation and Deployment
    Replies: 0
    Last Post: 30th December 2011, 20:39
  3. Problem installing qwt 6.0.1 - Ubuntu
    By breotone in forum Qwt
    Replies: 1
    Last Post: 19th October 2011, 21:54
  4. Replies: 1
    Last Post: 17th October 2011, 09:53
  5. Need help installing / configuring
    By TheSaw in forum Installation and Deployment
    Replies: 4
    Last Post: 6th April 2009, 04:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.