Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone and build error #9

Open
yriuss opened this issue Oct 31, 2021 · 3 comments
Open

clone and build error #9

yriuss opened this issue Oct 31, 2021 · 3 comments

Comments

@yriuss
Copy link

yriuss commented Oct 31, 2021

When I run the command git clone [email protected]:lrse/ros-utils.git I get the error [email protected]: 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 [email protected]: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
Copy link
Contributor

taihup commented Nov 1, 2021

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

@yriuss
Copy link
Author

yriuss commented Nov 1, 2021

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
Copy link
Contributor

taihup commented Nov 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants