CIFASIS / dense-sptam

Dense S-PTAM
GNU General Public License v3.0
61 stars 17 forks source link

clone and build error #9

Open yriuss opened 2 years ago

yriuss commented 2 years ago

When I run the command git clone git@github.com:lrse/ros-utils.git I get the error git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.. Then I used: git clone https://github.com/lrse/ros-utils.git. After that, the same error ocurred with git clone git@github.com:cifasis/sptam.git, then I did git clone https://github.com/lrse/sptam . git checkout origin/adalessandro/dense-sptam -b adalessandro/dense-sptam did not work. And finally, ignoring the last error and running sudo catkin build --cmake-args \ -DSHOW_TRACKED_FRAMES=OFF -DSHOW_PROFILING=OFF -DCMAKE_BUILD_TYPE=Release -DUSE_LOOPCLOSURE=OFF gives me the message:

--------------------------------------------------------------------------------
Profile:                     default
Extending:                   None
Workspace:                   /home/adriel/catkin
--------------------------------------------------------------------------------
Build Space:        [exists] /home/adriel/catkin/build
Devel Space:        [exists] /home/adriel/catkin/devel
Install Space:      [unused] /home/adriel/catkin/install
Log Space:          [exists] /home/adriel/catkin/logs
Source Space:       [exists] /home/adriel/catkin/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DSHOW_TRACKED_FRAMES=OFF -DSHOW_PROFILING=OFF -DCMAKE_BUILD_TYPE=Release -DUSE_LOOPCLOSURE=OFF
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
WARNING: Your workspace is not extending any other result space, but it is set
to use a `linked` devel space layout. This requires the `catkin` CMake package
in your source space in order to be built.
--------------------------------------------------------------------------------

[build] Found '2' packages in 0.0 seconds.                                     
[build] Package table is up to date.                                           
Warning: generated devel space setup files have been deleted.
Starting  >>> catkin_tools_prebuild                                            
_______________________________________________________________________________
Errors     << catkin_tools_prebuild:cmake /home/adriel/catkin/logs/catkin_tools_prebuild/build.cmake.007.log
CMake Error at /home/adriel/catkin/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):
  The catkin CMake module was not found, but it is required to build a linked
  workspace.  To resolve this, please do one of the following, and try
  building again.

   1. Source the setup.sh file from an existing catkin workspace:
      source SETUP_FILE

   2. Extend another catkin workspace's result (install or devel) space:
      catkin config --extend RESULT_SPACE

   3. Set `catkin_DIR` to the directory containing `catkin-config.cmake`:
      catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH

   4. Add the catkin source package to your workspace's source space:
      cd SOURCE_SPACE && git clone https://github.com/ros/catkin.git

cd /home/adriel/catkin/build/catkin_tools_prebuild; catkin build --get-env catkin_tools_prebuild | catkin env -si  /usr/bin/cmake /home/adriel/catkin/build/catkin_tools_prebuild --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/adriel/catkin/devel/.private/catkin_tools_prebuild -DCMAKE_INSTALL_PREFIX=/home/adriel/catkin/install -DSHOW_TRACKED_FRAMES=OFF -DSHOW_PROFILING=OFF -DCMAKE_BUILD_TYPE=Release -DUSE_LOOPCLOSURE=OFF; cd -
...............................................................................
Failed     << catkin_tools_prebuild:cmake          [ Exited with code 1 ]      
Failed    <<< catkin_tools_prebuild                [ 0.0 seconds ]             
Abandoned <<< dense                                [ Unrelated job failed ]    
Abandoned <<< ros_utils                            [ Unrelated job failed ]    
[build] Summary: 0 of 3 packages succeeded.                                    
[build]   Ignored:   None.                                                     
[build]   Warnings:  None.                                                     
[build]   Abandoned: 2 packages were abandoned.                                
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 0.0 seconds total. 

NOTE: I am using ROS melodic.

taihup commented 2 years ago

Have you uploaded your ssh keys to github.com? If not create the ssh key and upload it to github.com

yriuss commented 2 years ago

Thanks for the fast answer!

Now I when I run ./devel/lib/dense/kitti_dmap_generator \ configuration_files/tsukuba_cam.yaml \ configuration_files/tsukuba.yaml \ ~/.ros/clouds/poses.txt \ 30 \ ~/.ros/dmaps/, I get the following error: ./devel/lib/dense/kitti_dmap_generator: error while loading shared libraries: libopencv_imgcodecs.so.3.2: cannot open shared object file: No such file or directory.

There is a way to change these opencv dependencies from 3.2 to 3.4.16?

taihup commented 2 years ago

It seems OpenCV is not properly installed. Make sure to install OpenCV 3.2. I have not tried other OpenCV version.