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

"Target "tst_qsvgdevice" links to: Qt6::QSvgIconPlugin_init but the target was not found" when building qtsvg for iOS

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS, macOS
    • 566b726b8 (dev), cac3d3198 (6.7)

    Description

      On latest dev:

      Entering 'qtbase'
      commit a2e0f3dfbd9f54e20221dbc04360f838b5fa5343
      Entering 'qtdeclarative'
      commit 295953bfc791ee9a4b0660ee72f54c39e35a3973
      Entering 'qtshadertools'
      commit 4de38dfd89ac9b1c313bd244bce23a122e8a6e0a
      Entering 'qtsvg'
      commit 739959e9114d2ea7630c45d3ea41f295d5a60217
      

      Configuring with these args:

      -DCMAKE_BUILD_TYPE=Debug -DFEATURE_developer_build=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_SYSTEM_NAME=iOS -DQT_HOST_PATH=~/dev/qt-dev-debug-non-fw/qtbase
      

      I get errors:

      === creating /Users/mitch/dev/qt-dev-ios-debug/qtsvg
      === cding to /Users/mitch/dev/qt-dev-ios-debug/qtsvg
      === configuring module qtsvg
      '/Users/mitch/dev/qt-dev-ios-debug/qtbase/bin/../libexec/qt-cmake-private' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '/Users/mitch/dev/qt-dev/qtsvg'
      -- The CXX compiler identification is AppleClang 15.0.0.15000309
      -- The C compiler identification is AppleClang 15.0.0.15000309
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE  
      -- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib/libz.tbd (found version "1.2.12")  
      -- 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.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include  
      -- Using Qt bundled PCRE2.
      -- Found WrapPCRE2: TRUE  
      -- Performing Test HAVE_GETTIME
      -- Performing Test HAVE_GETTIME - Success
      -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK
      -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK - 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.
      -- Using Qt bundled Jpeg.
      -- Force setting build type to 'Debug'.
      -- Checking for feature set changes
      -- The OBJC compiler identification is AppleClang 15.0.0.15000309
      -- Detecting OBJC compiler ABI info
      -- Detecting OBJC compiler ABI info - done
      -- Check for working OBJC compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
      -- The OBJCXX compiler identification is AppleClang 15.0.0.15000309
      -- Detecting OBJCXX compiler ABI info
      -- Detecting OBJCXX compiler ABI info - done
      -- Check for working OBJCXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
      -- Running syncqt.cpp for module: QtSvg
      -- Running syncqt.cpp for module: QtSvgWidgets
      -- CMAKE_VERSION: 3.28.3
      -- CMAKE_PREFIX_PATH: /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake;/Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake
      -- CMAKE_MODULES_UNDER_TEST: 
      -- The following packages have been found:
      
       * Qt6BuildInternals (required version >= 6.8.0)
       * ZLIB
       * WrapSystemZLIB
       * Backtrace
       * Qt6BundledPcre2
       * Qt6BundledLibpng
       * Qt6BundledHarfbuzz
       * Qt6BundledFreetype
       * Qt6BundledLibjpeg
       * Qt6Gui (required version >= 6.8.0)
       * Qt6WidgetsTools (required version >= 6.8.0)
       * Qt6Widgets (required version >= 6.8.0)
       * Qt6Xml (required version >= 6.8.0)
       * Qt6Test (required version >= 6.8.0)
       * Qt6CoreTools (required version >= 6.8.0)
       * Qt6Core
       * Qt6HostInfo
       * Qt6 (required version >= 6.8.0)
      
      -- The following OPTIONAL packages have not been found:
      
       * PkgConfig
       * EGL, A platform-agnostic mechanism for creating rendering surfaces for use with other graphics libraries, such as OpenGL|ES and OpenVG., <https://www.khronos.org/egl/>
      
      
      -- Configuring done (2.7s)
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_qsvgdevice" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/auto/qsvgdevice/CMakeLists.txt:DEFERRED
      
      
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_qsvggenerator" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/auto/qsvggenerator/CMakeLists.txt:DEFERRED
      
      
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_qsvgplugin" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/auto/qsvgplugin/CMakeLists.txt:DEFERRED
      
      
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_qicon_svg" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/auto/qicon_svg/CMakeLists.txt:DEFERRED
      
      
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_qsvgrenderer" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/auto/qsvgrenderer/CMakeLists.txt:DEFERRED
      
      
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtPublicPluginHelpers.cmake:486 (target_link_libraries):
        Target "tst_baseline_qsvgrenderer" links to:
      
          Qt6::QSvgIconPlugin_init
      
        but the target was not foun-- Generating done (0.1s)
      d.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      Call Stack (most recent call first):
        /Users/mitch/dev/qt-dev-ios-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:748 (__qt_internal_apply_plugin_imports_finalizer_mode)
        /Users/mitch/dev/qt-dev/qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (_qt_internal_finalize_executable)
        tests/baseline/qsvgrenderer/CMakeLists.txt:DEFERRED
      
      
      CMake Warning:
        Manually-specified variables were not used by the project:
      
          QT_INTERNAL_CALLED_FROM_CONFIGURE
          QT_USE_ORIGINAL_COMPILER
      
      
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      CMake Error at /Users/mitch/dev/qt-dev/qtbase/cmake/QtProcessConfigureArgs.cmake:1091 (message):
        CMake exited with code 1.
      

      Troubleshooting output from https://wiki.qt.io/Qt_Build_System_Glossary#CMake_project_quick_troubleshooting_recipe is attached:

      cmake-debug-output.zip

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123186
          # Subject Branch Project Status CR V

          Activity

            People

              alexandru.croitor Alexandru Croitor
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes