MarineRoboticsGroup / dcsam

Factored inference for discrete-continuous smoothing and mapping.
https://arxiv.org/abs/2204.11936
MIT License
143 stars 18 forks source link

make test failed #31

Closed soul0knight closed 2 years ago

soul0knight commented 2 years ago

Hello, thanks for your work ! I build the project with test, like this: ~/$ mkdir build ~/$ cd build ~/build$ cmake .. -DENABLE_TESTS=ON ~/build$ make -j

then ~/build$ make test

get that error: image

My environment: ubuntu 18.04 gtsam version: v4.2a7 gtest built from apt-get libgtest-dev

keevindoherty commented 2 years ago

Hi, thanks for the interest in the project. We’re currently pinned to GTSAM commit caa14bc, so I think this is the most likely source of error here. However, if you could run: cd build/tests and share the error you get by directly running the executable ./testDCSAM in that directory, that would be helpful to us (and in the event that the GTSAM version is not the issue, this will help us better determine the source). Thanks!

soul0knight commented 2 years ago

Thanks for your reply. I solved this problem by this issue the error is: image Adding export LD_LIBRARY_PATH={YOUR_GTSAM_INSTALL_DIR}/usr/local/lib/:$LD_LIBRARY_PATH to ~/.bashrc resolved the issue as mentioned above.