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

Build of Qt Pdf for iOS fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.5.0 Beta1
    • 6.3.1
    • PDF
    • None
    • iOS/tvOS/watchOS
    • 22e3210031 (qt/qtwebengine/dev) 6ad7c379e5 (qt/qtwebengine/6.4) 6ad7c379e5 (qt/tqtc-qtwebengine/6.4)

    Description

      I don't manage to build qt PDF for iOS.

      After building all the qt source with success (without web engine), I try to build qt pdf with the method here: https://wiki.qt.io/QtPDF_Build_Instructions

      The output of configure is:

      '/Users/admin-navblue/Qt6Build/install/6.3.1/ios/bin/qt-cmake-private' '-DFEATURE_qtwebengine_build=OFF' '../qt5/qtwebengine'
      -- The C compiler identification is AppleClang 13.1.6.13160021
      -- The CXX compiler identification is AppleClang 13.1.6.13160021
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Applications/Xcode.13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode.13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE  
      -- Found ZLIB: /Applications/Xcode.13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/usr/lib/libz.tbd (found version "1.2.11") 
      -- Found WrapSystemZLIB: TRUE  
      -- Using system ZLIB.
      -- Found WrapZLIB: TRUE  
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      -- Looking for backtrace
      -- Looking for backtrace - found
      -- backtrace facility detected in default set of libraries
      -- Found Backtrace: /Applications/Xcode.13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/usr/include  
      -- Using Qt bundled PCRE2.
      -- Found WrapPCRE2: TRUE  
      -- Performing Test HAVE_GETTIME
      -- Performing Test HAVE_GETTIME - Success
      -- Found WrapRt: TRUE  
      -- Performing Test HAVE_EGL
      -- Performing Test HAVE_EGL - Failed
      -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      -- Performing Test HAVE_GLESv2
      -- Performing Test HAVE_GLESv2 - Success
      -- Using Qt bundled PNG.
      -- Using Qt bundled Harfbuzz.
      -- Using Qt bundled Freetype.
      -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      -- Using Qt bundled Jpeg.
      -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      -- Support check for QtWebEngine failed: Build can be done only on Linux, Windows or macOS.
      Generating Plugins files for Pdf;PdfWidgets;PdfQuick...-- Configuration summary has been written to /Users/admin-navblue/Qt6Build/buildPdf/config.summary
      -- Configure with --log-level=STATUS or higher to increase the output verbosity.
       
       WARNING: QtWebEngine won't be built. Build can be done only on Linux, Windows or macOS.-- Configuring done
      -- Generating done
      -- Build files have been written to: /Users/admin-navblue/Qt6Build/buildPdf
      

      The output of the build is:

      [1/131] Check QtWebEngine support
      QtWebEngine will not be built: Build can be done only on Linux, Windows or macOS.
      [2/131] Check QtWebEngine support
      QtWebEngine will not be built: Build can be done only on Linux, Windows or macOS.
      [23/131] Automatic MOC for target PdfQuick
      AutoMoc: /Users/admin-navblue/Qt6Build/qt5/qtwebengine/src/pdfquick/qquickpdfdocument_p.h:139:1: warning: Class QQuickPdfDocument implements the interface QQmlParserStatus but does not list it in Q_INTERFACES. qobject_cast to QQmlParserStatus will not work!
      AutoMoc: /Users/admin-navblue/Qt6Build/qt5/qtwebengine/src/pdfquick/qquickpdfdocument_p.h:139:1: warning: Class QQuickPdfDocument implements the interface QQmlParserStatus but does not list it in Q_INTERFACES. qobject_cast to QQmlParserStatus will not work!
      [38/131] Run gn for target Pdf in /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64
      FAILED: src/pdf/RelWithDebInfo/arm64/QtPdf_objects.rsp src/pdf/RelWithDebInfo/arm64/QtPdf_archives.rsp src/pdf/RelWithDebInfo/arm64/QtPdf_libs.rsp /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64/QtPdf_objects.rsp /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64/QtPdf_archives.rsp /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64/QtPdf_libs.rsp 
      cd /Users/admin-navblue/Qt6Build/buildPdf && /usr/local/Cellar/cmake/3.21.3_1/bin/cmake -DBUILD_DIR=/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64 -DSOURCE_DIR=/Users/admin-navblue/Qt6Build/qt5/qtwebengine/src/pdf -DMODULE=pdf -DQT_HOST_GN_PATH=/Users/admin-navblue/QtOfficial/6.3.1/macos/./libexec -DPython3_EXECUTABLE=/usr/local/bin/python3 -DGN_THREADS= -P /Users/admin-navblue/Qt6Build/qt5/qtwebengine/cmake/Gn.cmake
      -- Found Gn: /Users/admin-navblue/QtOfficial/6.3.1/macos/libexec/gn (found suitable exact version "6.3.1.qtwebengine.qt.io") 
      -- Running gn in /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64
      -- GN command:
      /Users/admin-navblue/QtOfficial/6.3.1/macos/libexec/gn gen /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64 --script-executable=/usr/local/bin/python3 --root=/Users/admin-navblue/Qt6Build/qt5/qtwebengine/src/3rdparty/chromium
      -- GN arg file:
      /Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64/args.gn
      -- GN args: 
      chrome_pgo_phase=0
      clang_base_path="/Applications/Xcode.13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr"
      clang_use_chrome_plugins=false
      dcheck_always_on=false
      enable_debugallocation=false
      enable_ios_bitcode=true
      enable_ios_bitcode=true
      enable_ipc_fuzzer=false
      enable_precompiled_headers=true
      enable_remoting=false
      enable_resource_allowlist_generation=false
      enable_web_speech=false
      fatal_linker_warnings=false
      forbid_non_component_debug_builds=false
      init_stack_vars=false
      ios_deployment_target="13.0"
      ios_enable_code_signing=false
      is_clang=true
      is_component_build=false
      is_debug=false
      is_official_build=true
      is_shared=true
      is_unsafe_developer_build=false
      jumbo_build_excluded=["browser"]
      jumbo_file_merge_limit=8
      pdf_enable_v8=false
      pdf_enable_xfa=false
      pdf_enable_xfa_bmp=false
      pdf_enable_xfa_gif=false
      pdf_enable_xfa_png=false
      pdf_enable_xfa_tiff=false
      pdfium_use_qt_libpng=true
      qt_freetype_config="/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64:qt_freetype_config"
      qt_harfbuzz_config="/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64:qt_harfbuzz_config"
      qt_libjpeg_config="/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64:qt_libjpeg_config"
      qt_libpng_config="/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64:qt_libpng_config"
      qtwebengine_target="/Users/admin-navblue/Qt6Build/buildPdf/src/pdf/RelWithDebInfo/arm64:QtPdf"
      strip_absolute_paths_from_debug_symbols=false
      symbol_level=1
      target_cpu="arm64"
      target_os="ios"
      target_sysroot="/Applications/Xcode.13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk"
      treat_warnings_as_errors=false
      use_allocator="none"
      use_allocator_shim=false
      use_custom_libcxx=false
      use_gold=false
      use_jumbo_build=true
      use_libcxx=true
      use_lld=false
      use_qt=true
      use_qt_freetype=true
      use_qt_harfbuzz=true
      use_qt_libjpeg=false
      use_sysroot=false
      use_system_xcode=true
      use_thin_lto=false
      CMake Error at /Users/admin-navblue/Qt6Build/qt5/qtwebengine/cmake/Gn.cmake:72 (message):
          -- GN FAILED      Process terminated due to timeout
      

      Note that the build of Qt Pdf on Windows is working well.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              jd__ Jérôme Desfieux
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes