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. G++-4.2: No such file or directory
Qt 6.11 is out! See what's new in the release blog

G++-4.2: No such file or directory

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 7 Posters 20.4k 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.
  • M Offline
    M Offline
    miroslav
    wrote on last edited by
    #6

    I think the underlying issue is the Creator defaults to the macx-g++42 make spec. So Tobias' suggestion to override that with macx-g++ is probably the best solution for now. The only resources that I know of are here in the forum.

    Mirko Boehm | mirko@kde.org | KDE e.V.
    FSFE Fellow
    Qt Certified Specialist

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Eonz
      wrote on last edited by
      #7

      Thanks guys. I tried, but I honestly do not know how to do what you suggest. To "override that with macx-g++". Qt Creator's preferences doesn't seem to show anything like that so I'm guessing what you're suggesting requires more advance command line stuff.

      I tried Tobias' link, but a login is required for that (the one for this forum doesn't work for me).

      I can develop on my Windows machine for now.

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

        Also "check here":http://developer.qt.nokia.com/forums/viewthread/12592/: Another thread about this topic, with a better explanation on how to override the mkspec.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          miroslav
          wrote on last edited by
          #9

          Just submitted a review here, this seems to solve the problem: http://codereview.qt-project.org/#change,11297

          Mirko Boehm | mirko@kde.org | KDE e.V.
          FSFE Fellow
          Qt Certified Specialist

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

            ... and I just submitted the fix to the 2.4 branch. Thanks Miroslav for testing!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              miroslav
              wrote on last edited by
              #11

              My pleasure :-)

              Mirko Boehm | mirko@kde.org | KDE e.V.
              FSFE Fellow
              Qt Certified Specialist

              1 Reply Last reply
              0
              • ? This user is from outside of this forum
                ? This user is from outside of this forum
                Guest
                wrote on last edited by
                #12

                To solve the problem:

                When upgrading from 10.6 to 10.7, you can not uninstall Xcode to upgrade just because the g + + -4.2 to install xcode 4.2.

                The steps are:

                1 - keep the xcode 3.2, I'm not wrong.
                install xcode 4.2 and above.

                PS: If you uninstall the xcode 3.2 and xcode 4.2 install to make any kind of build in QT, you'll get errors (g + + -4.2 no such directory) or something like that.

                2 - After upgrading to the Lion remains with the xcode 3.2, install the xcode 4.2 and 3.2 does not uninstall after install QT.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DomX
                  wrote on last edited by
                  #13

                  So I'm having the same issue, has this been resolved yet? I'm also running Mac OSX 10.7.2 with XCode 4.2.1

                  I tried following this link: http://codereview.qt-project.org/#change,11297 But it requires a username and password. Any help without having to do a clean install would be much appreciated,

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    maxvanceffer
                    wrote on last edited by
                    #14

                    I just add macx-g++ and error disappeared, but then make or g++ doesn't see all Qt classes, macros and etc.... Building from Qt creator, Mac Os 10.7, XCode 4.2

                    Any advice ?

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      alpha_one_x86
                      wrote on last edited by
                      #15

                      here with the spec macx-g++ that's not work!

                      The best way to do file copy is in Qt:
                      http://ultracopier.first-world.info/

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        miroslav
                        wrote on last edited by
                        #16

                        Hi!

                        [quote author="alpha_one_x86" date="1331383665"]here with the spec macx-g++ that's not work![/quote]

                        Could you give a few more details on what exactly is not working?

                        Mirko Boehm | mirko@kde.org | KDE e.V.
                        FSFE Fellow
                        Qt Certified Specialist

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          alpha_one_x86
                          wrote on last edited by
                          #17

                          I have drop the MAC SDK version, because Qt 4.8 not work with xcode3, and with xcode4 SDK version is minimum 10.6

                          The best way to do file copy is in Qt:
                          http://ultracopier.first-world.info/

                          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