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

[B2Qt] cmake build of an application is not working

    XMLWordPrintable

Details

    • Linux/Other display system

    Description

      try to build a qt application with localization support on Win10 using Boot2Qt:

      CMake Error at C:/Qt/5.12.1/Boot2Qt/intel-
      corei7-64/toolchain/sysroots/corei7-64-poky-
      linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:25
      (message):
      The package "Qt5LinguistTools" references the file
      
      "C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64
      -poky-linux/usr//usr/bin/lrelease"
      
      but this file does not exist. Possible reasons include:
      
      * The file was deleted, renamed, or moved to another location.
      
      * An install or uninstall procedure did not complete successfully.
      
      * The installation package was faulty and contained
      
      "C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64
      -poky-linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"
      
      but not all the files it references.
      
      Call Stack (most recent call first):
      C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64-poky-
      linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:41
      (_qt5_LinguistTools_check_file_exists)
      CMakeLists.txt:37 (find_package)
      
      Configuring incomplete, errors occurred!
      

      Workaround may be changing Qt5LinguistToolsConfig.cmake:

      set(imported_location "${_qt5_linguisttools_install_prefix}//usr/bin/lrelease")

      to

      set(imported_location "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease${OE_QMAKE_BIN_SUFFIX}")

      Attachments

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

        Activity

          People

            sapiippo Samuli Piippo
            karimpinter Karim Pinter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes