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

[macOS] GnObject_Pdf linker error

XMLWordPrintable

    • macOS

      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})

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

            qt_webengine_team Qt WebEngine Team
            tiheikka Titta Heikkala
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes