使用Cmake构建FLANN失败

时间:2018-06-08 15:11:22

标签: cmake flann sles

我正在尝试构建FLANN库,以便之后构建PCL库。

使用CMake编译源代码时出错。 我想我错过了一些非常基本的东西。由于我找不到我的系统的编译库,我必须自己构建它。

使用命令

~/flann-1.8.4-src/build> cmake ..

我得到了

CMake Error at src/cpp/CMakeLists.txt:86 (add_library):
No SOURCES given to target: flann
CMake Error at src/cpp/CMakeLists.txt:32 (add_library):
No SOURCES given to target: flann_cpp

SLES11操作系统上的flann 1.8.4和1.9.1会发生这种情况。

任何提示?

这里是cmake所说的完整转录:

-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found     version "")
CMake Warning at CMakeLists.txt:76 (message):
  hdf5 library not found, some tests will not be run


-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
CMake Warning at CMakeLists.txt:115 (message):
  gtest library not found, some tests will not be run


-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
CMake Warning at src/matlab/CMakeLists.txt:79 (message):
  Cannot find MATLAB or Octave instalation.  Make sure that the 'bin'
  directory from the MATLAB instalation or that mkoctfile is in PATH


hdf5 library not found, not compiling flann_example.cpp
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- Install prefix: /usr/local
-- Build type: RelWithDebInfo
-- Building C bindings: ON
-- Building python bindings: ON
-- Building matlab bindings: ON
-- Building CUDA library: OFF
-- Using OpenMP support: ON
-- Using MPI support: OFF
-- Configuring done
CMake Error at src/cpp/CMakeLists.txt:86 (add_library):
  No SOURCES given to target: flann


CMake Error at src/cpp/CMakeLists.txt:32 (add_library):
  No SOURCES given to target: flann_cpp
-- Build files have been written to: ~/flann-1.8.4-src/build

0 个答案:

没有答案