MIT-SPARK / Kimera-VIO

Visual Inertial Odometry with SLAM capabilities and 3D Mesh generation.
BSD 2-Clause "Simplified" License
1.53k stars 416 forks source link

fatal error: dllexport.h: No such file or directory #230

Open pere0133 opened 6 months ago

pere0133 commented 6 months ago

Description: I am trying to install Kimera-VIO-ROS but I am running into an error message whenever I try to do catkin build. I would appreciate the help. Thank you!

Command:

catkin build

Console output:


```c++

``` catkin_ws/devel/include/gtsam/3rdparty/cephes/cephes.h:4:10: fatal error: dllexport.h: No such file or directory
    4 | #include "dllexport.h"

...
Summary: 11 of 14 packages succeeded.

Additional files:

Please give also the following information:

Mysterium-sch commented 6 months ago

I am having this issue too. I deleted the gtsam in the src folder and then installed it with this command. This seemed to resolve the issue.

add-apt-repository ppa:borglab/gtsam-release-4.2 &&\ apt update &&\ apt install -y libgtsam-dev libgtsam-unstable-dev

lihenghitcs commented 5 months ago
cd catkin_ws/src/gtsam
git reset --hard 686e16aaae26c9a4f23d4af7f2d4a504125ec9c3

It works because the latest commit of gtsam tested is 686e16aaae26c9a4f23d4af7f2d4a504125ec9c3, given by Kimera-RPGO

cyao48 commented 5 months ago

I'm having the same issue, and after trying the two solutions above I am getting this error:

Errors     << kimera_rpgo:make /home/user/catkin_ws/logs/kimera_rpgo/build.make.000.log                                                                              
/usr/bin/ld: CMakeFiles/GenerateTrajectories.dir/examples/GenerateTrajectories.cpp.o: undefined reference to symbol '_ZN3tbb8internal25deallocate_via_handler_v3EPv'
/usr/bin/ld: /lib/x86_64-linux-gnu/libtbb.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/GenerateTrajectories.dir/build.make:95: GenerateTrajectories] Error 1
make[1]: *** [CMakeFiles/Makefile2:328: CMakeFiles/GenerateTrajectories.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Would greatly appreciate any help with resolving this issue!