将android项目与C+;同步时出错+;支持 我刚用Android Studio新项目向导创建了一个C++支持的项目。同步过程中,Gradle失败并打印此消息: [1/2] Building C object CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o [2/2] Linking C executable cmTC_107a1 FAILED: cmd.exe /C "cd . && D:\applications\ndk\android-ndk-r12b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe -target armv5te-none-linux-androideabi -gcc-toolchain D:/applications/ndk/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/applications/ndk/android-ndk-r12b/platforms/android-24/arch-arm -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o -o cmTC_107a1 -lm && cd ." Error:error: no such file or directory: 'CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o' ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt

将android项目与C+;同步时出错+;支持 我刚用Android Studio新项目向导创建了一个C++支持的项目。同步过程中,Gradle失败并打印此消息: [1/2] Building C object CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o [2/2] Linking C executable cmTC_107a1 FAILED: cmd.exe /C "cd . && D:\applications\ndk\android-ndk-r12b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe -target armv5te-none-linux-androideabi -gcc-toolchain D:/applications/ndk/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/applications/ndk/android-ndk-r12b/platforms/android-24/arch-arm -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o -o cmTC_107a1 -lm && cd ." Error:error: no such file or directory: 'CMakeFiles/cmTC_107a1.dir/testCCompiler.c.o' ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt,android,android-studio,cmake,Android,Android Studio,Cmake,似乎该进程在处理CMakeTestCCompiler.cmake期间被中断。 有人知道“cmakfiles/cmTC_107a1.dir/testCCompiler.c.o”的用法吗 我的cmake是最新版本3.6.3155560。嗨,潘!问题解决了吗?还没有解决。我很久以前就向谷歌报告了一个问题,也没有进展。嗨,潘!问题解决了吗?还没有解决。我很久以前就向谷歌报告了一个问题,也没有进展。

似乎该进程在处理CMakeTestCCompiler.cmake期间被中断。 有人知道“cmakfiles/cmTC_107a1.dir/testCCompiler.c.o”的用法吗


我的cmake是最新版本3.6.3155560。

嗨,潘!问题解决了吗?还没有解决。我很久以前就向谷歌报告了一个问题,也没有进展。嗨,潘!问题解决了吗?还没有解决。我很久以前就向谷歌报告了一个问题,也没有进展。