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. Qt 4.7.0 Building Problem on Mac OS Snow Leopard
Forum Updated to NodeBB v4.3 + New Features

Qt 4.7.0 Building Problem on Mac OS Snow Leopard

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 10 Posters 12.0k 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.
  • T Offline
    T Offline
    tobias.hunger
    wrote on last edited by
    #4

    So where does it get that path from? What does qmake -query report? Do the pathes mentioned there match up with your installation?

    If they do, please check the .pro file you are building for that path.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bahonurn
      wrote on last edited by
      #5

      I did check with qmake -query everything seems to be installed in its place as it was noted during the installlation process... The whole sdk is in /Developers folder

      here is what i get:

      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.0

      As u see the Qt path is not under /usr/local/Trolltech/Qt4.7/bin but /usr/local/Qt4.7 but when i check the $PATH it did not show the path included

      but i set the PATH even to /usr/local/Qt4.7 but still the same problem

      1 Reply Last reply
      0
      • K Offline
        K Offline
        katrinaniolet
        wrote on last edited by
        #6

        Yep I'm running into the same problem and don't see any obvious reason why.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #7

          Setting the PATH should have no effect on picking up libraries on a unix-based systems like Mac OSX.

          So where does it get /tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0 from? Is that where you had some sources at some point? Is it where your project is located? Is there anything in your .pro-file that references this location (using an absolute or relative path)?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            katrinaniolet
            wrote on last edited by
            #8

            Nope. Brand new machine nothing on it but the latest xcode, qt sdk, and a small project in ~/projectname, using a simple .pro file

            my best guess is this is some temp dir used by Qt Creator during the build process. It doesn't actually cause any problems per se, everything builds fine; its just that it gives those warnings.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              legume55
              wrote on last edited by
              #9

              I have the same problem. New machine, new installation, same message.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ASGR
                wrote on last edited by
                #10

                If you're building your project from the command line then you
                need to set the environmental variables in either the global profile
                file (located in /etc/profile) or the user .profile file (located in the users
                home directory that is usually hidden, type 'ls -la' to show hidden files).

                The PATH environmental variable only tells the terminal where to
                find other binary executables and should include the path to the
                QT binaries.

                To find the libraries, I use the gcc environmental variable
                LIBRARY_PATH set to all the locations where I've installed
                libraries but I've also seen used LD_LIBRARY_PATH and
                DYLD_LIBRARY_PATH to find libraries.

                Hope this has helped.

                ASGR

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  flach
                  wrote on last edited by
                  #11

                  Same problem. I compile a new project with QtCreator 2.0.1 / Qt 4.7.0 under Snow Leopard. I did not have this warning with QtCreator 2.0.0 / Qt 4.6.2.

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nyotis
                    wrote on last edited by
                    #12

                    Hi,

                    I "installed" Qt 4.7 SDK.mpkg bundle on snow 10.6.4 mac/ g++ gcc version 4.2.1.
                    I can run executables in Qt creator from other libraries, but when I am trying to install a light
                    viewer built on Qt I get 2 linker warnings by qmake, i.e.

                    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found

                    ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found

                    With qmake -query everything seems to be right, but qt installation seems broken.
                    qmake is there, but the lin dir in
                    /tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib
                    has been removed.

                    This seems like a bug to me (installing a lib in /tmp -> in a directory that is cleaned every time I reboot the machine??) 'n I have already filed it. Let me know if you have any hints,

                    cheers

                    1 Reply Last reply
                    0
                    • Z Offline
                      Z Offline
                      ziller
                      wrote on last edited by
                      #13

                      For workaround please have a look at "QTBUG-13462":http://bugreports.qt.nokia.com/browse/QTBUG-13462

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nyotis
                        wrote on last edited by
                        #14

                        Con was right. I had another Qt installed via MacPorts that I've now uninstalled.
                        But I left earlier versions of Qt that were installed via MacPorts as a dependency for another ports,
                        ex. boost, cgal (libs rather complicated to build by source), since I don't want to destroy the dependencies. Do you think that this might cause the linker warnings above? I installed a Qt 4.7 SDK.mpkg bundle again, I executed the scripts at the bottom of http://bugreports.qt.nokia.com/browse/QTBUG-13462 , but I get the same warnings..

                        cheers

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nyotis
                          wrote on last edited by
                          #15

                          ... Since I can create the applications I want, I do not worry anymore about the ld warnings.
                          Anyhow, please drop a notification if you fix this.

                          cheers

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nyotis
                            wrote on last edited by
                            #16

                            İsmail Dönmez added a comment - 28/Nov/10 11:58 AM
                            @N you should update to Qt 4.7.1 which fixes this issue along with others.

                            1 Reply Last reply
                            0
                            • mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #17

                              I am running 4.7.1, and I still have this problem. Any suggestions?

                              Running on a Mac.

                              1 Reply Last reply
                              0
                              • I Offline
                                I Offline
                                iraytrace
                                wrote on last edited by
                                #18

                                This looks like a bug in qmake. It is used to build the Makefile for the project (you can find the -L option in the Makefile produced).

                                Looking at the qmake binary with:

                                % strings /usr/bin/qmake | grep qt-everywhere

                                produces lots of strings that begin with:

                                /tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0

                                If you want you could hand-edit the Makefile to remove this option from the link command. Alternatively:

                                % sudo mkdir -p /tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib

                                will create the directory and silence the warning.

                                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