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

error with build_ceres.sh #175

Closed
monajalal opened this issue Oct 16, 2023 · 1 comment
Closed

error with build_ceres.sh #175

monajalal opened this issue Oct 16, 2023 · 1 comment

Comments

@monajalal
Copy link

monajalal commented Oct 16, 2023

I followed your instructions for build_ceres.sh

(pvnet) mona@mona-ThinkStation-P7:~/pvnet$ bash build_ceres.sh 

etc etc etc

ceres-solver-1.14.0/cmake/iOS.cmake
ceres-solver-1.14.0/cmake/FindSphinx.cmake
ceres-solver-1.14.0/cmake/AddCeresCXX11RequirementsToTarget.cmake
ceres-solver-1.14.0/cmake/CeresCompileOptionsToComponents.cmake
CMake Deprecation Warning at CMakeLists.txt:32 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:33 (cmake_policy):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected Ceres version: 1.14.0 from /home/mona/pvnet/ceres/ceres-solver-1.14.0/include/ceres/version.h
-- No preference for use of exported Eigen CMake configuration set, and no hints for include directory provided. Defaulting to preferring an installed/exported Eigen CMake configuration if available.
-- Found installed version of Eigen: /usr/share/eigen3/cmake
-- Found Eigen: /usr/include/eigen3 (found version "3.4.0") 
-- Found Eigen version 3.4.0: /usr/include/eigen3
-- Enabling use of Eigen as a sparse linear algebra library.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found LAPACK library: /usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so;/usr/lib/x86_64-linux-gnu/libf77blas.so;/usr/lib/x86_64-linux-gnu/libatlas.so
-- Found AMD headers in: /usr/include/suitesparse
-- Found AMD library: /usr/lib/x86_64-linux-gnu/libamd.so
-- Found CAMD headers in: /usr/include/suitesparse
-- Found CAMD library: /usr/lib/x86_64-linux-gnu/libcamd.so
-- Found COLAMD headers in: /usr/include/suitesparse
-- Found COLAMD library: /usr/lib/x86_64-linux-gnu/libcolamd.so
-- Found CCOLAMD headers in: /usr/include/suitesparse
-- Found CCOLAMD library: /usr/lib/x86_64-linux-gnu/libccolamd.so
-- Found CHOLMOD headers in: /usr/include/suitesparse
-- Found CHOLMOD library: /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found SUITESPARSEQR headers in: /usr/include/suitesparse
-- Found SUITESPARSEQR library: /usr/lib/x86_64-linux-gnu/libspqr.so
CMake Error at cmake/FindTBB.cmake:224 (file):
  file failed to open for reading (No such file or directory):

    /usr/include/tbb/tbb_stddef.h
Call Stack (most recent call first):
  cmake/FindSuiteSparse.cmake:294 (find_package)
  CMakeLists.txt:266 (find_package)


-- Found Intel Thread Building Blocks (TBB) library (.) assuming SuiteSparseQR was compiled with TBB.
-- Found SUITESPARSE_CONFIG headers in: /usr/include/suitesparse
-- Found SUITESPARSE_CONFIG library: /usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so
-- Found LIBRT library: /usr/lib/x86_64-linux-gnu/librt.a
-- Adding librt: /usr/lib/x86_64-linux-gnu/librt.a to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Found SuiteSparse: TRUE (found version "5.10.1") 
-- Found SuiteSparse 5.10.1, building with SuiteSparse.
-- Found CXSparse: /usr/include/suitesparse (found version "3.2.0") 
-- Found CXSparse version: 3.2.0, building with CXSparse.
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
-- Detected gflags version: 2.2.2
-- Found Gflags: /usr/include  
-- Found Google Flags header in: /usr/include, in namespace: google
-- No preference for use of exported glog CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported glog CMake configuration if available.
-- Found installed version of glog: /usr/lib/x86_64-linux-gnu/cmake/glog
-- Detected glog version: 0.4.0
-- Found Glog: glog::glog  
-- Found Google Log (glog). Assuming glog was built with gflags support as gflags was found. This will make gflags a public dependency of Ceres.
-- Building with OpenMP.
-- Performing Test COMPILER_HAS_CXX11_FLAG
-- Performing Test COMPILER_HAS_CXX11_FLAG - Success
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE - Success
-- Found unordered_map/set in std namespace.
-- Looking for C++ include memory
-- Looking for C++ include memory - found
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE - Success
-- Found shared_ptr in std namespace using <memory> header.
-- Performing Test CXX11_MATH_FUNCTIONS_FOUND
-- Performing Test CXX11_MATH_FUNCTIONS_FOUND - Success
-- Building Ceres as a shared library.
-- No build type specified; defaulting to CMAKE_BUILD_TYPE=Release.
-- Creating configured Ceres config.h output directory: /home/mona/pvnet/ceres/ceres-solver-1.14.0/build/config/ceres/internal
-- Enabling CERES_USE_EIGEN_SPARSE in Ceres config.h
-- Enabling CERES_USE_OPENMP in Ceres config.h
-- Enabling CERES_HAVE_PTHREAD in Ceres config.h
-- Enabling CERES_HAVE_RWLOCK in Ceres config.h
-- Enabling CERES_STD_UNORDERED_MAP in Ceres config.h
-- Enabling CERES_USING_SHARED_LIBRARY in Ceres config.h
-- Build the examples.
-- Configuring incomplete, errors occurred!
See also "/home/mona/pvnet/ceres/ceres-solver-1.14.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/mona/pvnet/ceres/ceres-solver-1.14.0/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
mv: cannot stat 'ceres/ceres-solver-1.14.0/build/lib/libceres*': No such file or directory

I have the followings:

(pvnet) mona@mona-ThinkStation-P7:~/pvnet/lib/utils/extend_utils/lib$ ls
total 6.4M
lrwxrwxrwx 1 mona mona   18 Oct 16 06:55 libceres.so.1 -> libceres.so.1.14.0
lrwxrwxrwx 1 mona mona   13 Oct 16 06:55 libceres.so -> libceres.so.2
lrwxrwxrwx 1 mona mona   17 Oct 16 06:55 libceres.so.2 -> libceres.so.2.0.0
-rwxrwxr-x 1 mona mona 3.0M Oct 16 06:55 libceres.so.1.14.0
-rw-rw-r-- 1 mona mona 124K Oct 16 06:55 libglog.so
-rw-rw-r-- 1 mona mona 3.3M Oct 16 06:55 libceres.so.2.0.0
drwxrwxr-x 2 mona mona 4.0K Oct 16 06:55 .
drwxrwxr-x 6 mona mona 4.0K Oct 16 09:14 ..

and

(pvnet) mona@mona-ThinkStation-P7:~/pvnet$ ls /usr/lib/x86_64-linux-gnu/libspqr.*
-rw-r--r-- 1 root root 179K Mar 25  2022 /usr/lib/x86_64-linux-gnu/libspqr.so.2.0.9
lrwxrwxrwx 1 root root   16 Mar 25  2022 /usr/lib/x86_64-linux-gnu/libspqr.so.2 -> libspqr.so.2.0.9
lrwxrwxrwx 1 root root   16 Mar 25  2022 /usr/lib/x86_64-linux-gnu/libspqr.so -> libspqr.so.2.0.9
-rw-r--r-- 1 root root 310K Mar 25  2022 /usr/lib/x86_64-linux-gnu/libspqr.a

@monajalal
Copy link
Author

not sure if the best way to deal with the lib problem but solved it this way:

  895  sudo cp -r /usr/lib/x86_64-linux-gnu/libspqr.so.2.0.9  /usr/lib/x86_64-linux-gnu/libspqr.so.2.0.2
  896  python lib/utils/data_utils.py
  897  ls /usr/lib/x86_64-linux-gnu/libcholmod.so.3.0.14 
  898  sudo cp -r /usr/lib/x86_64-linux-gnu/libcholmod.so.3.0.14 /usr/lib/x86_64-linux-gnu/libcholmod.so.3.0.6
  899  python lib/utils/data_utils.py
  900  locate libcxsparse.so
  901  sudo cp -r /usr/lib/x86_64-linux-gnu/libcxsparse.so.3.2.0 /usr/lib/x86_64-linux-gnu/libcxsparse.so.3.1.4

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

1 participant