Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Ubuntu 24.04: CMake couldn't find Qt6LinguistTools
Forum Updated to NodeBB v4.3 + New Features

Ubuntu 24.04: CMake couldn't find Qt6LinguistTools

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 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.
  • Grit ClefG Offline
    Grit ClefG Offline
    Grit Clef
    wrote on last edited by
    #1

    Hello,
    I'm writing a multi-platform application which uses CMake as its build system and Qt Linguist as the i18n tool. I have already tested it on Windows and there were no errors. But when I run CMake on Linux, I get the following errors:

    -- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR)
    CMake Error at CMakeLists.txt:18 (find_package):                                                                                                    Found package configuration file:                                                                                                                                                                                                                                                                     /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake                                                                                           
      but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      FOUND.  Reason given by package:
    
      Failed to find required Qt component "LinguistTools".
                                                                                                                                                        Expected Config file at
      "/usr/lib/x86_64-linux-gnu/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake"
      does NOT exist
    
    
    
      Configuring with --debug-find-pkg=Qt6LinguistTools might reveal details why
      the package was not found.
    
      Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
      of the path variables that find_package uses to try and find the package.                                                                       
    
    
    -- Configuring incomplete, errors occurred!
    

    I have installed qt6 using:

    sudo apt update
    sudo apt install -y build-essential qt6-base-dev linguist-qt6
    

    Why is it that CMake still couldn't find LinguistTools?
    Thanks.

    Christian EhrlicherC 1 Reply Last reply
    0
    • Grit ClefG Grit Clef

      Hello,
      I'm writing a multi-platform application which uses CMake as its build system and Qt Linguist as the i18n tool. I have already tested it on Windows and there were no errors. But when I run CMake on Linux, I get the following errors:

      -- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR)
      CMake Error at CMakeLists.txt:18 (find_package):                                                                                                    Found package configuration file:                                                                                                                                                                                                                                                                     /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake                                                                                           
        but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
        FOUND.  Reason given by package:
      
        Failed to find required Qt component "LinguistTools".
                                                                                                                                                          Expected Config file at
        "/usr/lib/x86_64-linux-gnu/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake"
        does NOT exist
      
      
      
        Configuring with --debug-find-pkg=Qt6LinguistTools might reveal details why
        the package was not found.
      
        Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
        of the path variables that find_package uses to try and find the package.                                                                       
      
      
      -- Configuring incomplete, errors occurred!
      

      I have installed qt6 using:

      sudo apt update
      sudo apt install -y build-essential qt6-base-dev linguist-qt6
      

      Why is it that CMake still couldn't find LinguistTools?
      Thanks.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Grit-Clef said in Ubuntu 24.04: CMake couldn't find Qt6LinguistTools:

      Why is it that CMake still couldn't find LinguistTools?

      Because you did not install the development packages for linugist

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • Grit ClefG Offline
        Grit ClefG Offline
        Grit Clef
        wrote on last edited by
        #3

        Oh, yes, I've forgotten that.

        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