yuanxiaodon
yuanxiaodon
2018-11-10 05:55

android studio NDK cmake创建的demo例子无法正常运行错误如下,如何解决该问题 求助求助

5
  • android-studio
  • ndk
  • cmake
  • command

Caused by: org.gradle.internal.UncheckedException: Build command failed.
Error while executing process E:\androidAdt\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build F:\workspace\AutoPayStation\app.externalNativeBuild\cmake\debug\armeabi-v7a --target native-lib}
[1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o
FAILED: E:\androidAdt\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=E:/androidAdt/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=E:/androidAdt/android-ndk-r16b/sysroot -Dnative_lib_EXPORTS -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem E:/androidAdt/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=19 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -frtti -fexceptions -std=c++11 -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\src\main\cpp\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -c F:\workspace\AutoPayStation\app\src\main\cpp\native-lib.cpp,,

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换