tum-vision / lsd_slam

LSD-SLAM
GNU General Public License v3.0
2.59k stars 1.23k forks source link

Failure compiling with rosmake #195

Open YonatanSimson opened 8 years ago

YonatanSimson commented 8 years ago

I am using Ubuntu 14.04 with ROS Indigo. I tried to used rosmake both on ubuntu guest in a virtual box and on AWS. In both cases

The command: rosmake lsd_slam

Produces the following error:

[ rosmake ] rosmake starting... [ rosmake ] Packages requested are: ['lsd_slam'] [ rosmake ] Logging to directory /home/ubuntu/.ros/rosmake/rosmake_output-20160504-182012 [ rosmake ] Expanded args ['lsd_slam'] to: [] [ rosmake ] WARNING: The following args could not be parsed as stacks or packages: ['lsd_slam'] [ rosmake ] ERROR: No arguments could be parsed into valid package or stack names.

I followed the installation instruction to the letter.

Any ideas?

gogobd commented 8 years ago

Are you sure you executed (sourced) the shell script that sets the environment? Gg

On 04 May 2016, at 20:25, Yonatan notifications@github.com wrote:

I am using Ubuntu 14.04 with ROS Indigo. I tried to used rosmake both on ubuntu guest in a virtual box and on AWS. In both cases

The command: rosmake lsd_slam

Produces the following error:

[ rosmake ] rosmake starting... [ rosmake ] Packages requested are: ['lsd_slam'] [ rosmake ] Logging to directory /home/ubuntu/.ros/rosmake/rosmake_output-20160504-182012 [ rosmake ] Expanded args ['lsd_slam'] to: [] [ rosmake ] WARNING: The following args could not be parsed as stacks or packages: ['lsd_slam'] [ rosmake ] ERROR: No arguments could be parsed into valid package or stack names.

I followed the installation instruction to the letter.

Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

YonatanSimson commented 8 years ago

I see what you mean.

in directory ~/rosbuild_ws I typed:

source setup.bash

Then typed cd package_dir

rosmake lsd_slam

I managed to compile but the compilation failed on the following error: main_stitchVideos.cpp:(.text+0xa6e7): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'

I compiled opencv manually before installing ROS indigo. Could this be the problem? If so how can I solve it?

I have tried compiling lsd_slam_core manually by using cmake. I also added to the CMakeLists.txt file the following: find_package(OpenCV 3.1.0 REQUIRED COMPONENTS core highgui imgproc imgcodecs)

And to the target link libraries: target_link_libraries(lsdslam ${FABMAP_LIB} g2o_core g2o_stuff csparse cxsparse g2o_solver_csparse g2o_csparse_extension g2o_types_sim3 g2o_types_sba X11 opencv_core opencv_imgproc opencv_highgui opencv_imgcodecs)

Yet this too fails.

antonays commented 7 years ago

Hi, I suggest to try and install using catkin instead of rosmake.

This git is not set up correctly for ROS indigo (missing dependencies), so i suggest you to clone the git i forked and applied some fixes to work on indigo.

ndinarvand commented 5 years ago

Hi all, I ran "source ~/Code/rgbdslam_catkin_ws/devel/setup.bash" in terminal and issue solved.

hipforth commented 4 years ago

Hi all, I ran "source ~/Code/rgbdslam_catkin_ws/devel/setup.bash" in terminal and issue solved.

That's work, thanks!