robotology / stereo-vision

Repository containing apps for stereo vision
https://robotology.github.io/stereo-vision/
GNU General Public License v2.0
19 stars 19 forks source link

Build error, unable to find libisl.so.23 #37

Open paliasgh opened 1 year ago

paliasgh commented 1 year ago

Hello, we are trying to install stereo-vision with the following ccmake parameters:

 CMAKE_BACKWARDS_COMPATIBILITY    2.4                                                                                
 CMAKE_BUILD_TYPE                 Release                                                                            
 CMAKE_INSTALL_PREFIX             /usr/local/src/robot/robotology-superbuild/build/install                           
 COMPILE_LIB                      ON                                                                                 
 CUDA_HOST_COMPILER               /usr/bin/cc                                                                        
 CUDA_SDK_ROOT_DIR                CUDA_SDK_ROOT_DIR-NOTFOUND                                                         
 CUDA_TOOLKIT_ROOT_DIR            /usr/local/cuda-10.2                                                               
 CUDA_USE_STATIC_CUDA_RUNTIME     ON                                                                                 
 CUDA_rt_LIBRARY                  /usr/lib/x86_64-linux-gnu/librt.so                                                 
 EXECUTABLE_OUTPUT_PATH                                                                                              
 ICUBCONTRIB_INSTALL_WITH_RPATH   ON                                                                                 
 ICUBCONTRIB_SHARED_LIBRARY       OFF                                                                                
 ICUB_DIR                         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/ICUB            
 ICUBcontrib_DIR                  /usr/local/src/robot/robotology-superbuild/build/install/lib/ICUBcontrib           
 LIBRARY_OUTPUT_PATH                                                                                                 
 OpenCV_DIR                       /usr/local/src/robot/opencv/build                                                  
 USE_DISPARITYMODULE              ON                                                                                 
 USE_DISPARITYMODULE_GUI          ON                                                                                 
 USE_SFM                          OFF                                                                                
 YARP_DIR                         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP            
 YARP_conf_DIR                    /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_conf       
 YARP_cv_DIR                      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_cv         
 YARP_dev_DIR                     /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_dev        
 YARP_gsl_DIR                     /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_gsl        
 YARP_idl_tools_DIR               /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_idl_tools  
 YARP_math_DIR                    /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_math       
 YARP_os_DIR                      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_os         
 YARP_rosmsg_DIR                  /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg     
 YARP_rosmsg_actionlib_msgs_DIR   /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_acti
 YARP_rosmsg_diagnostic_msgs_DI   /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_diag
 YARP_rosmsg_geometry_msgs_DIR    /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_geom
 YARP_rosmsg_native_DIR           /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_nati
 YARP_rosmsg_nav_msgs_DIR         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_nav_
 YARP_rosmsg_sensor_msgs_DIR      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_sens
 YARP_rosmsg_shape_msgs_DIR       /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_shap
 YARP_rosmsg_std_msgs_DIR         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_std_
 YARP_rosmsg_stereo_msgs_DIR      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_ster
 YARP_rosmsg_tf2_msgs_DIR         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_tf2_
 YARP_rosmsg_tf_DIR               /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_tf  
 YARP_rosmsg_trajectory_msgs_DI   /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_traj
 YARP_rosmsg_visualization_msgs   /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_rosmsg_visu
 YARP_sig_DIR                     /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/YARP_sig        
 YCM_DIR                          /usr/local/src/robot/robotology-superbuild/build/install/share/cmake/YCM           
 actionPrimitives_DIR             /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/actionPrimitives
 blas_PATH                        /usr/lib/x86_64-linux-gnu/libblas.so                                               
 ctrlLib_DIR                      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/ctrlLib         
 dl_PATH                          /usr/lib/x86_64-linux-gnu/libdl.so                                                 
 dmumps_seq_PATH                  /usr/lib/x86_64-linux-gnu/libdmumps_seq.so                                         
 gfortran_PATH                    /usr/lib/gcc/x86_64-linux-gnu/9/libgfortran.so                                     
 iCubDev_DIR                      /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/iCubDev         
 iDyn_DIR                         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/iDyn            
 iKin_DIR                         /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/iKin            
 ipopt_PATH                       /usr/lib/libipopt.so                                                               
 lapack_PATH                      /usr/lib/x86_64-linux-gnu/liblapack.so                                             
 learningMachine_DIR              /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/learningMachine 
 m_PATH                           /usr/lib/x86_64-linux-gnu/libm.so                                                  
 optimization_DIR                 /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/optimization    
 perceptiveModels_DIR             /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/perceptiveModels
 quadmath_PATH                    /usr/lib/gcc/x86_64-linux-gnu/9/libquadmath.so                                     
 skinDynLib_DIR                   /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/skinDynLib      
 stereoVision_INCLUDE_DIRS        /usr/local/src/robot/stereo-vision/lib/include;/usr/local/src/robot/stereo-vision/l

Making the project give the following error:

[ 57%] Building NVCC (Device) object modules/DisparityModule/sgbm_cuda/CMakeFiles/SGBM_CUDA.dir/SGBM_CUDA_generated_costs.cu.o
cc1plus: error while loading shared libraries: libisl.so.23: cannot open shared object file: No such file or directory
CMake Error at SGBM_CUDA_generated_costs.cu.o.Release.cmake:220 (message):
  Error generating
  /usr/local/src/robot/stereo-vision/build/modules/DisparityModule/sgbm_cuda/CMakeFiles/SGBM_CUDA.dir//./SGBM_CUDA_generated_costs.cu.o

make[2]: *** [modules/DisparityModule/sgbm_cuda/CMakeFiles/SGBM_CUDA.dir/build.make:79: modules/DisparityModule/sgbm_cuda/CMakeFiles/SGBM_CUDA.dir/SGBM_CUDA_generated_costs.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:256: modules/DisparityModule/sgbm_cuda/CMakeFiles/SGBM_CUDA.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

We have opencv version 4.2.0 and Cude version 10.2.89 installed on our system. Thank you in advance for your help.

patrickshas commented 1 year ago

Hello @damianomal and @pattacini, just checking in on this in case it got forgotten about. Is there anything we are missing in the installation process? Any suggestions? Thanks in advance

damianomal commented 1 year ago

Hi @patrickshas, unfortunately I don't recall a similar issue while setting up the library in the past, could you report here:

  1. the list of commands you ran, up to the one which caused this make error
  2. the version of GCC that you are using on your system
  3. the output of the command ls /usr/lib/libisl*
paliasgh commented 11 months ago

Hello @damianomal, thanks for getting back to us and sorry for the delay.

  1. After installing dependencies, as listed in the readme file, we just tried to make the program in the build directory, with the ccmake parameters reported above.
  2. It is gcc (Ubuntu 8.4.0-3ubuntu2) 8.4.0
  3. ls: cannot access '/usr/lib/libisl*': No such file or directory . Maybe this is causing an issue?

I have attached a complete log of running make command.

log.txt

patrickshas commented 11 months ago

Hello @damianomal, Hope you are having a good day. Just wondering if there are any updates on this issue? Trying to plan ahead for our project depending on if there is a solution for this or not. Thanks in advance

patrickshas commented 10 months ago

hello @damianomal @pattacini , Just checking up on this issue again. Is someone able to look into this? Thanks again

pattacini commented 10 months ago

Hi @patrickshas

@damianomal is not in my same group, so I don't know his holiday plan: I'll try to reach out to him but he may be off these days.

patrickshas commented 10 months ago

@pattacini Thank you. Much appreciated.