Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
5.0.1
-
None
-
Tested with Qt 5.0.1 in the following configurations:
* Pre-compiled bundle for Windows 32-bit (MinGW 4.7)
* Pre-compiled bundle for Windows 32-bit (VS 2010), Windows SDK 7.1
* Built from sources using Windows SDK 7.1 x64 configuration
* Built from sources using Windows SDK 7.1 x86 configuration statically (-static option in configure, plus -MD(d) compiler option replaced with -MT(d))Tested with Qt 5.0.1 in the following configurations: * Pre-compiled bundle for Windows 32-bit (MinGW 4.7) * Pre-compiled bundle for Windows 32-bit (VS 2010), Windows SDK 7.1 * Built from sources using Windows SDK 7.1 x64 configuration * Built from sources using Windows SDK 7.1 x86 configuration statically (-static option in configure, plus -MD(d) compiler option replaced with -MT(d))
-
05dab891649b76fe7351d51950edf3caba2bfece
Description
Whenever I run
lrelease C:\Temp\MyProject\MyProject.pro
for building the project's translations, I get the following error:
The directory name is invalid.
Could not find qmake configuration file default.
lrelease error: cannot process project file 'C:\Temp\MyProject\MyProject.pro'.
lupdate for the same project works fine and generates/updates the TS files mentioned in the TRANSLATIONS variable.
Steps to reproduce:
- Start Qt Creator, File -> New File or Project -> Qt GUI Application, name "MyProject", leave other options default.
- Open MyProject.pro file and append the following line:
TRANSLATIONS += ru_RU.ts
- Run Tools -> External -> Linguist -> Update Translations (lupdate). The ru_RU.ts file appears in the project directory.
- Run Tools -> External -> Linguist -> Release Translations (lrelease). The tool outputs the error message and exits. QM file is not created.
Qt Creator is not required, this can also be reproduced from command line.