Error in "install_target" when cross compiling Qt 5.15.14 for Android on Windows 11
-
I am cross compiling Qt 5.15.14 for Android (arm64 r21d API-29 clang) on Windows 11.
The commit Id is e6c2b7b2641e6984b59b73df99684c14255710c3.I am seeing an error during install phase (install_target in Makefile) on the following two libs:
libqml_QtQuick_Controls_Styles_Android_qtquickcontrolsandroidstyleplugin_arm64-v8a.so
libqml_QtQuick_Controls.2_Universal_qtquickcontrols2universalstyleplugin-v8a.soTheir Makefile are under:
qt-android-5.15.14\build\qt\android29-r21d-arm64-v8a-clang\qtquickcontrols2\src\imports\controls\universal\Makefile
qt-android-5.15.14\build\qt\android29-r21d-arm64-v8a-clang\qtquickcontrols\src\controls\Styles\Android\MakefileTake the 1st one as the example, in line 4765, it reads:
$(QINSTALL_PROGRAM) ../../../../qml/QtQuick/Controls.2/Universal/$(TARGET) $(INSTALL_ROOT:@msyshack@%=%)/usr/qml/QtQuick/Controls.2/Universal/$(TARGET)The error message is:
Cannot open reference file ../../../../qml/QtQuick/Controls.2/Universal/libqml_QtQuick_Controls.2_Universal_qtquickcontrols2universalstyleplugin_arm64-v8a.so: The system cannot find the path specified.Makefile:4763: recipe for target 'install_target' failedThe 2nd Makefile has the same problem.
The problem might be about the relative path. If the path is relative to the Makefile itself, then the path is correct. I can see the library here.
I can complete the install phase if I change the path to an absolute path, but certainly I don't want to modify the autogened Makefiles.Are Qt team aware of this bug? Is there bugfix for this?