Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot open QT linguist on Linux (Ubuntu)
Forum Updated to NodeBB v4.3 + New Features

Cannot open QT linguist on Linux (Ubuntu)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 6.9k Views 1 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.
  • K Offline
    K Offline
    kenneth1
    wrote on last edited by
    #1

    I have installed Qt Creator 4.9.0, Based on Qt 5.12.2 on Linux (Ubuntu)

    and I want to run linguist

    I successfully used Linguist on Windows where I performed these three steps:

    1. In QTCreator, click Tools\External\Linguist\Update Translations (lupdate)

    2. Open linguist and enter the foreign text.

    3. In QTCreator, click Tools\External\Linguist\Release Translations (lrelease)

    On Linux, step 2 does not work because the file /opt/Qt/5.12.2/gcc_64/bin\linguist will not open and so I cannot enter foreign text.

    File properties for linguist show

        type = executable (application/x-executable)
    
        execute = allow executing file as program
    

    How can this file be run?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What happens when you run /opt/Qt/5.12.2/gcc_64/bin/linguist from terminal? Any error messages?

      If you get errors about missing Qt libraries, then you need to run this:

      export LD_LIBRARY_PATH= /opt/Qt/5.12.2/gcc_64/lib
       /opt/Qt/5.12.2/gcc_64/bin/linguist
      

      You can put that export line in your .profile file so it will always be defined. Also, don't install Qt to /opt if you don't have to. Installing into user directory is fine.

      Alternatively: install linguist from your Linux distribution. It's boths forward- and backward-compatible so it does not matter which Linguist version you run.

      (Z(:^

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tanius
        wrote on last edited by
        #3

        Under Ubuntu Linux, the simplest is to install linguist from the Ubuntu package repositories:

        sudo apt install qttools5-dev-tools
        

        For reference, in Qt4 the equivalent command was:

        sudo apt install qt4-dev-tools
        
        1 Reply Last reply
        2

        • Login

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