Home > Mobile >  Qt Creator build failures
Qt Creator build failures

Time:12-03

Project need to use Qt components, want to try the Qt himself how to use, the results of lots found build error, not online, a similar situation, help,
Problems show (2) :

Profile:
Running Windows Runtime device detection.
No winrtrunner. Exe found.
The T15:2020-02-14 37:58 Clang Code Model: Error: The clangbackend The executable "C: \ Program_Files \ Qt5.12.0 \ Tools \ QtCreator \ bin \ clangbackend exe" could not be started (timeout after 10000 ms).
C and C + + compiler paths differ. The C compiler may not work.
The following is a compiled output:
For project savegame 16:06:00: step...
16:06:00: configuration has not changed, skip qmake steps,
16:06:00: starting "C: \ Users \ xyy_X \ AppData \ Local \ Android \ Android - the NDK - r20b \ prebuilt \ Windows - x86_64 \ bin \ make exe" - j4

C:\Users\xyy_X\AppData\Local\Android\android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=16 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\xyy_X\AppData\Local\Android\android-ndk-r20b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -Wl,--exclude-libs,libgcc.a --sysroot=C:\Users\xyy_X\AppData\Local\Android\android-ndk-r20b/platforms/android-16/arch-arm/-Wl,-soname,libsavegame.so -Wl,-rpath=C:/Program_Files/Qt5.12.0/5.12.0/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libsavegame.so main.obj character.obj game.obj level.obj moc_character.obj -LC:/Program_Files/Qt5.12.0/5.12.0/android_armv7/lib -lQt5Core -Lc:\Utils\Android\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -LC:\Users\xyy_X\AppData\Local\Android\android-ndk-r20b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a C:\Users\xyy_X\AppData\Local\Android\android-ndk-r20b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++.so.16 -llog -lz -lm -ldl -lc
C: \ Users \ xyy_X \ AppData \ Local \ Android \ Android - the NDK - r20b/toolchains/arm - Linux - androideabi - 4.9/prebuilt/Windows - x86_64/lib/GCC/arm - Linux - androideabi/4.9 x/../../../../arm - Linux - androideabi/bin \ ld: error: always find - lc++
Clang++ : error: would the command failed with exit code 1 (use the -v to see invocation)
Make: * * */libsavegame. So the Error 1
16:06:02: process "C: \ Users \ xyy_X \ AppData \ Local \ Android \ Android - the NDK - r20b \ prebuilt \ Windows - x86_64 \ bin \ make exe" quit, exit code 2,
Error while building/deploying project savegame (kit: Android for armeabi - v7a (for Android with a Clang Qt 5.12.0 ARMv7))
The When executing step "Make"
16:06:02: Elapsed time: 00:03.

CodePudding user response:


CodePudding user response:

Feeling is not the NDK version? 12 b, 16 b, 20 b are tried, the same problem

CodePudding user response:

Resolved, the final confirmation version available 18 b, a little goal

CodePudding user response:

I also encountered similar problems,
Is it the NDK version problem?

CodePudding user response:

C and C + + compiler paths differ. The C compiler may not work. The mean C and C + + compiler path is different, the C compiler may not be able to work, you need to put new work item in your warehouse in qt installation path code, this path is the place where when installing a qt set the environment variable, pay attention to every new project have chosen path,
  •  Tags:  
  • Qt
  • Related