Closed Qianxuzhixue closed 3 months ago
This is an error with scopedmocklog, which is only used for testing. You can just comment out this test and continue.
This is an error with scopedmocklog, which is only used for testing. You can just comment out this test and continue.
Thank you for your explanation. Can you further elaborate on how to comment out this test and continue?@sandwichmaker
Find the test in the cmake file and comment the line corresponding to it. Or you can disable the building of tests entirely.
On Thu, May 23, 2024, 8:50 AM Qianxuzhixue @.***> wrote:
This is an error with scopedmocklog, which is only used for testing. You can just comment out this test and continue.
Thank you for your explanation. Can you further elaborate on how to comment out and continue with this test? @sandwichmaker https://github.com/sandwichmaker
— Reply to this email directly, view it on GitHub https://github.com/ceres-solver/ceres-solver/issues/1068#issuecomment-2127476135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANCABOJMEAWIV5SN5FOWFTZDYF37AVCNFSM6AAAAABIF4WVJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGQ3TMMJTGU . You are receiving this because you were mentioned.Message ID: @.***>
Sorry, I'm not very good at this. How can I disable the building of tests entirely?
------------------ 原始邮件 ------------------ 发件人: "ceres-solver/ceres-solver" @.>; 发送时间: 2024年5月23日(星期四) 晚上11:52 @.>; @.**@.>; 主题: Re: [ceres-solver/ceres-solver] Erro when make, Urgent help! (Issue #1068)
Find the test in the cmake file and comment the line corresponding to it. Or you can disable the building of tests entirely.
On Thu, May 23, 2024, 8:50 AM Qianxuzhixue @.***> wrote:
> This is an error with scopedmocklog, which is only used for testing. You > can just comment out this test and continue. > > Thank you for your explanation. Can you further elaborate on how to > comment out and continue with this test? @sandwichmaker > <https://github.com/sandwichmaker> > > — > Reply to this email directly, view it on GitHub > <https://github.com/ceres-solver/ceres-solver/issues/1068#issuecomment-2127476135>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AANCABOJMEAWIV5SN5FOWFTZDYF37AVCNFSM6AAAAABIF4WVJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGQ3TMMJTGU> > . > You are receiving this because you were mentioned.Message ID: > @.***> >
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
cmake ../ceres-solver-2.2.0 -DBUILD_TESTING=OFF
Thank you very much for your help. I have now completed the installation. By the way, will turning off testing have any impact on the functionality after installation? @sandwichmaker
dxw@ubuntu20:~/Downloads/ceres-bin$ cmake ../ceres-solver-2.2.0 -DBUILD_TESTING=OFF
-- Detected Ceres version: 2.2.0 from /home/dxw/Downloads/ceres-solver-2.2.0/include/ceres/version.h
-- Found Eigen version 3.4.0: /usr/local/share/eigen3/cmake
-- Enabling use of Eigen as a sparse linear algebra library.
-- Building without CUDA.
-- 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 CHOLMOD headers in: /usr/include/suitesparse
-- Found CHOLMOD library: /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found SPQR headers in: /usr/include/suitesparse
-- Found SPQR library: /usr/lib/x86_64-linux-gnu/libspqr.so
-- Found Config headers in: /usr/include/suitesparse
-- Found Config library: /usr/lib/x86_64-linux-gnu/libsuitesparseconfig.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 CCOLAMD headers in: /usr/include/suitesparse
-- Found CCOLAMD library: /usr/lib/x86_64-linux-gnu/libccolamd.so
-- Found COLAMD headers in: /usr/include/suitesparse
-- Found COLAMD library: /usr/lib/x86_64-linux-gnu/libcolamd.so
-- Found Intel Thread Building Blocks (TBB) library (2020.1 / 11101) include location: /usr/include. Assuming SuiteSparseQR was compiled with TBB.
-- Adding librt to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing).
-- Could NOT find METIS (missing: METIS_INCLUDE_DIR METIS_LIBRARY)
-- Found SuiteSparse 5.7.1, building with SuiteSparse.
-- Building without Eigen METIS support.
-- Building without Apple's Accelerate sparse support.
-- Found Google Flags (gflags) version 2.2.2: /usr/local/lib/cmake/gflags
-- 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/local/lib/cmake/glog
-- Detected glog version: 0.8.0
-- 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 Ceres as a static library.
-- Enabling CERES_USE_EIGEN_SPARSE in Ceres config.h
-- Enabling CERES_NO_CUDA in Ceres config.h
-- Enabling CERES_NO_ACCELERATE_SPARSE in Ceres config.h
-- Enabling CERES_NO_CHOLMOD_PARTITION in Ceres config.h
-- Enabling CERES_NO_EIGEN_METIS in Ceres config.h
-- Build the examples.
-- Configuring done (0.5s)
-- Generating done (0.2s)
-- Build files have been written to: /home/dxw/Downloads/ceres-bin
dxw@ubuntu20:~/Downloads/ceres-bin$
dxw@ubuntu20:~/Downloads/ceres-bin$ make -j8
[ 69%] Built target ceres_internal
[ 73%] Built target ceres
[ 74%] Built target curve_fitting_c
[ 76%] Built target curve_fitting
[ 76%] Built target helloworld_numeric_diff
[ 77%] Built target rosenbrock
[ 78%] Built target helloworld
[ 79%] Built target rosenbrock_analytic_diff
[ 79%] Built target helloworld_analytic_diff
[ 80%] Built target rosenbrock_numeric_diff
[ 81%] Built target ellipse_approximation
[ 82%] Built target simple_bundle_adjuster
[ 83%] Built target robust_curve_fitting
[ 84%] Built target bicubic_interpolation_analytic
[ 85%] Built target iteration_callback_example
[ 85%] Built target bicubic_interpolation
[ 86%] Built target powell
[ 87%] Built target evaluation_callback_example
[ 88%] Built target more_garbow_hillstrom
[ 90%] Built target libmv_bundle_adjuster
[ 90%] Built target nist
[ 91%] Built target circle_fit
[ 93%] Built target bundle_adjuster
[ 94%] Built target libmv_homography
[ 95%] Built target robot_pose_mle
[ 97%] Built target denoising
[ 98%] Built target sampled_function
[ 99%] Built target pose_graph_2d
[100%] Built target pose_graph_3d
dxw@ubuntu20:~/Downloads/ceres-bin$ make test
Running tests...
Test project /home/dxw/Downloads/ceres-bin
No tests were found!!!
dxw@ubuntu20:~/Downloads/ceres-bin$ sudo make install
[sudo] password for dxw:
[ 69%] Built target ceres_internal
[ 73%] Built target ceres
[ 74%] Built target helloworld
[ 75%] Built target helloworld_numeric_diff
[ 75%] Built target helloworld_analytic_diff
[ 76%] Built target curve_fitting
[ 77%] Built target rosenbrock
[ 78%] Built target rosenbrock_analytic_diff
[ 79%] Built target rosenbrock_numeric_diff
[ 80%] Built target curve_fitting_c
[ 81%] Built target ellipse_approximation
[ 82%] Built target robust_curve_fitting
[ 83%] Built target simple_bundle_adjuster
[ 83%] Built target bicubic_interpolation
[ 84%] Built target bicubic_interpolation_analytic
[ 85%] Built target iteration_callback_example
[ 86%] Built target evaluation_callback_example
[ 87%] Built target powell
[ 88%] Built target nist
[ 89%] Built target more_garbow_hillstrom
[ 90%] Built target circle_fit
[ 92%] Built target bundle_adjuster
[ 93%] Built target libmv_bundle_adjuster
[ 94%] Built target libmv_homography
[ 96%] Built target denoising
[ 97%] Built target robot_pose_mle
[ 98%] Built target sampled_function
[ 99%] Built target pose_graph_2d
[100%] Built target pose_graph_3d
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/cmake/Ceres/FindSuiteSparse.cmake
-- Installing: /usr/local/lib/cmake/Ceres/FindMETIS.cmake
-- Installing: /usr/local/lib/libceres.a
-- Installing: /usr/local/include/ceres/autodiff_cost_function.h
-- Installing: /usr/local/include/ceres/autodiff_first_order_function.h
-- Installing: /usr/local/include/ceres/autodiff_manifold.h
-- Installing: /usr/local/include/ceres/c_api.h
-- Installing: /usr/local/include/ceres/ceres.h
-- Installing: /usr/local/include/ceres/conditioned_cost_function.h
-- Installing: /usr/local/include/ceres/constants.h
-- Installing: /usr/local/include/ceres/context.h
-- Installing: /usr/local/include/ceres/cost_function.h
-- Installing: /usr/local/include/ceres/cost_function_to_functor.h
-- Installing: /usr/local/include/ceres/covariance.h
-- Installing: /usr/local/include/ceres/crs_matrix.h
-- Installing: /usr/local/include/ceres/cubic_interpolation.h
-- Installing: /usr/local/include/ceres/dynamic_autodiff_cost_function.h
-- Installing: /usr/local/include/ceres/dynamic_cost_function.h
-- Installing: /usr/local/include/ceres/dynamic_cost_function_to_functor.h
-- Installing: /usr/local/include/ceres/dynamic_numeric_diff_cost_function.h
-- Installing: /usr/local/include/ceres/evaluation_callback.h
-- Installing: /usr/local/include/ceres/first_order_function.h
-- Installing: /usr/local/include/ceres/gradient_checker.h
-- Installing: /usr/local/include/ceres/gradient_problem.h
-- Installing: /usr/local/include/ceres/gradient_problem_solver.h
-- Installing: /usr/local/include/ceres/iteration_callback.h
-- Installing: /usr/local/include/ceres/jet.h
-- Installing: /usr/local/include/ceres/jet_fwd.h
-- Installing: /usr/local/include/ceres/line_manifold.h
-- Installing: /usr/local/include/ceres/loss_function.h
-- Installing: /usr/local/include/ceres/manifold.h
-- Installing: /usr/local/include/ceres/manifold_test_utils.h
-- Installing: /usr/local/include/ceres/normal_prior.h
-- Installing: /usr/local/include/ceres/numeric_diff_cost_function.h
-- Installing: /usr/local/include/ceres/numeric_diff_first_order_function.h
-- Installing: /usr/local/include/ceres/numeric_diff_options.h
-- Installing: /usr/local/include/ceres/ordered_groups.h
-- Installing: /usr/local/include/ceres/problem.h
-- Installing: /usr/local/include/ceres/product_manifold.h
-- Installing: /usr/local/include/ceres/rotation.h
-- Installing: /usr/local/include/ceres/sized_cost_function.h
-- Installing: /usr/local/include/ceres/solver.h
-- Installing: /usr/local/include/ceres/sphere_manifold.h
-- Installing: /usr/local/include/ceres/tiny_solver.h
-- Installing: /usr/local/include/ceres/tiny_solver_autodiff_function.h
-- Installing: /usr/local/include/ceres/tiny_solver_cost_function_adapter.h
-- Installing: /usr/local/include/ceres/types.h
-- Installing: /usr/local/include/ceres/version.h
-- Installing: /usr/local/include/ceres/internal/array_selector.h
-- Installing: /usr/local/include/ceres/internal/autodiff.h
-- Installing: /usr/local/include/ceres/internal/disable_warnings.h
-- Installing: /usr/local/include/ceres/internal/eigen.h
-- Installing: /usr/local/include/ceres/internal/euler_angles.h
-- Installing: /usr/local/include/ceres/internal/fixed_array.h
-- Installing: /usr/local/include/ceres/internal/householder_vector.h
-- Installing: /usr/local/include/ceres/internal/integer_sequence_algorithm.h
-- Installing: /usr/local/include/ceres/internal/jet_traits.h
-- Installing: /usr/local/include/ceres/internal/line_parameterization.h
-- Installing: /usr/local/include/ceres/internal/memory.h
-- Installing: /usr/local/include/ceres/internal/numeric_diff.h
-- Installing: /usr/local/include/ceres/internal/parameter_dims.h
-- Installing: /usr/local/include/ceres/internal/port.h
-- Installing: /usr/local/include/ceres/internal/reenable_warnings.h
-- Installing: /usr/local/include/ceres/internal/sphere_manifold_functions.h
-- Installing: /usr/local/include/ceres/internal/variadic_evaluate.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/ceres
-- Up-to-date: /usr/local/include/ceres/internal
-- Installing: /usr/local/include/ceres/internal/export.h
-- Installing: /usr/local/include/ceres/internal/config.h
-- Installing: /usr/local/lib/cmake/Ceres/CeresTargets.cmake
-- Installing: /usr/local/lib/cmake/Ceres/CeresTargets-release.cmake
-- Installing: /usr/local/lib/cmake/Ceres/CeresConfig.cmake
-- Installing: /usr/local/lib/cmake/Ceres/CeresConfigVersion.cmake
dxw@ubuntu20:~/Downloads/ceres-bin$
No.
This issue has been discussed before. Please see https://github.com/ceres-solver/ceres-solver/issues/1055#issuecomment-1985379851 for an alternative resolution.
OK, thanks a lot! @sandwichmaker
Urgent help!!! operating system: I strictly followed the prompts in the following link and made an error in the end. http://ceres-solver.org/installation.html#linux The following is the specific process in the terminal: