ethz-asl / voxgraph

Voxblox-based Pose graph optimization
BSD 2-Clause "Simplified" License
522 stars 69 forks source link

download SuiteSparse-4.2.1.tar.gz fail ! #51

Closed chennuo0125-HIT closed 3 years ago

chennuo0125-HIT commented 3 years ago

when i use

catkin build voxgraph

i get error as follows:

______________________________________________________________________________________________________Errors     << suitesparse:make /home/cn/voxgraph_ws/logs/suitesparse/build.make.007.log                                                                                                                    
--2021-01-27 20:27:53--  https://github.com/ethz-asl/thirdparty_library_binaries/raw/master/SuiteSparse-4.2.1.tar.gz
Resolving github.com (github.com)... 13.250.177.223
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz [following]
--2021-01-27 20:27:54--  https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... failed: Connection refused.
Retrying.

--2021-01-27 20:27:55--  (try: 2)  https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... failed: Connection refused.
Retrying.

--2021-01-27 20:27:56--  (try: 3)  https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... failed: Connection refused.
Giving up.

make[2]: *** [suitesparse_src-prefix/src/suitesparse_src-stamp/suitesparse_src-download] Error 4
make[1]: *** [CMakeFiles/suitesparse_src.dir/all] Error 2
make: *** [all] Error 2
cd /home/cn/voxgraph_ws/build/suitesparse; catkin build --get-env suitesparse | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
...........................................................................................................................................................................................................

maybe network link error, but i can download SuiteSparse-4.2.1.tar.gz by browser, so could you change the cmakelist of SuiteSparse for me without download SuiteSparse-4.2.1.tar.gz ? the cmakelist is as follows:

cmake_minimum_required(VERSION 2.8.3)
project(suitesparse)

set(CMAKE_BUILD_TYPE Release)

find_package(catkin_simple REQUIRED)
catkin_simple()

include(ExternalProject)

set(SUITESPARSE_INCLUDE_DEST ${CATKIN_DEVEL_PREFIX}/include/suitesparse)

file(MAKE_DIRECTORY ${SUITESPARSE_INCLUDE_DEST})

set(VERSION 4.2.1)

ExternalProject_Add(suitesparse_src
  DOWNLOAD_COMMAND rm -f SuiteSparse-${VERSION}.tar.gz && wget --retry-connrefused --waitretry=1 --timeout=40 --tries 3 https://github.com/ethz-asl/thirdparty_library_binaries/raw/master/SuiteSparse-${VERSION}.tar.gz
  PATCH_COMMAND tar -xzf ../SuiteSparse-${VERSION}.tar.gz && rm -rf ../suitesparse_src-build/SuiteSparse && sed -i.bu "s/\\/usr\\/local\\/lib/..\\/lib/g" SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk && sed -i.bu "s/\\/usr\\/local\\/include/..\\/include/g" SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk && mv SuiteSparse ../suitesparse_src-build/
  CONFIGURE_COMMAND ""
  BUILD_COMMAND export CFLAGS=-DNTIMER && cd SuiteSparse && make library
  INSTALL_COMMAND cd SuiteSparse && mkdir -p lib && mkdir -p include && make install && cd lib && cp libamd.2.3.1.a libcamd.2.3.1.a libcholmod.2.1.2.a libcxsparse.3.1.2.a libldl.2.1.0.a libspqr.1.3.1.a libumfpack.5.6.2.a libamd.a   libcamd.a libcholmod.a  libcxsparse.a libldl.a libspqr.a libumfpack.a libbtf.1.2.0.a    libccolamd.2.8.0.a libcolamd.2.8.0.a libklu.1.2.1.a librbio.2.1.1.a libsuitesparseconfig.4.2.1.a libbtf.a   libccolamd.a libcolamd.a        libklu.a librbio.a libsuitesparseconfig.a  ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/ && cd .. && cd include && cp amd.h cholmod_matrixops.h SuiteSparseQR_definitions.h umfpack_load_symbolic.h umfpack_save_symbolic.h btf.h cholmod_modify.h SuiteSparseQR.hpp umfpack_numeric.h umfpack_scale.h camd.h cholmod_partition.h umfpack_col_to_triplet.h umfpack_qsymbolic.h umfpack_solve.h ccolamd.h cholmod_supernodal.h umfpack_defaults.h umfpack_report_control.h umfpack_symbolic.h cholmod_blas.h cholmod_template.h umfpack_free_numeric.h umfpack_report_info.h umfpack_tictoc.h cholmod_camd.h colamd.h umfpack_free_symbolic.h umfpack_report_matrix.h umfpack_timer.h cholmod_check.h cs.h umfpack_get_determinant.h umfpack_report_numeric.h umfpack_transpose.h cholmod_cholesky.h klu.h umfpack_get_lunz.h umfpack_report_perm.h umfpack_triplet_to_col.h cholmod_complexity.h ldl.h umfpack_get_numeric.h umfpack_report_status.h umfpack_wsolve.h cholmod_config.h RBio.h umfpack_get_symbolic.h umfpack_report_symbolic.h cholmod_core.h spqr.hpp umfpack_global.h umfpack_report_triplet.h cholmod.h SuiteSparse_config.h umfpack.h umfpack_report_vector.h cholmod_io64.h SuiteSparseQR_C.h umfpack_load_numeric.h umfpack_save_numeric.h ${SUITESPARSE_INCLUDE_DEST}
)

install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/include/suitesparse
        DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
        FILES_MATCHING PATTERN "*.h"
                       PATTERN "*.hpp")
install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/lib/
        DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
        FILES_MATCHING PATTERN "libamd*"
                       PATTERN "libbtf*"
                       PATTERN "libcamd*"
                       PATTERN "libcolamd*"
                       PATTERN "libccolamd*"
                       PATTERN "libcholmod*"
                       PATTERN "libcxsparse*"
                       PATTERN "libklu*"
                       PATTERN "libldl*"
                       PATTERN "librbio*"
                       PATTERN "libspqr*"
                       PATTERN "libsuitesparse*"
                       PATTERN "libsuitesparseconfig*"
                       PATTERN "libumfpack*"
)
cs_export(INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include/suitesparse
          LIBRARIES
                    spqr
                    cholmod
                    ccolamd
                    amd
                    btf
                    camd
                    colamd
                    cxsparse
                    klu
                    ldl
                    rbio
                    suitesparseconfig
                    umfpack
                    lapack
                    blas
         )
Gyudori commented 3 years ago

@chennuo0125-HIT Did you solve the problem? I got many errors with building suitesparse package... Starting with rm: unrecognized option '--retry-connrefused' How can you solve the remaining problems?

chennuo0125-HIT commented 3 years ago

@Gyudori you can see the blog : https://blog.csdn.net/weixin_37835423/article/details/113320484