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

Long build time #477

Closed maximecharriere closed 2 years ago

maximecharriere commented 2 years ago

Hey ! I am directly modifying the pointmatcher library code to add an OutlierFilter and an ErrorMinimizer. However when I want to build pointmatcher to test my code, it takes up to 5min. For the moment I'm working on a Visual Studio solution of libpointmatcher generated with cmake and I build the INSTALL project every time I want to test a modification (it's like running the make install command).

What is your process when working on the library? Does it take you that long to build? Can I change anything in my way of compiling things so that I can build faster when I make a change?

maximecharriere commented 2 years ago

Finally I don't generate a Visual Studio solution (.sln) with CMake. I had to recompile everything each time. Now I generate a Ninja project and only the modified files will be recompiled. Much faster.
CMake and Ninja are fully integrated into Visual Studio. Ask me if needed.