norlab-ulaval / libnabo

A fast K Nearest Neighbor library for low-dimensional spaces
http://norlab-ulaval.github.io/libnabo/
BSD 3-Clause "New" or "Revised" License
451 stars 145 forks source link

Generate erros with cmake 3.22.5, VS2019 and boost 1.80, eigen 3.4.0 #124

Open fengweichangzi opened 2 years ago

fengweichangzi commented 2 years ago

I tried cmake 3.22.5 with VS2019 and got the following info when doing cmake configurate

OpenCL disabled, not looking for it
ANN not found, disabling it in benchmarks
FLANN not found, disabling it in benchmarks
Python version from interpreter is 3.9.9
Python libs and executable found, looking for numpy and boost::python
CMake Warning at D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  python/CMakeLists.txt:46 (find_package)

numpy and boost::python found, generating python bindings
Configuring done

Looks like everything OK, but when I tried to generate, I got the errors as follows:


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   D:/libpointmatcher/buildlibnabo107/libnaboConfig.cmake

Did anyone have the same errors? Could someone give some advice? I have no idea

fengweichangzi commented 2 years ago

Well, it is interesting. When I switched the source files to master source, those mentioned errors disappeared.

fengweichangzi commented 2 years ago

When I tried to compile the project, I got some errors from pynabo modeule. So, I reduced the cmake configiration this time, then everything is OK. 图片