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. Something wrong with my installation
Qt 6.11 is out! See what's new in the release blog

Something wrong with my installation

Scheduled Pinned Locked Moved Installation and Deployment
21 Posts 4 Posters 15.1k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #7

    The QT_INSTALL_PREFIX is ok, Qt is acutally installed in the root file system.

    Can you please call qmake on your project and then run make on the command line (or switch to the compile output in Qt Creator) and show us the command line for the gcc call. The include directory switches there should match the output of qmake -query.

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

    1 Reply Last reply
    0
    • F Offline
      F Offline
      frankmoss
      wrote on last edited by
      #8

      is it

      @qmake xxx.pro?@

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

        Yepp. Or just qmake if you happen to have only one .pro file in your directory.

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

        1 Reply Last reply
        0
        • F Offline
          F Offline
          frankmoss
          wrote on last edited by
          #10

          I run it (qmake, there is only one pro file in the dir) , it seems like Makefile not generated. Where can I find it?

          I ran by specifying the project file but the same thing happens.

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

            Ah, sorry, the default settings of the OS X Qt installer creates XCode projects instead of Makefiles. The wiki article "Generate Makefiles instead of XCode projects on Mac OS X":http://developer.qt.nokia.com/wiki/Generate_Makefiles_instead_of_XCode_projects_on_Mac_OS_X has instructions for how to get rid of this and shows you a permanent solution, if you need one.

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

            1 Reply Last reply
            0
            • F Offline
              F Offline
              frankmoss
              wrote on last edited by
              #12

              Here is the output:

              @iMac:~/xxx/ qmake -spec macx-g++
              iMac:~/xxx/ ls -ltr
              total 56
              -rw-rw---- 1 frank staff 349 Feb 5 16:06 xxx.pro
              -rw-rw---- 1 frank staff 3875 Feb 6 12:56 main.cpp
              -rw-rw---- 1 frank staff 7985 Feb 6 12:56 xxx.pro.user
              -rw-rw---- 1 frank staff 8974 Feb 6 12:56 Makefile
              iMac:~/xxx/ make
              g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_WEBKIT_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.7/mkspecs/macx-g++ -I. -I. -I/usr/include/QtCore -I. -I/usr/include/QtGui -I. -I/usr/include/QtXml -I. -I/usr/include/QtXmlPatterns -I. -I/usr/include/QtWebKit -I/usr/include -I. -F/Library/Frameworks -o main.o main.cpp
              main.cpp:1:18: error: QtCore: No such file or directory
              main.cpp: In function ‘int main(int, char**)’:
              main.cpp:27: error: ‘QDir’ was not declared in this scope
              main.cpp:27: error: expected `;' before ‘xmldir’
              main.cpp:28: error: ‘xmldir’ was not declared in this scope
              main.cpp:28: error: ‘QDir’ is not a class or namespace
              main.cpp:28: error: ‘QDir’ is not a class or namespace
              main.cpp:28: error: ‘QDir’ is not a class or namespace
              main.cpp: At global scope:
              main.cpp:25: warning: unused parameter ‘argc’
              main.cpp:25: warning: unused parameter ‘argv’
              main.cpp:63: warning: unused parameter ‘namespaceURI’
              main.cpp:63: warning: unused parameter ‘localName’
              main.cpp:63: warning: unused parameter ‘qName’
              main.cpp:67: warning: unused parameter ‘namespaceURI’
              main.cpp:67: warning: unused parameter ‘localName’
              make: *** [main.o] Error 1
              iMac:~/xxx/ @

              1 Reply Last reply
              0
              • F Offline
                F Offline
                frankmoss
                wrote on last edited by
                #13

                Anyone?

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

                  Did you check if these directories exist:

                  /usr/include/QtCore
                  /usr/include/QtGui
                  /usr/include/QtXml
                  /usr/include/QtXmlPatterns
                  /usr/include/QtWebKit

                  Also, could you try version 4.7.1 of Qt, please. As far as I know there were some packaging errors with 4.7.0.

                  I cannot check myself, as I never used the precompiled libraries for the Mac, but build on my own.

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

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    frankmoss
                    wrote on last edited by
                    #15

                    No, those directories do not exist! Will try to get 4.7.1

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      frankmoss
                      wrote on last edited by
                      #16

                      I did not find the link to 4.7.1 (mac) on qt website. Where is it? Or do I have to build it myself?

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

                        The downloads is here: http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x

                        via
                        "Resources" on DevNet = http://developer.qt.nokia.com/resources
                        click "download" to go to http://qt.nokia.com/downloads
                        click "Go LGPL"
                        click "Qt libraries 4.7.1 for Mac" to the beforementioned link

                        You can always build Qt yourself. On my 8 core mac pro this lasts about 30 minutes (using make -j8).

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

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          frankmoss
                          wrote on last edited by
                          #18

                          The same thing happens when I installed 4.7.1

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

                            Did you make your Qt Creator instance be aware of the new version (Settings/"Cmd-," then Qt 4) and did you change the Qt version for you project? If not it still tries to compile with the old version.

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

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              frankmoss
                              wrote on last edited by
                              #20

                              I actually removed the old version prior to installing this version. This time, I tried the command line.
                              @
                              qmake
                              make
                              @

                              The same problem.

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

                                I'm lost then. I do not use the precompiled packages and I don't know what's going wrong there.

                                As a last resort you can always build Qt yourself.

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

                                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