Linguist (lupdate Project Error)
Hi, I have a problem with Qt Creator and Linguist update. When I try to run lupdate then the following message displayed:
Starting external tool "C:\Qt\5.9.1\mingw53_32\bin\lupdate.exe" C:/Users/devfx/Desktop/Tests/ekkesBTLEexample-master/bt_le_x.pro
WARNING: Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
Can anyone help me please?
Hi and welome to devnet,
From where did you start lupdate ?
Hello SGaist, I started lupdate from Qt Creator menubar->Tools->External->Linguist->Update Translations (lupdate).
It seems there is a bug in Qt Creator 4.3.1. With Qt 5.9 and Qt Creator 4.3.0 lupdate works successfully
tested with 5.9.1 and 4.3.1
works for me on macOS
hint: as described here I'm always changing the path to the executable and setting explicitely, because I had some issues with older QtCreator Versions and Android with lupdate / lrelease using the default values from Tools external
I set the path explicitely as you describe, but the same error in the general message box is displayed.
On another maschine with Qt 5.9 an Creator 4.3.0 no problems.
deleted109 last edited by
Have you set the enviroment variable for mingw compiler? Try following:
- Right click on my computer
- Advanced system settings
- Environment variables
- in system variables, add following to the end of line in Path:
@Simon88 Thank you, this solve the problem. :-)
Except you should only do that for the command line prompt you are currently using. Otherwise you are going to pollute your system PATH environment variable.
@SGaist Where should I setup this?
With Qt Creator 4.3.0 and Qt 5.9.0 , I set nothing and it works. When I set nothing with Qt Creator 4.3.1 and 5.9.1, then displayed the error, why?
In the command prompt you are using.
Because Qt Creator modifies locally the PATH environment variable so you'll be using the version of Qt you choose when selecting the kit to build your application.
Michael Scopchanov last edited by Michael Scopchanov
Please, check out the solution I have provided here: https://stackoverflow.com/questions/44852340/how-to-make-qtlinguist-shipped-with-qt-5-9-1-work
lqsa last edited by
After try these solutions, it doesn't work for me. However I've changed the project from Android to Desktop and it works, so it's something related with the type project.
I've opened an error bug: https://bugreports.qt.io/browse/QTCREATORBUG-18726