Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngineCore deployment issue
Qt 6.11 is out! See what's new in the release blog

QtWebEngineCore deployment issue

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jokunsby
    wrote on last edited by
    #1

    I have a program using QtWebEngine built on ArchLinux. When I do cmake --install, I have an error:

    CMake Error at /usr/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreDeploySupport.cmake:165 (file):
      file INSTALL cannot find "/usr/share/qt6/resources/icudtl.dat": No such
      file or directory.
    Call Stack (most recent call first):
      /usr/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreDeploySupport.cmake:53 (_qt_internal_deploy_webenginecore_data)
      /usr/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreDeploySupport.cmake:48 (_qt_internal_deploy_webenginecore)
      /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:174 (_qt_internal_webenginecore_deploy_hook)
      /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:174 (cmake_language)
      /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:315 (_qt_internal_run_deployment_hooks)
      /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:514 (_qt_internal_generic_deployqt)
      .qt/deploy_fuldon_e9f90ced5a.cmake:5 (qt6_deploy_runtime_dependencies)
      cmake_install.cmake:76 (include)
    

    I've check the directory /usr/share/qt6/resources/, and there is no icudtl.dat file.
    I've check the ArchLinux package content and there is no icudtl.dat file.
    But in the /usr/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreDeploySupport.cmake file, it looks for this file.
    Do I need to add manually an icudtl.dat to /usr/share/qt6/resources? Because if I comment this file in searched in the list, cmake --install works. But doing this, at the next update of the package, I will lost my comment.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jokunsby
      wrote on last edited by
      #2

      I've found an icudtl.dat in /usr/local/resources. I suppose it's the system one.

      I've made a small fix in my CMakeLists by doing:

      if(LINUX)
          # Check if icudtl.dat exists for Qt6WebEngine deployment
          if(EXISTS "/usr/share/qt6/resources/icudtl.dat")
              message(STATUS "Found icudtl.dat in /usr/share/qt6/resources")
          else()
              # Check if icudtl.dat is in /usr/local/resources
              if(EXISTS "/usr/local/resources/icudtl.dat")
                  message(STATUS "Found icudtl.dat in /usr/local/resources")
      
                  # Generate a symlink from /usr/local/resources/icudtl.dat to /usr/share/qt6/resources
                  install(CODE "
                      message(STATUS \"Creating symlink for icudtl.dat\")
                      execute_process(
                          COMMAND ${CMAKE_COMMAND} -E create_symlink
                          /usr/local/resources/icudtl.dat
                          /usr/share/qt6/resources/icudtl.dat
                      )
                  ")
              else()
                  message(FATAL_ERROR "icudtl.dat not found in /usr/share/qt6/resources or /usr/local/resources")
              endif()
          endif()
      endif()
      

      But I'm not sure that it's the best way to do it.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved