Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61079

New ios project: compilation error (actually I wanted to report another bug on save audio clip!)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.0 RC
    • QPA
    • None
    • iphone 6, linux
    • iOS/tvOS/watchOS

    Description

      Just creating a new ios project with Qt 5.8 minimum support and adding a class results in:

      ** BUILD FAILED **

       

       

      The following build commands failed:

      Ld TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording normal armv7

      (1 failure)

      make: *** [xcodebuild-debug-device] Error 65

      14:32:15: The process "/usr/bin/make" exited with code 2.

      Error while building/deploying project TestRecording (kit: iphoneos-clang Qt 5.9.0 for iOS)

      When executing step "Make"

       

       

      Then creating an empty project that is working and retrying exactly the same above:

       

      ** BUILD FAILED **

       

       

      The following build commands failed:

      Ld TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording normal arm64

      (1 failure)

      make: *** [xcodebuild-debug-device] Error 65

      14:41:17: The process "/usr/bin/make" exited with code 2.

      Error while building/deploying project TestRecording (kit: iphoneos-clang Qt 5.9.0 for iOS)

      When executing step "Make"

       

      Retrying it, results in a new error:

       

      14:45:38: Running steps for project TestRecording...

      14:45:38: Starting: "/Users/giovanniromano/Qt/5.9/ios/bin/qmake" /Users/giovanniromano/TestRecording/TestRecording.pro -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=qml_debug -after QMAKE_MAC_XCODE_SETTINGS+=qteam qteam.name=DEVELOPMENT_TEAM qteam.value=XXXXXX

      14:45:48: The process "/Users/giovanniromano/Qt/5.9/ios/bin/qmake" exited normally.

      14:45:48: Starting: "/usr/bin/make" qmake_all

      make: Nothing to be done for `qmake_all'.

      14:45:49: The process "/usr/bin/make" exited normally.

      14:45:49: Starting: "/usr/bin/make"

      perl: warning: Setting locale failed.

      perl: warning: Please check that your locale settings:

      LC_ALL = (unset),

      LC_MESSAGES = "en_US.utf8",

      LANG = (unset)

      are supported and installed on your system.

      perl: warning: Falling back to the standard locale ("C").

      xcodebuild build -project TestRecording.xcodeproj -scheme TestRecording -configuration Debug -destination generic/platform=iOS -destination-timeout 1

      2017-05-28 14:45:50.385 xcodebuild[4391:82272] warning: The file reference for "/Users/giovanniromano/TestRecording/qml.qrc" is a member of multiple groups ("Supporting Files" and "Resources"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

      === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT TestRecording WITH CONFIGURATION Debug ===

       

      Check dependencies

       

      PhaseScriptExecution Qt\ Qmake TestRecording.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh

      cd /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug

      /bin/sh -c \"/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\"

      make[1]: `TestRecording.xcodeproj/project.pbxproj' is up to date.

       

      PhaseScriptExecution Qt\ Preprocessors TestRecording.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh

      cd /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug

      /bin/sh -c \"/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\"

      make[1]: Nothing to be done for `preprocess'.

       

      === BUILD TARGET TestRecording OF PROJECT TestRecording WITH CONFIGURATION Debug ===

       

      Check dependencies

       

      Ld TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording normal armv7

      cd /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug

      export IPHONEOS_DEPLOYMENT_TARGET=8.0

      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/Debug-iphoneos -L/Users/giovanniromano/Qt/5.9/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks -L/Users/giovanniromano/Qt/5.9/ios/lib -L/Users/giovanniromano/Qt/5.9/ios/plugins/imageformats -L/Users/giovanniromano/Qt/5.9/ios/plugins/qmltooling -L/Users/giovanniromano/Qt/5.9/ios/plugins/bearer -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick.2 -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick/Window.2 -F/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/Debug-iphoneos -filelist /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -Wl,-e,_qt_main_wrapper -Wl,-rpath,@executable_path/Frameworks -L/Users/giovanniromano/Qt/5.9/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/giovanniromano/Qt/5.9/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/giovanniromano/Qt/5.9/ios/plugins/imageformats -L/Users/giovanniromano/Qt/5.9/ios/plugins/qmltooling -L/Users/giovanniromano/Qt/5.9/ios/plugins/bearer -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick.2 -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick/Window.2 -lm -lz -framework Foundation -framework QuartzCore -framework AudioToolbox -framework CoreFoundation -framework CoreText -framework CoreGraphics -lqios_debug -lQt5FontDatabaseSupport_debug -lqtfreetype_debug -lQt5GraphicsSupport_debug -lQt5ClipboardSupport_debug -lqgif_debug -lqicns_debug -lqico_debug -lqjpeg_debug -lqmacjp2_debug -framework ImageIO -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lqmldbg_debugger_debug -framework Security -lqmldbg_inspector_debug -lqmldbg_local_debug -lqmldbg_messages_debug -lqmldbg_native_debug -lqmldbg_nativedebugger_debug -lqmldbg_profiler_debug -lqmldbg_quickprofiler_debug -lqmldbg_server_debug -lQt5PacketProtocol_debug -lqmldbg_tcp_debug -lqgenericbearer_debug -lqtquick2plugin_debug -lwindowplugin_debug -lQt5Quick_debug -lQt5Qml_debug -lQt5Gui_debug -lqtlibpng_debug -lqtharfbuzz_debug -lQt5Network_debug -lQt5Core_debug -lqtpcre2_debug -Xlinker -dependency_info -Xlinker /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording_dependency_info.dat -o /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/armv7/TestRecording

      Undefined symbols for architecture armv7:

      "QMediaRecorder::staticMetaObject", referenced from:

      operator<<(QDebug, QMediaRecorder::Error) in softairrecorder.o

      "QMediaRecorder::setEncodingSettings(QAudioEncoderSettings const&, QVideoEncoderSettings const&, QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::record()", referenced from:

      SoftairRecorder::startRecording(QString) in softairrecorder.o

      "QAudioRecorder::QAudioRecorder(QObject*)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::setCodec(QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::setQuality(QMultimedia::EncodingQuality)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::setOutputLocation(QUrl const&)", referenced from:

      SoftairRecorder::startRecording(QString) in softairrecorder.o

      "QAudioEncoderSettings::QAudioEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QVideoEncoderSettings::QVideoEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioRecorder::defaultAudioInput() const", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioRecorder::setAudioInput(QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::~QAudioEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::stop()", referenced from:

      SoftairRecorder::stopRecording() in softairrecorder.o

      ** BUILD FAILED **

       

       

      The following build commands failed:

      Ld TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording normal arm64

      (1 failure)

      make: *** [xcodebuild-debug-device] Error 65

       

      Ld TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording normal arm64

      cd /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug

      export IPHONEOS_DEPLOYMENT_TARGET=8.0

      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/Debug-iphoneos -L/Users/giovanniromano/Qt/5.9/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks -L/Users/giovanniromano/Qt/5.9/ios/lib -L/Users/giovanniromano/Qt/5.9/ios/plugins/imageformats -L/Users/giovanniromano/Qt/5.9/ios/plugins/qmltooling -L/Users/giovanniromano/Qt/5.9/ios/plugins/bearer -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick.2 -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick/Window.2 -F/Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/Debug-iphoneos -filelist /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -Wl,-e,_qt_main_wrapper -Wl,-rpath,@executable_path/Frameworks -L/Users/giovanniromano/Qt/5.9/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/giovanniromano/Qt/5.9/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/giovanniromano/Qt/5.9/ios/plugins/imageformats -L/Users/giovanniromano/Qt/5.9/ios/plugins/qmltooling -L/Users/giovanniromano/Qt/5.9/ios/plugins/bearer -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick.2 -L/Users/giovanniromano/Qt/5.9/ios/qml/QtQuick/Window.2 -lm -lz -framework Foundation -framework QuartzCore -framework AudioToolbox -framework CoreFoundation -framework CoreText -framework CoreGraphics -lqios_debug -lQt5FontDatabaseSupport_debug -lqtfreetype_debug -lQt5GraphicsSupport_debug -lQt5ClipboardSupport_debug -lqgif_debug -lqicns_debug -lqico_debug -lqjpeg_debug -lqmacjp2_debug -framework ImageIO -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lqmldbg_debugger_debug -framework Security -lqmldbg_inspector_debug -lqmldbg_local_debug -lqmldbg_messages_debug -lqmldbg_native_debug -lqmldbg_nativedebugger_debug -lqmldbg_profiler_debug -lqmldbg_quickprofiler_debug -lqmldbg_server_debug -lQt5PacketProtocol_debug -lqmldbg_tcp_debug -lqgenericbearer_debug -lqtquick2plugin_debug -lwindowplugin_debug -lQt5Quick_debug -lQt5Qml_debug -lQt5Gui_debug -lqtlibpng_debug -lqtharfbuzz_debug -lQt5Network_debug -lQt5Core_debug -lqtpcre2_debug -Xlinker -dependency_info -Xlinker /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording_dependency_info.dat -o /Users/giovanniromano/build-TestRecording-iphoneos_clang_Qt_5_9_0_for_iOS-Debug/TestRecording.build/Debug-iphoneos/TestRecording.build/Objects-normal/arm64/TestRecording

      Undefined symbols for architecture arm64:

      "QMediaRecorder::staticMetaObject", referenced from:

      operator<<(QDebug, QMediaRecorder::Error) in softairrecorder.o

      "QMediaRecorder::setEncodingSettings(QAudioEncoderSettings const&, QVideoEncoderSettings const&, QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::record()", referenced from:

      SoftairRecorder::startRecording(QString) in softairrecorder.o

      "QAudioRecorder::QAudioRecorder(QObject*)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::setCodec(QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::setQuality(QMultimedia::EncodingQuality)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::setOutputLocation(QUrl const&)", referenced from:

      SoftairRecorder::startRecording(QString) in softairrecorder.o

      "QAudioEncoderSettings::QAudioEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QVideoEncoderSettings::QVideoEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioRecorder::defaultAudioInput() const", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioRecorder::setAudioInput(QString const&)", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QMediaRecorder::stop()", referenced from:

      SoftairRecorder::stopRecording() in softairrecorder.o

      "QVideoEncoderSettings::~QVideoEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      "QAudioEncoderSettings::~QAudioEncoderSettings()", referenced from:

      SoftairRecorder::SoftairRecorder(QObject*) in softairrecorder.o

      ld: symbol(s) not found for architecture arm64

      clang: error: linker command failed with exit code 1 (use -v to see invocation)

       

      14:45:54: The process "/usr/bin/make" exited with code 2.

      Error while building/deploying project TestRecording (kit: iphoneos-clang Qt 5.9.0 for iOS)

      When executing step "Make"

      14:45:54: Elapsed time: 00:16.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              alterx Giovanni Romano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes