Important: Please read the Qt Code of Conduct -

Building Qt 5.2 Alpha iOS - clang: error - Undefined symbols for architecture armv7: "__Unwind_Backtrace"

  • I'm currently trying to build Qt 5.2 Alpha current stabel (16.09.2013 13:13)for iOS and I get an error which I could not resolve so far.

    My setup is OSX 10.8.5 with iOS SDK 7.0

    I use following commands to build the alpha :

    git clone git:// qt5
    cd qt5
    cd ..
    cd qt5Shadow
    ../qt5/configure -xplatform macx-ios-clang -developer-build -release
    make -j3

    When executing make it results in following error:

    Ld Release-iphoneos/ normal armv7
    cd /Users/david/Development/qt5Shadow/qtdeclarative/tools/qml
    /Applications/ -arch armv7 -isysroot /Applications/ -L/Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/Release-iphoneos -L/Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/.obj/release-static/ -F/Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/Release-iphoneos -filelist /Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/.obj/release-static/ -dead_strip -headerpad_max_install_names -u _qt_registerPlatformPlugin -Wl,-no_new_main -nostartfiles -lcrt1_qt.o -L/Users/david/Development/qt5Shadow/qtbase/plugins/platforms -framework UIKit -L/Users/david/Development/qt5Shadow/qtbase/lib -framework OpenGLES -ldl -lz -lm -miphoneos-version-min=5.0 -lqios -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport -lQt5Qml -framework Security -framework SystemConfiguration -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -Xlinker -dependency_info -Xlinker /Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/.obj/release-static/ -o /Users/david/Development/qt5Shadow/qtdeclarative/tools/qml/Release-iphoneos/
    Undefined symbols for architecture armv7:
    "__Unwind_Backtrace", referenced from:
    QV4::NativeStackTrace::NativeStackTrace(QV4::ExecutionContext*) in libQt5Qml.a(qv4stacktrace.o)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    ** BUILD FAILED **

    The following build commands failed:
    Ld Release-iphoneos/ normal armv7
    (1 failure)
    make[3]: *** [xcodebuild_build] Error 65
    make[2]: *** [sub-qml-make_first] Error 2
    make[1]: *** [sub-tools-make_first] Error 2
    make: *** [module-qtdeclarative-make_first] Error 2

    Does anyone know what could be the problem? Maybe a missing library?


Log in to reply