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



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



  • [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'时



  • 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’时


  • Lifetime Qt Champion

    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



  • 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]



  • 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]



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

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


  • Lifetime Qt Champion

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



  • Yeah, Thanks all the same. Thank u.



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.