taka-no-me / android-cmake

CMake toolchain file and other scripts for the Android NDK
1.22k stars 438 forks source link

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. #107

Closed Siddhant24 closed 6 years ago

Siddhant24 commented 6 years ago

I am trying to build using android cmake. I am following this https://github.com/solrex/caffe-mobile#for-android. I am getting this error. Please help.


#####################
 Building OpenBLAS for Android
#####################

mkdir: cannot create directory ‘../build_armeabi’: File exists
CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  third_party/android-cmake/android.toolchain.cmake:1146 (CMAKE_FORCE_C_COMPILER)
  /usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt

CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  third_party/android-cmake/android.toolchain.cmake:1158 (CMAKE_FORCE_CXX_COMPILER)
  /usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "/home/sid/caffe-mobile/build_armeabi/CMakeFiles/CMakeOutput.log".
Siddhant24 commented 6 years ago

@taka-no-me any help?

taka-no-me commented 6 years ago

@Siddhant24 I'm not on this anymore. Feel free no continue if you like it.

kkristof commented 6 years ago

Hi, using CMake 3.5 as a workaround has solved this issue for me. You can simply download the prebuilt package and set it in your path. The CMake 3.10, which is default in Ubuntu 18.04, doesn't seem to be compatible with android-cmake.