Cannot open QT linguist on Linux (Ubuntu)
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.