Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.1
-
None
-
macOS 10.15 and Qt 5.13.1
Description
When using config lrelease embed_translations, and split .ts file name with dot(.), qmake will only recognize the first part of the file name. For example, here is my project file:
CONFIG += lrelease embed_translations TRANSLATIONS += example.en_US.ts example.zh_CN.ts
When build the project, I've got error:
error: No rule to make target `.qm/example.qm', needed by `qrc_qmake_qmake_qm_files.cpp'. Stop.
Because the ts filename is actually
example.xxxxx
not
example
Upload project files to attachment. Compile log:
16:16:39: Running steps for project example...
16:16:39: Starting: "/usr/bin/make" clean -j8
rm -f .qm/example.en_US.qm
rm -f qrc_qmake_qmake_qm_files.cpp
rm -f moc_predefs.h
rm -f main.o qrc_qmake_qmake_qm_files.o
rm -f *~ core *.core
16:16:40: The process "/usr/bin/make" exited normally.
16:16:40: Starting: "/opt/Qt/5.13.1/clang_64/bin/qmake" /Users/lianghanzhong/workplace/example/example.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug
Project WARNING: Qt has only been tested with version 10.14 of the platform SDK, you're using 10.15.
Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
Project WARNING: the 10.15 SDK you are opting in to new features that Qt has not been prepared for.
Project WARNING: Please downgrade the SDK you use to build your app to version 10.14, or configure
Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
16:16:40: The process "/opt/Qt/5.13.1/clang_64/bin/qmake" exited normally.
16:16:40: Starting: "/usr/bin/make" -f /Users/lianghanzhong/workplace/build-example-Desktop_Qt_5_13_1_clang_64bit-Debug/Makefile qmake_all
make: Nothing to be done for `qmake_all'.
16:16:40: The process "/usr/bin/make" exited normally.
16:16:40: Starting: "/usr/bin/make" -j8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_CORE_LIB -I../example -I. -I/opt/Qt/5.13.1/clang_64/lib/QtCore.framework/Headers -I. -I/opt/Qt/5.13.1/clang_64/mkspecs/macx-clang -F/opt/Qt/5.13.1/clang_64/lib -o main.o ../example/main.cpp
make: *** No rule to make target `.qm/example.qm', needed by `qrc_qmake_qmake_qm_files.cpp'. Stop.
make: *** Waiting for unfinished jobs....
16:16:41: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project example (kit: Desktop Qt 5.13.1 clang 64bit)
When executing step "Make"
16:16:41: Elapsed time: 00:02.
Attachments
Issue Links
- relates to
-
QTBUG-85834 qmake run fails when using a certain combination of embed_translations and qtquickcompiler when doing a release build for iOS
-
- Reported
-
For Gerrit Dashboard: QTBUG-79016 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
369983,2 | Fix .qm file name calculation in lrelease.prf | dev | qt/qtbase | Status: MERGED | +2 | 0 |
370363,2 | Fix .qm file name calculation in lrelease.prf | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
370366,2 | Fix .qm file name calculation in lrelease.prf | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |