Ubuntu 20.04 flann error

hogeol·2022년 4월 11일
0

ubuntuERROR

목록 보기
3/6

When you met the error below this while cmake the 'flann' library

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

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

In your flann master directory,

touch src/cpp/empty.cpp

and change the src/cpp/CMakeLists.txt

add_library(flann_cpp SHARED "") and add_library(flann SHARED "")

to

add_library(flann_cpp SHARED empty.cpp) and add_library(flann SHARED empty.cpp)

save and cmake in your master directory

0개의 댓글