Android studio2.2.3 创建C++工程无法编译通过
ndk吧
全部回复
仅看楼主
level 1
yulin052 楼主
2016年12月26日 07点12分 1
level 1
yulin052 楼主
External Native Build Issues
Build command failed.
Error while executing 'D:\sdk\cmake\3.6.3155560\bin\cmake.exe' with arguments {-HE:\andriodStudioworkspace\MyJniHello\app -BE:\andriodStudioworkspace\MyJniHello\app\.externalNativeBuild\cmake\debug\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\andriodStudioworkspace\MyJniHello\app\build\intermediates\cmake\debug\obj\armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=D:\sdk\cmake\3.6.3155560\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=19 -DCMAKE_CXX_FLAGS=}
-- Configuring incomplete, errors occurred!
See also "E:/andriodStudioworkspace/MyJniHello/app/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/CMakeOutput.log".
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:
D:/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:
D:/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Error:executing external native build for cmake E:\andriodStudioworkspace\MyJniHello\app\CMakeLists.txt
Build command failed.
Error while executing 'D:\sdk\cmake\3.6.3155560\bin\cmake.exe' with arguments {-HE:\andriodStudioworkspace\MyJniHello\app -BE:\andriodStudioworkspace\MyJniHello\app\.externalNativeBuild\cmake\release\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\andriodStudioworkspace\MyJniHello\app\build\intermediates\cmake\release\obj\armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=D:\sdk\cmake\3.6.3155560\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=19 -DCMAKE_CXX_FLAGS=}
-- Configuring incomplete, errors occurred!
See also "E:/andriodStudioworkspace/MyJniHello/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeOutput.log".
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:
D:/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:
D:/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Error:executing external native build for cmake E:\andriodStudioworkspace\MyJniHello\app\CMakeLists.txt
2016年12月26日 07点12分 2
level 1
yulin052 楼主
创建新工程 import C++无法编译通过,不知道是啥情况
2016年12月26日 07点12分 3
level 1
你解决了吗 我有遇见了这个问题
2016年12月30日 08点12分 4
level 5
看着像环境变量的问题
2016年12月30日 12点12分 5
level 1
楼主大大,问题解决了吗?我遇到的跟你一毛一样,求赐教
2017年03月31日 07点03分 6
level 1
我这里有一些关于NDK的视频资料 和大家交流心得 留下你们邮箱 资料甩给你们嘻嘻
2017年06月07日 08点06分 9
2017年06月20日 02点06分
[email protected] 给我来一份 谢谢
2017年07月25日 02点07分
[email protected]求一份,谢谢了
2017年07月27日 08点07分
2017年08月01日 07点08分
level 1
如何解决啊
2017年08月01日 07点08分 10
level 1
[email protected]
谢谢大大
2017年09月02日 11点09分 11
level 1
yulin052 楼主
其实这是NDK包版本的问题。下载新的NDK包,把AS的NDK路径指向自己的下载的NDK路径就可以编译成功(很久不看贴吧,忘记来给出解决方法了)
2017年09月04日 03点09分 12
大佬,我没看懂这句话什么意思
2018年04月14日 19点04分
1