-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.1
-
macOS 15.6.1
Xcode 16.2
After configuring Qt with the following options and building Qt:
../configure -debug -prefix /usr/local/Qt-6.9.1-pdf-target-13.2-debug -verbose -static -nomake examples -nomake tests -no-sbom -skip qtspeech -opengl desktop -no-feature-ffmpeg -- -DCMAKE_OSX_DEPLOYMENT_TARGET="13.2" -DCMAKE_OSX_ARCHITECTURES="arm64" -Wno-dev
applications using QtPdf will report linking error:
ld: library 'GnObject_Pdf_Debug' not found
It seems qtwebengine/cmake/Functions.cmake has related code:
add_library(GnObject_${cmakeTarget}_${config} OBJECT IMPORTED GLOBAL) target_link_libraries(${cmakeTarget} PRIVATE $<$<CONFIG:${config}>:GnObject_${cmakeTarget}_${config}>) set_property(TARGET GnObject_${cmakeTarget}${config} PROPERTY IMPORTED_OBJECTS${cfg} ${objects_out})