Error 127 while debugging qgroundcontrol code.
-
Hi,
Do you add something code like below in pro file?exists (./.git) {
GIT_BRANCH = $$system(git rev-parse --abbrev-ref HEAD)
GIT_TIME = $$system(git show --oneline --format="%ci%H" -s HEAD)
APP_VERSION = "$${GIT_BRANCH}: $${GIT_TIME}"
} else {
APP_VERSION = None
}DEFINES += APP_VERSION="\"$$APP_VERSION\""
I found that remove these code could compile successful by Android Qt Clang compiler.
-
@RamananAR @jsulm @Burak-Karslioglu Same issue here, any idea?
-
@Burak-Karslioglu @Daniel-Rush @jsulm @RamananAR @vcd123
I am also facing same issue, I am attempting to develop an application for both the Windows and Android platforms. The Windows build is functioning correctly; however, when I attempt to build it for Android, I encounter the following error:"/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory"
I have use following dependencies
SDK: 12.0
NDK: 23.1.7779620 (r23b)
JDK: 21
QGCS: 4.2.6 / 4.2.8
Qt: 5.15.2
Configuration: Android Multi ABI
Compilers: Android Clang (C, arm, NDK 23.1.7779620) and Android Clang (C++, arm, NDK 23.1.7779620)
Platform Linker Flag: -target arm-linux-androideabi
Build Device: Desktop
ABIs: armeabi-v7a08:18:51: Starting: “C:\Users\Chris.L\AppData\Local\Android\Sdk\ndk\23.1.7779620\prebuilt\windows-x86_64\bin\make.exe” -j4
rcc D:/Projects/AewaGCS4.2.8/qgroundcontrol/qgroundcontrol.qrc
/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
rcc D:/Projects/AewaGCS4.2.8/qgroundcontrol/qgcresources.qrc
make: *** [Makefile:2413: armeabi-v7a/qrc_qgroundcontrol.obj] Error 127
make: *** Waiting for unfinished jobs…
/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:2504: armeabi-v7a/qrc_qgcresources.obj] Error 127
08:18:52: The process “C:\Users\Chris.L\AppData\Local\Android\Sdk\ndk\23.1.7779620\prebuilt\windows-x86_64\bin\make.exe” exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
When executing step “Make”
08:18:52: Elapsed time: 00:13. -
- You did not mention your target version of Android(11,12,13 or 14).
- Are you sure armeabi-v7a is right choice for your Android build.
- if you search this forum, you will know JDK version 21 might be too high.
-
@JoeCFD Thank you for reply
I have modified the configuration, and I am now using the following dependencies. However, I am still encountering the same error.target version of Android : 10.0
SDK: 10.0
NDK: 23.1.7779620
JDK: jdk-11.0.22.7-hotspot
cmdline-tools : 10.0
QGCS: 4.2.6 / 4.2.8
Qt: 5.15.2
Configuration: Android Multi ABI
Compilers: Android Clang (C, arm, NDK 23.1.7779620) and Android Clang (C++, arm, NDK 23.1.7779620)
Platform Linker Flag: -target arm-linux-androideabi
Build Device: Desktop
ABIs: arm64-v8a -
@InsideFPV said in Error 127 while debugging qgroundcontrol code.:
i am getting this error please any have solution please ping me
Please first post the actual error. What you posted is not that (look above that line for the error).
-
@Chris_Adam said in Error 127 while debugging qgroundcontrol code.:
/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
The path to the compiler here is wrong. Please show your compiler configuration.
-
@InsideFPV said in Error 127 while debugging qgroundcontrol code.:
this is actual error
No, it's not. Go to "Compile Output" tab to see the actual error.
Again: "/usr/bin/sh: line 1: C:UsersChris.LAppDataLocalAndroidSdkndk23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory" - this path is wrong.
I suggested you check the compiler configuration - did you do that? -
@jsulm /usr/bin/sh: line 1: C:UsersSoftwareAppDataLocalAndroidSdkndk21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++: No such file or directory
make: *** [Makefile:4607: arm64-v8a/qrc_qgroundcontrol_qmlcache.obj] Error 127
12:06:05: The process "C:\Users\Software\AppData\Local\Android\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
12:06:05: Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
12:06:05: When executing step "Make"
i am not understand about compiler configuration please more explain about this
-
@InsideFPV said in Error 127 while debugging qgroundcontrol code.:
i am not understand about compiler configuration please more explain about this
Simply click on the Compiler tab in Kit configuration page in settings (next to "Qt Versions"), select your compiler for Android and check the path to the compiler there...
As you can see from the error message the compiler cannot be found and if you look at the used path it is clearly wrong (slashes are missing).