norlab-ulaval / libpointmatcher

An Iterative Closest Point (ICP) library for 2D and 3D mapping in Robotics
BSD 3-Clause "New" or "Revised" License
1.58k stars 542 forks source link

Working in Debug mode #455

Closed danielaDESM closed 3 years ago

danielaDESM commented 3 years ago

Hi!

I have installed successfully the library. I am creating a new project and I am running some of the sample codes that you have already available. Everything works fine, but only when I build my project in Release mode, when I change to Debug mode I get the following errors: image Is it possible to work in Debug mode and do you know how?

pomerlef commented 3 years ago

Are you on Windows? I'm not familiar with building on it, but it looks like there is a mismatch with something else that was not build in Debug. Maybe you need to build libnabo in debug too. It's not the case on Ubuntu.

Also, I tend to use more RelWithDebInfo.

danielaDESM commented 3 years ago

Hi, I am in Windows. I Build libnabo in Debug and in Release without issues. image

I was expecting to be able to do the same with libpointmatcher. Release is not a problem. But when I try Debug, I have the following error:

libpointmatcher_debug

But, I am not even sure if the error I have in my new project, where I use libpointmatcher has something to do with building libpointmatcher in Release and Debug.

danielaDESM commented 3 years ago

Thanks @pomerlef ! So the Debug version still does not work, but I tried adding as well RelWithDebInfo in the build of libnabo and then in the build of libpointmatcher. They built successfully and now I am able to debug in my own project.