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?"C:\Qt\5.9.1\mingw53_32\bin\lupdate.exe" finished
Can anyone help me please?
-
Hi and welome to devnet,
From where did you start lupdate ?
-
tested with 5.9.1 and 4.3.1
works for me on macOShint: 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
my-path-to/5.9.1/clang_64/bin/lupdate
-
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:
'YOUR_PATH_TO_QT_DIR\Tools\mingw530_32\bin'
example: C:\Qt\Tools\mingw530_32\bin
-
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.
-
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.
-
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.
-
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
-
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