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.
  • L Offline
    L Offline
    legume55
    wrote on 12 Oct 2010, 15:53 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 12 Oct 2010, 22:10 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 13 Oct 2010, 13:44 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 8 Nov 2010, 21:03 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 9 Nov 2010, 10:02 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 9 Nov 2010, 11:55 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 12 Nov 2010, 16:31 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 29 Nov 2010, 22:13 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
                  • M Offline
                    M Offline
                    mzimmers
                    wrote on 18 Jan 2011, 23:59 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 23 Mar 2011, 00:16 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