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

Qt 4.7.0 Building Problem on Mac OS Snow Leopard

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 10 Posters 11.4k 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.
  • 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