Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 4.7.2 Installed on Mac OSX, but where is it?
Forum Updated to NodeBB v4.3 + New Features

4.7.2 Installed on Mac OSX, but where is it?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 12.9k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    There's something fundamental I am not getting right.

    I installed Qt 4.7.2 (framework). I removed the 4.7.1 folder I built myself from source code. I have no idea where 4.7.2 went after I installed it. I have no idea what I should tell me QCreator to work with it. I does find "qmake" automatically in /usr/bin/ - and it tells me that it's "4.7.2" (in my prefereces/qt4" page), but nothing else.

    I try to compile a tiny app consisting of an empty window with a QDeclartiveView inside of it I created with the internal form editor of QCreator 2.1, The auto-generated "#include <QtDeclarative/QDeclarativeView>" fails compilation with file not found.

    Where would I find that file? how do I point Qt at the folder where this is included?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      In Qt Creator, you must make visible the newly installed Qt version. Go to preferences, Qt4 and hit the "+" button, then enter the path to your qmake (/usr/bin/qmake), Creator handles the rest (you must enter a version name if that's not filled automagically).

      You can check where the parts are with calling

      @qmake -query@

      on the command line.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ronM71
        wrote on last edited by
        #3

        I am getting this:

        @/usr/include - Fri Apr 01 10:51:16: qmake -query
        QT_INSTALL_PREFIX:/
        QT_INSTALL_DATA:/usr/local/Qt4.7
        QT_INSTALL_DOCS:/Developer/Documentation/Qt
        QT_INSTALL_HEADERS:/usr/include
        QT_INSTALL_LIBS:/Library/Frameworks
        QT_INSTALL_BINS:/Developer/Tools/Qt
        QT_INSTALL_PLUGINS:/Developer/Applications/Qt/plugins
        QT_INSTALL_IMPORTS:/Developer/Applications/Qt/imports
        QT_INSTALL_TRANSLATIONS:/Developer/Applications/Qt/translations
        QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt
        QT_INSTALL_EXAMPLES:/Developer/Examples/Qt/
        QT_INSTALL_DEMOS:/Developer/Examples/Qt/Demos
        QMAKE_MKSPECS:/usr/local/Qt4.7/mkspecs
        QMAKE_VERSION:2.01a
        QT_VERSION:4.7.2
        @

        Looking again, it seems I am getting a link error on QDeclarativeView

        @
        Undefined symbols:
        "QDeclarativeView::QDeclarativeView(QWidget*)", referenced from:
        Ui_MainWindow::setupUi(QMainWindow*) in MainWindow.o
        @

        Do I have to include the QT_INSTALL_LIBS path in my *.pro file? I would think not, that these are automatically assumed. So why the link error?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Did you add

          @
          QT += declarative
          @

          to your .pro file?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • R Offline
            R Offline
            ronM71
            wrote on last edited by
            #5

            Thanks. that did it :-)

            I assume I should have been looking for this: http://qt.nokia.com/products/library/

            1 Reply Last reply
            0

            • Login

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