在Linux 中编译程序时,后CMAKE_MAKE_PROGRAM is not set.
我从github 下载了 pcl-for-android, 执行 ./pcl-build-for-android.sh 时报错,如下:
Compiling with 4 jobs ...
###########################################
### FLANN cross-compiling start... ###
###########################################
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/xhb/work/pcl-for-android/android.toolchain.cmake:1137 (CMAKE_FORCE_C_COMPILER)
CMakeFiles/3.10.2/CMakeSystem.cmake:6 (include)
CMakeLists.txt:7 (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/xhb/work/pcl-for-android/android.toolchain.cmake:1149 (CMAKE_FORCE_CXX_COMPILER)
CMakeFiles/3.10.2/CMakeSystem.cmake:6 (include)
CMakeLists.txt:7 (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/xhb/work/pcl-for-android/build/flann/CMakeFiles/CMakeOutput.log".
make: *** 没有指明目标并且找不到 makefile。 停止。
FLANN cross-compiling finished!
mv: 无法获取'/home/xhb/work/pcl-for-android/build/flann/lib/*' 的文件状态(stat): 没有那个文件或目录
我百度,看到有的说是没有make ,我查了下
make --version
GNU Make 4.1
为 x86_64-pc-linux-gnu 编译
Copyright (C) 1988-2014 Free Software Foundation, Inc.
搞了两天,也没执行好这种,求指点