Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Eclipse and Qt
QtWS25 Last Chance

Eclipse and Qt

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 15.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hpng
    wrote on 14 Jun 2011, 06:48 last edited by
    #1

    This is on a Ubuntu machine: 10.04 LTS

    Install Eclipse manually to a directory MyName, then I include CDT plugin.
    I download this Qt package: qt-eclipse-integration-linux.x86_64-1.6.1.tar.gz
    then I installed Qt plug-in manually by extracting it per instruction in folder MyName.
    Qt files were extracted into eclipse folders (plugins, etc).
    Qt selection options show up inside Eclipse in Window>Preference, etc. But.....
    I was not able to specify locations of Qt's Bin and Include paths. So I could not proceed.
    I did a search for QtCore and found where the files are, assuming I am correct.
    I included path to QtCore, QtGui found thru Search. They are in the "\Home\Myname\Eclipse\plugins\com.... " folder.
    i also did a search for "qmake" and include its location (both of same location), but the dialog box told me the
    path are wrong paths... ... Ouch!

    How do I find out where the paths for the Qt tools and Includes are?
    Somehow, the extraction (unzip) process, it was put somewhere outside of the Eclipse plugin folder.

    Note: The extracted folder for qt-eclipse-integration-linux.x86_64-1.6.1.tar.gz have very long names.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jim_kaiser
      wrote on 14 Jun 2011, 08:36 last edited by
      #2

      I haven't tried Qt with Eclipse.. but it sounds like you're just missing the QTDIR environment variable. Set it to your Qt installation root, or maybe you could just add it in some eclipse config.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hpng
        wrote on 14 Jun 2011, 13:54 last edited by
        #3

        I am still new to Linux. What is QTDIR?
        I am not sure where the Qt root installation root is?
        I did a search for files with names which includes Qtcore and QtGui, and the main install is inside folder Eclipse>plugins.

        I also did a seaarch for qmke, and found a file under some kind of Dedian subfolder and it is a perl type file.
        So I am still at a lost.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jim_kaiser
          wrote on 14 Jun 2011, 14:00 last edited by
          #4

          Well.. QTDIR is general the name of the environment variable used to point to the Qt installation. Like I said I haven't used Qt with eclipse.. but could you tell me the location of the qmake executable? Usually it is in $QTDIR(the qt directory)/bin/qmake.

          [Edit: Sorry if I am no help currently.. will check out about eclipse and qt and let you know. ]

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jim_kaiser
            wrote on 14 Jun 2011, 14:03 last edited by
            #5

            Did you try doing it as per this "document":http://qt.nokia.com/developer/eclipse-integration/installation-instructions-for-linux-systems?

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hpng
              wrote on 16 Jun 2011, 16:22 last edited by
              #6

              Yes.
              I install Qt plugin in Eclipse.
              It shows up in Eclipse because Qt options are displayed in
              various project and preference settings of Eclipse dialog window.
              The problem is that I do not know where
              the libraries (tools: qmake, rcc, etc) and include files were installed by Qt ( in Linux).
              I install Qt manually and point it to a user defined folder, e.g. ~/home/hpng/Eclipse.

              Surely there must be documentation of default locations of these installed files for Linux (Ubuntu) somewhere.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kkrzewniak
                wrote on 16 Jun 2011, 16:46 last edited by
                #7

                Open the console and try:
                @
                [thor::grimlock] [~] << whereis qmake
                qmake: /usr/bin/qmake
                [thor::grimlock] [~] << whereis qt
                qt: /usr/lib/qt /usr/share/qt
                @
                That’s the output on my archbox, it might be different on ubuntu.

                Just a question why use Eclipse at all?

                Me, Grimlock, not "nice dino". ME BASH BRAINS!

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hpng
                  wrote on 16 Jun 2011, 17:15 last edited by
                  #8

                  thanks. I will try it later.

                  I ended up deleting the entire Eclipse Helios install,
                  and install what comes with Ubuntu 10.04 LTS, i.e Eclipse Galileo. I was not able to COMPLETE upgrade Galileo to Helios form within Eclipse.... Ouch! (eclipse report missing files... etc... which does not allow Rich Ajax, not sure what it means).

                  1 Reply Last reply
                  0

                  1/8

                  14 Jun 2011, 06:48

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved