lsd_slam
lsd_slam copied to clipboard
LSDParamsConfig.h
[ 89%] Building CXX object lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/src/main_on_images.cpp.o In file included from /home/pete/catkin_ws/src/lsd_slam/lsd_slam_core/src/main_on_images.cpp:34:0: /home/pete/catkin_ws/src/lsd_slam/lsd_slam_core/src/IOWrapper/ROS/rosReconfigure.h:25:43: fatal error: lsd_slam_core/LSDParamsConfig.h: No such file or directory compilation terminated. lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/build.make:62: recipe for target 'lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/src/main_on_images.cpp.o' failed make[2]: *** [lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/src/main_on_images.cpp.o] Error 1 CMakeFiles/Makefile2:2263: recipe for target 'lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/all' failed make[1]: *** [lsd_slam/lsd_slam_core/CMakeFiles/dataset.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j1 -l1" failed
I can't find the files requested. Any ideas whats going on?
Thanks in advance.
Do you have the latest master from this fork?
Thank you for your response. Yeah i am using the latest version of master from your repo.
pete@PeteUbuntu:~/catkin_ws/src/lsd_slam$ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean
Sorry about the delay, I moved to Ubuntu 17.10 without realizing that neither kinetic nor lunar is supported on it. I'll check this out soon!
@PeteRodgers Are you using a virtual machine? I only had this error with VirtualBox.
I found the issue. Several headers are created using dynamic_reconfigure, but they may be created after the node, causing the build to fail, as the node requires the headers, but they are not ready yet. A more thorough explanation can be found here: https://answers.ros.org/question/285772/dynamic-reconfigure-headers-not-generated/
Add the following line to add_dependencies in CMakeLists.txt for both the viewer and the core to ensure they are built before any files requiring them.
add_dependencies(your_program ${${PROJECT_NAME}_EXPORTED_TARGETS})
Hope this helps.
what should I write in your_program @BW25 ...