在Linux 中编译程序时,后CMAKE_MAKE_PROGRAM is not set.

阿许2014 2019-06-30 11:03:21
我从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.

搞了两天,也没执行好这种,求指点
...全文
4023 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧