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. Qt6, building linguist tools
Forum Updated to NodeBB v4.3 + New Features

Qt6, building linguist tools

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 1.0k Views 3 Watching
  • 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
    jgnsb
    wrote on last edited by
    #1

    I'm building Qt 6 from source because the app I'm building requires a specific Qt version not provided by the host OS (Ubuntu 24.04). I'm using these instructions: https://doc.qt.io/qt-6/linux-building.html. The application requires the translation tools (lrelease, etc), but those binaries aren't being build. I've tried adding '-feature-translation' and an explicit '-make tools' to the configure step, but no joy.

    How do I get the tools in qttools/src/linguist to build?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Check the configure logs to see what was missing that disabled the tools.

      In between, you can use linguist from your distribution without any issue.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • l3u_L Offline
        l3u_L Offline
        l3u_
        wrote on last edited by
        #3

        For the sake of completeness, you could also build the Linguist tools separatey, e.g. for Qt 6.7.3 like this:

        Get the sources:

        wget https://download.qt.io/official_releases/qt/6.7/6.7.3/submodules/qttools-everywhere-src-6.7.3.tar.xz
        tar -xvf qttools-everywhere-src-6.7.3.tar.xz
        mkdir qttools-everywhere-src-6.7.3/build
        cd qttools-everywhere-src-6.7.3/build
        

        Then build the Linuist tools:

        cmake -G Ninja \
            -DCMAKE_PREFIX_PATH=~/Qt/6.7.3 \
            -DCMAKE_INSTALL_PREFIX=~/Qt/6.7.3 \
            -DFEATURE_assistant=OFF \
            -DFEATURE_clang=OFF \
            -DFEATURE_designer=OFF \
            -DFEATURE_pixeltool=OFF \
            -DFEATURE_qdbus=OFF \
            -DFEATURE_qtattributionsscanner=OFF \
            -DFEATURE_qtdiag=OFF \
            -DFEATURE_qtplugininfo=OFF \
            ..
        
        cmake --build . --parallel
        
        cmake --install .
        
        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