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

Qt5 Static build fails in Multimedia for MAC

    XMLWordPrintable

Details

    • macOS

    Description

      Configure command.

      ./configure -static -debug-and-release -commercial -nomake examples -nomake tests -no-dbus

      The error

      /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -c -pipe -arch i386 -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -DQT_EDITION=QT_EDITION_DESKTOP -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQMEDIA_AVF_CAMERA -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_KEYWORDS -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Qt/qt-everywhere-enterprise-src-5.1.1/qtbase/mkspecs/macx-g++-32 -I. -I../../../../include -I../../../../include/QtMultimedia -I../../../../include/QtMultimedia/5.1.1 -I../../../../include/QtMultimedia/5.1.1/QtMultimedia -I/Qt/qt-everywhere-enterprise-src-5.1.1/qtbase/include -I/Qt/qt-everywhere-enterprise-src-5.1.1/qtbase/include/QtNetwork -I/Qt/qt-everywhere-enterprise-src-5.1.1/qtbase/include/QtGui -I/Qt/qt-everywhere-enterprise-src-5.1.1/qtbase/include/QtCore -I.moc/debug-static -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers avfimagecapturecontrol.mm -o .obj/debug-static/avfimagecapturecontrol.o
      avfimagecapturecontrol.mm: In function ‘void __capture_block_invoke_1(void*, opaqueCMSampleBuffer*, NSError*)’:
      avfimagecapturecontrol.mm:121: error: ‘QStringList AVFImageCaptureControl::messageParts’ is not a static member of ‘class AVFImageCaptureControl’
      avfimagecapturecontrol.mm:122: error: ‘messageParts’ was not declared in this scope
      avfimagecapturecontrol.mm:126: error: ‘QString AVFImageCaptureControl::errorMessage’ is not a static member of ‘class AVFImageCaptureControl’
      avfimagecapturecontrol.mm:127: error: ‘errorMessage’ was not declared in this scope
      avfimagecapturecontrol.mm:132: error: ‘errorMessage’ was not declared in this scope
      avfimagecapturecontrol.mm:140: error: ‘NSData* AVFImageCaptureControl::nsJpgData’ is not a static member of ‘class AVFImageCaptureControl’
      avfimagecapturecontrol.mm:141: error: ‘QByteArray AVFImageCaptureControl::jpgData’ is not a static member of ‘class AVFImageCaptureControl’
      avfimagecapturecontrol.mm:141: error: ‘nsJpgData’ was not declared in this scope
      avfimagecapturecontrol.mm:145: error: ‘QBuffer AVFImageCaptureControl::buffer’ is not a static member of ‘class AVFImageCaptureControl’
      avfimagecapturecontrol.mm:145: error: ‘jpgData’ was not declared in this scope
      avfimagecapturecontrol.mm:146: error: ‘QImageReader AVFImageCaptureControl::imageReader’ is not a static member of ‘class 
      

      Note that, using static builds it uses the gcc compiler and when using non static builds it uses clang

      Attachments

        Issue Links

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

          Activity

            People

              ylopes Yoann Lopes
              tapadar Indrajit Tapadar (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes