I’m getting this error when running the cmake_android.bat file. I’m stumped here, what other env-var am I missing, or is there something else? Has anyone have had recent success making the project for armeabi-v7a 32bit android-19? Any help would be greatly appreciated, thanks.
– Performing Test HAVE_NATIVE_COMPILER - Failed
CMake Error at CMake/Modules/CheckCompilerToolchain.cmake:162 (message):
Could not find native compiler toolchain. This is usually caused by wrong
PATH env-var value.CMake Error at C:/Program
Files/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Play/Urho3D/droid/generated/CMakeFiles/CMakeTmp
I have followed the documentation on both of theses links;
Added these to my environment variable PATH
C:\Android\sdk\platform-tools;
C:\Android\sdk\tools;
C:\Android\sdk\tools\bin;
C:\Android\sdk\ndk-bundle;
C:\Android\sdk\ndk-bundle\build;
C:\Android\sdk\ndk-bundle\prebuilt\windows\bin;
C:\Android\sdk\ndk-bundle\prebuilt\windows-x86_64\bin;
C:\Android\sdk\ndk-bundle\toolchains;
C:\Android\sdk\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64;
And run the cmake_android.bat file with theses defines;
-DANDROID=1 -DANDROID_NATIVE_API_LEVEL=android-19 -DANDROID_ABI=armeabi-v7a -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang