Open wanghaiqiangk opened 6 years ago
Did you have any progress on this issue?
@marijnfs Nah. I used older version which would work fine. You may try to check whether the liblz4.so is properly linked or modify CMakeLists.txt to manually link the library. I met other same problems and solved by this method. So probably you can give a try.
The trick for me seems to have been to also link against flann_s
. I did this because if you look in src/CMakeLists.txt
, the lz4 stuff is only included in C_SOURCES
, which on Windows is only built into flann_s
.
@kheaactua Could you post your exact changes, please? :) I'm having this exact issue while cross-compiling. Did you change FLANN's CMakeLists.txt?
Additionally, I found out this does happens with the examples so just compile without the BUILD_EXAMPLES option.
+1
The problem is that the LZ4_LIBRARIES are never found. I created a patch to fix this but you would have to insert the location of your lz4 lib directory. The patched file is flann/src/cpp/CMakeLists.txt.
+message(STATUS "Finding LZ4 libraries")
+find_library(LZ4_LIBRARIES NAMES liblz4.so HINTS "lz4/lib
I'm using the latest flann to do knnSearch. So we have the codes
And I also use CMakeLists.txt to build the project. Now when I try to
make
, it gives errors aboutundefined reference to LZ4 stuffs
As what I know, it seems it can't find
liblz4.so
. However, it's located under/usr/lib/x86_64-linux-gnu/liblz4.so
. So how to solve the problem? Currently, I can only use v1.8.4 to get around since it doesn't use lz4.