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

Qt 5.12.5 for iOS build failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.5
    • Fix Version/s: 5.12.7
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      OSX 14.10.6 ; Xcode 11.0 ; Qt 5.12.5
    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      d381fb9823dac7e1e19b2b2af6b57ddf1306346a (qt/qtmultimedia/5.12)

      Description

      ./configure -opensource -confirm-license -xplatform macx-ios-clang -release -sdk iphoneos --prefix=/Users/sergv/Qt/5.12.5/iphoneos -skip webengine -nomake tools -nomake tests -nomake examples
      make && make install
      

      Compilation errors:

      avfmediaassetwriter.mm:385:9: error: conversion from '::AVFScopedPointer<AVCaptureAudioDataOutput>' to 'bool' is ambiguous
          if (m_audioOutput && [captureSession canAddOutput:m_audioOutput]) {
              ^~~~~~~~~~~~~
      
      avfmediaassetwriter.mm:403:5: error: conversion from '::AVFScopedPointer<AVAssetWriter>' to 'bool' is ambiguous
          Q_ASSERT(m_assetWriter);
      
      avfmediaassetwriter.mm:423:9: error: conversion from '::AVFScopedPointer<AVCaptureAudioDataOutput>' to 'bool' is ambiguous
          if (m_audioOutput) {
      
      avfmediaassetwriter.mm:451:9: error: conversion from '::AVFScopedPointer<AVCaptureAudioDataOutput>' to 'bool' is ambiguous
          if (m_audioOutput) {
      

      Workaround:

      if (m_audioOutput) {
      

      change to

      if (m_audioOutput != nullptr) {
      

      and so on.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              valentyn.doroshchuk Valentyn Doroshchuk
              Reporter:
              sergeyvl Sergey Vlasov
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes