Open quanpm4900 opened 3 years ago
I was not able to reproduce the issue.
The only thing I can think of that would cause the error is that Windows has problems with long paths.
You may try to shorten the name of the shadow build directory, maybe to something like C:\build-tasklist
.
Also, you can try to set, in the Build settings
tab, the Separate debug info
option to Disable
.
In this way the command that made the build fail will not be executed.
I updated the build files to support the latest Qt versions because the source code failed to compile with Qt 5.15.2.
@stemoretti thank you very much, I rebuild successfully with your update, but in tasklist.pro i must change line 83 to command = $$replace(LRELEASE,\',) $$tsfile
Initializing deployment to Android device/simulator Deploying to emulator-5554 15:51:01: Running steps for project tasklist... 15:51:01: Starting: "C:\Qt\5.15.2\android\bin\qmake.exe" F:\DOWNLOAD\tasklist-master\tasklist.pro -spec android-clang "CONFIG+=qml_debug" "CONFIG+=qtquickcompiler" "CONFIG+=force_debug_info" "CONFIG+=separate_debug_info" ANDROID_ABIS="x86" Updating 'F:/DOWNLOAD/tasklist-master/translations/tasklist_it.qm'... Generated 70 translation(s) (70 finished and 0 unfinished) Ignored 41 untranslated source text(s) Updating 'F:/DOWNLOAD/tasklist-master/translations/tasklist_it.qm'... Generated 70 translation(s) (70 finished and 0 unfinished) Ignored 41 untranslated source text(s) 15:51:02: The process "C:\Qt\5.15.2\android\bin\qmake.exe" exited normally. 15:51:02: Starting: "D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -f F:/DOWNLOAD/tasklist-master/build-tasklist-Android_Qt_5_15_2_Clang_Multi_Abi-Release/Makefile qmake_all make: Nothing to be done for 'qmake_all'. 15:51:02: The process "D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally. 15:51:02: Starting: "D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -j4 'C:\Qt\5.15.2\android\bin\rcc.exe' -name qml_qmlcache qml_qmlcache.qrc -o x86/qrc_qml_qmlcache.cpp 'C:\Qt\5.15.2\android\bin\rcc.exe' -name translations ../translations.qrc -o x86/qrc_translations.cpp D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -target i686-linux-android21 -mstackrealign -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -O2 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DAVAILABLE_TRANSLATIONS=\"'it'\" -DQT_QML_DEBUG -DQT_NO_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_ANDROIDEXTRAS_LIB -DQT_CORE_LIB -I../../tasklist-master -I. -IC:/Qt/5.15.2/android/include -IC:/Qt/5.15.2/android/include/QtQuickControls2 -IC:/Qt/5.15.2/android/include/QtQuick -IC:/Qt/5.15.2/android/include/QtGui -IC:/Qt/5.15.2/android/include/QtQmlModels -IC:/Qt/5.15.2/android/include/QtQml -IC:/Qt/5.15.2/android/include/QtNetwork -IC:/Qt/5.15.2/android/include/QtAndroidExtras -IC:/Qt/5.15.2/android/include/QtCore -Ix86 -IC:/Qt/5.15.2/android/mkspecs/android-clang -o x86/qrc_qml_qmlcache.obj x86/qrc_qml_qmlcache.cpp D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -target i686-linux-android21 -mstackrealign -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -O2 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DAVAILABLE_TRANSLATIONS=\"'it'\" -DQT_QML_DEBUG -DQT_NO_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_ANDROIDEXTRAS_LIB -DQT_CORE_LIB -I../../tasklist-master -I. -IC:/Qt/5.15.2/android/include -IC:/Qt/5.15.2/android/include/QtQuickControls2 -IC:/Qt/5.15.2/android/include/QtQuick -IC:/Qt/5.15.2/android/include/QtGui -IC:/Qt/5.15.2/android/include/QtQmlModels -IC:/Qt/5.15.2/android/include/QtQml -IC:/Qt/5.15.2/android/include/QtNetwork -IC:/Qt/5.15.2/android/include/QtAndroidExtras -IC:/Qt/5.15.2/android/include/QtCore -Ix86 -IC:/Qt/5.15.2/android/mkspecs/android-clang -o x86/qrc_translations.obj x86/qrc_translations.cpp D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target i686-linux-android21 -mstackrealign -fno-limit-debug-info -Wl,-soname,libtasklist_x86.so -Wl,-rpath-link=C:/Qt/5.15.2/android/lib -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libtasklist_x86.so @x86/object_script..X86 C:/Qt/5.15.2/android/lib/libQt5QuickControls2_x86.so C:/Qt/5.15.2/android/lib/libQt5Quick_x86.so C:/Qt/5.15.2/android/lib/libQt5Gui_x86.so C:/Qt/5.15.2/android/lib/libQt5QmlModels_x86.so C:/Qt/5.15.2/android/lib/libQt5Qml_x86.so C:/Qt/5.15.2/android/lib/libQt5Network_x86.so C:/Qt/5.15.2/android/lib/libQt5AndroidExtras_x86.so C:/Qt/5.15.2/android/lib/libQt5Core_x86.so -lGLESv2 -llog -lz -lm -ldl -lc D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy --only-keep-debug libtasklist_x86.so libtasklist_x86.so.debug && D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy --strip-debug libtasklist_x86.so && D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy --add-gnu-debuglink=libtasklist_x86.so.debug libtasklist_x86.so /usr/bin/sh: D:AndroidInstalledAndroidSDKndk21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy: No such file or directory make: *** [Makefile:194: libtasklist_x86.so] Error 127 15:51:03: The process "D:\AndroidInstalled\AndroidSDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited with code 2. Error while building/deploying project tasklist (kit: Android Qt 5.15.2 Clang Multi-Abi) When executing step "Make" 15:51:03: Elapsed time: 00:02.
I see this path /usr/bin/sh: D:AndroidInstalledAndroidSDKndk21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy is invalid because true path is D:/AndroidInstalled/AndroidSDK/ndk21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy