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. [Solved] Mac OSX install Qt5.0.2 Failed. Error : unable to execute command: posix_spawn failed: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

[Solved] Mac OSX install Qt5.0.2 Failed. Error : unable to execute command: posix_spawn failed: No such file or directory

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 9.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
    Mark C.J.
    wrote on last edited by
    #1

    Yesterday, I try to install Qt on my macbook pro. but Failed. The error information is:
    :-1: Error:unable to execute command: posix_spawn failed: No such file or directory

    OSX : 10.7.5
    The QT version I am trying to install is : 5.0.2, "qt-mac-opensource-5.0.2-clang-offline.dmg";

    I also tried to install Qt version 5.0.0, but failed for the reason of " ld ";

    I trying to solve this problem, using the version 5.0.2, but not succeeded.
    Anyone can help? Many Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mark C.J.
      wrote on last edited by
      #2

      [Adding log]
      using Qt 5.0.0 error log.

      g++-4.0 -headerpad_max_install_names -mmacosx-version-min=10.6 -o VC.app/Contents/MacOS/VC main.o mainwindow.o googleasr.o tts.o resample.o moc_mainwindow.o moc_tts.o moc_googleasr.o -L/Users/markchen/iDev/QT-MAC/QT_VC/libs/ -lsoxr -F/Users/markchen/Qt5.0.0/5.0.0/clang_64/lib -framework QtMultimedia -F/Users/markchen/Qt5.0.0/5.0.0/clang_64/qtbase/lib -framework ApplicationServices -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework AppKit -framework QuartzCore -framework QTKit -framework QtGui -framework QtCore -framework QtNetwork -framework QtWidgets -framework OpenGL -framework AGL
      ld: warning: directory '/Users/markchen/Qt5.0.0/5.0.0/clang_64/qtbase/lib' following -F not found
      ld: warning: in /Users/markchen/iDev/QT-MAC/QT_VC/libs//libsoxr.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
      ld: warning: in /Users/markchen/Qt5.0.0/5.0.0/clang_64/lib/QtMultimedia.framework/QtMultimedia, file was built for unsupported file format which is not the architecture being linked (i386)
      ld: warning: in /Users/markchen/Qt5.0.0/5.0.0/clang_64/lib/QtGui.framework/QtGui, file was built for unsupported file format which is not the architecture being linked (i386)
      ld: warning: in /Users/markchen/Qt5.0.0/5.0.0/clang_64/lib/QtCore.framework/QtCore, file was built for unsupported file format which is not the architecture being linked (i386)
      ld: warning: in /Users/markchen/Qt5.0.0/5.0.0/clang_64/lib/QtNetwork.framework/QtNetwork, file was built for unsupported file format which is not the architecture being linked (i386)
      ld: warning: in /Users/markchen/Qt5.0.0/5.0.0/clang_64/lib/QtWidgets.framework/QtWidgets, file was built for unsupported file format which is not the architecture being linked (i386)

      Undefined symbols:
      "QIODevice::reset()", referenced from:
      vtable for AudioInfoin moc_mainwindow.o

      ld: symbol(s) not found
      collect2: ld returned 1 exit status
      make: *** [VC.app/Contents/MacOS/VC] Error 1

      16:40:41: 进程"/usr/bin/make"退出,退出代码 2 。
      Error while building/deploying project VC (kit: Desktop Qt 5.0.0 clang 64bit (SDK))
      当执行步骤 'Make'时

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mark C.J.
        wrote on last edited by
        #3

        ld: symbol(s) not found collect2: ld returned 1 exit status make: ***

        [VC.app/Contents/MacOS/VC] Error 1 16:40:41: 进程”/usr/bin/make“退出,退出代码 2 。
        Error while building/deploying project VC (kit: Desktop Qt 5.0.0 clang 64bit (SDK)) 当执行步骤 ‘Make’时

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          It seems you are compiling a project in 32bit while trying to link 64bit libraries. Make sure you build everything for the same architecture

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mark C.J.
            wrote on last edited by
            #5

            yeah, my macbook is 64bit.
            I try to use the Qt Demo to test my installation, also have this problem.

            Could you tell me how to set the bit or solve this problem.
            Thanks.

            [quote author="SGaist" date="1368003021"]Hi and welcome to devnet,

            It seems you are compiling a project in 32bit while trying to link 64bit libraries. Make sure you build everything for the same architecture[/quote]

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mark C.J.
              wrote on last edited by
              #6

              When using 5.0.2, Does the problem is also caused by the bit count?

              Error Message- :-1: Error:unable to execute command: posix_spawn failed: No such file or directory

              Qt Creator 2.7.0
              基于 Qt 5.0.2 (64 bit)

              构建于 09:31:19 Apr 9 2013

              来自修订版本 b6257ef735

              Copyright 2008-2013 Digia Plc. All rights reserved.

              The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

              [quote author="SGaist" date="1368003021"]Hi and welcome to devnet,

              It seems you are compiling a project in 32bit while trying to link 64bit libraries. Make sure you build everything for the same architecture[/quote]

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mark C.J.
                wrote on last edited by
                #7

                [Solved]
                Solve Method:
                Install the xcode command line tools.

                Step: XCode Preference->Download->Components -> click the command line tools 's 'install'.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Indeed... I forgot about these (I installed them for macports so they where already there)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mark C.J.
                    wrote on last edited by
                    #9

                    Yeah, Thanks all the same. Thank u.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mark C.J.
                      wrote on last edited by
                      #10

                      Yeah, Thanks all the same. Thank u. :)

                      [quote author="SGaist" date="1368008174"]Indeed... I forgot about these (I installed them for macports so they where already there)[/quote]

                      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