Details
Description
When building QtPdf for iOS, the COTS libraries of chrome used are not properly installed.
They are not installed when doing a make install (after proper qmake and make) and they are referenced with the build directory in prl files for Qt5Pdf and plugins/imageformats/libqpdf
For instance in plugins/imageformats/libqpdf.prl I have the following content where BUILDDIRECTORY is the place where I built Qt.
QMAKE_PRL_BUILD_DIR = <BUILDDIRECTORY>/qtwebengine/src/plugins/imageformats/pdf
QMAKE_PRO_INPUT = pdf.pro
QMAKE_PRL_TARGET = libqpdf.a
QMAKE_PRL_CONFIG = lex yacc depend_includepath testcase_targets import_qpa_plugin asset_catalogs rez prepare_docs qt_docs_targets qt_build_extra file_copies qmake_use qt warn_on release link_prl bitcode reduce_exports shallow_bundle no_qt_rpath app_bundle incremental global_init_link_order lib_version_first sdk clang_pch_style cross_compile static ios uikit mac darwin unix posix gcc clang llvm cross_compile compile_examples force_debug_info largefile neon precompile_header prefix_build force_independent force_bootstrap builtin_testdata utf8_source create_prl link_prl no_private_qt_headers_warning QTDIR_build qt_example_installs exceptions_off testcase_exceptions explicitlib warning_clean release ReleaseBuild Release build_pass device iphoneos simulator iphonesimulator sse sse2 git_build plugin debug_and_release build_all relative_qt_rpath app_extension_api_only create_cmake c+11 strict_c+ c+14 c1z c99 c11 hide_symbols release ReleaseBuild Release build_pass have_target staticlib exclusive_builds debug_info objective_c c+11 no_autoqmake thread opengl moc resources gc_binaries dll
QMAKE_PRL_VERSION = 1.0.0
QMAKE_PRL_LIBS = $$[QT_INSTALL_LIBS]/libQt5Pdf.a <BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/zlib/libchrome_zlib.a <BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/icu/libbundled_icuuc.a <BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/libjpeg_turbo/libjpeg.a <BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/libjpeg_turbo/libsimd.a $$[QT_INSTALL_LIBS]/libQt5Network.a -framework Security -framework SystemConfiguration -framework GSS $$[QT_INSTALL_LIBS]/libQt5Gui.a $$[QT_INSTALL_LIBS]/libqtlibpng.a $$[QT_INSTALL_LIBS]/libqtharfbuzz.a -framework CoreText -framework CoreGraphics $$[QT_INSTALL_LIBS]/libQt5Core.a -framework MobileCoreServices -lm -framework UIKit -framework CoreFoundation -framework Foundation -lz $$[QT_INSTALL_LIBS]/libqtpcre2.a -framework OpenGLES
QMAKE_PRL_LIBS_FOR_CMAKE = $$[QT_INSTALL_LIBS]/libQt5Pdf.a;<BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/zlib/libchrome_zlib.a;<BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/icu/libbundled_icuuc.a;<BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/libjpeg_turbo/libjpeg.a;<BUILDDIRECTORY>/qtwebengine/src/pdf/release/obj/third_party/libjpeg_turbo/libsimd.a;$$[QT_INSTALL_LIBS]/libQt5Network.a;-framework;Security;-framework;SystemConfiguration;-framework;GSS;$$[QT_INSTALL_LIBS]/libQt5Gui.a;$$[QT_INSTALL_LIBS]/libqtlibpng.a;$$[QT_INSTALL_LIBS]/libqtharfbuzz.a;-framework;CoreText;-framework;CoreGraphics;$$[QT_INSTALL_LIBS]/libQt5Core.a;-framework;MobileCoreServices;-lm;-framework;UIKit;-framework;CoreFoundation;-framework;Foundation;-lz;$$[QT_INSTALL_LIBS]/libqtpcre2.a;-framework;OpenGLES;;;
Attachments
For Gerrit Dashboard: QTBUG-85616 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
307954,10 | Fix incorrect paths in prl files when doing a static build | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |
308182,6 | Fix prl generation in sub modules of webengine repo | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |
308235,6 | Cleanup linking param order and prl generation | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |