Open Siddhant24 opened 6 years ago
@Siddhant24 I guess it's the NDK version problem. NDK version r16 (and later) changed a lot of things. Adding some special arguments or changing it to r15 could solve the problem. I'll re-check this problem and find a way to fix it.
@solrex I also posted this issue on stackoverflow. Some suggestions in the comments. https://stackoverflow.com/questions/50777571/building-openblas-for-android
@solrex @zchrissirhcz Using NDK version r15 resolved openBLAS build problem. Now I get the following errors:
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):
/home/sid/caffe-mobile/third_party/android-cmake/android.toolchain.cmake:1146 (CMAKE_FORCE_C_COMPILER)
/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
CMakeLists.txt:12 (project)
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):
/home/sid/caffe-mobile/third_party/android-cmake/android.toolchain.cmake:1158 (CMAKE_FORCE_CXX_COMPILER)
/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
CMakeLists.txt:12 (project)
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/third_party/protobuf-3.1.0/.cbuild/CMakeFiles/CMakeOutput.log".
CMakeOutput.log has the following contents:
The target system is: Android - 1 - armv5te The host system is: Linux - 4.15.0-22-generic - x86_64
@Siddhant24 Do you have "make" installed? Try "which make".
@solrex Yes I have "make" installed. "which make" returns usr/bin/make
@Siddhant24 after hours of checking here and there, i finally found the solution to the problem, downgrade/upgrade cmake to 3.7.2
I get the following errors when trying to run not found. I followed the procedure mentioned in README. I have all the dependencies installed.
$NDK_HOME is set correctly:
./tools/build_android.sh
The main error seems to be