Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cannot open QT linguist on Linux (Ubuntu)
kenneth1 last edited by
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:
In QTCreator, click Tools\External\Linguist\Update Translations (lupdate)
Open linguist and enter the foreign text.
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?
What happens when you run
/opt/Qt/5.12.2/gcc_64/bin/linguistfrom 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
.profilefile 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.
tanius last edited by
Under Ubuntu Linux, the simplest is to install
linguistfrom the Ubuntu package repositories:
sudo apt install qttools5-dev-tools
For reference, in Qt4 the equivalent command was:
sudo apt install qt4-dev-tools