在编译Flann是显示以下错误
CMake Eroor at src/cpp/CMakeLists.txt:86 (add_library):
No SOURCES given to target: flann
CMake Eroor at src/cpp/CMakeLists.txt:32 (add_library):
No SOURCES given to target: flann_cpp
解决办法:
touch src/cpp/empty.cpp
即新建一个empty.cpp文件
然后修改src/cpp/CMakeList.txt文件
第32行:将add_library(flann_cpp SHARED "") 修改为add_library(flann_cpp SHARED empty.cpp)
第86行:将add_library(flann SHARED "") 修改为 add_library(flann SHARED empty.cpp)