weixin_39611389 2020-11-29 18:49
浏览 1

PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: not found

Original issue 5 created by sandwichmaker on 2012-05-02T16:23:30.000Z:

Hi, Thank you very much for open sourcing Ceres. I'm currently attempting to build the library. All external libraries have been correctly detected. However the build fails (please see below). Thank you in advance for any suggestions!

cmake ../ceres_solver/ -DEIGEN_INCLUDE=/usr/include/eigen3 - DGFLAGS_INCLUDE=/project/sean/code/gflags/include/gflags/ - DGFLAGS_LIB=/project/sean/code/gflags/lib/ -DGLOG_INCLUDE=/project/ sean/code/glog/include/glog/ -DGLOG_LIB=/project/sean/code/glog/lib/ -- Found AMD library: /usr/lib/libamd.so -- Found AMD header in: /usr/include/suitesparse -- Check for CAMD -- Found CAMD library: /usr/lib/libcamd.so -- Found CAMD header in: /usr/include/suitesparse -- Check for COLAMD -- Found COLAMD library: /usr/lib/libcolamd.so -- Found COLAMD header in: /usr/include/suitesparse -- Check for CCOLAMD -- Found CCOLAMD library: /usr/lib/libccolamd.so -- Found CCOLAMD header in: /usr/include/suitesparse -- Check for CHOLMOD -- Found CHOLMOD library: /usr/lib/libcholmod.so -- Found CHOLMOD header in: /usr/include/suitesparse -- Check for METIS (optional) Can't find METIS; disabling. (part of suitesparse.) -- Check for LAPACK -- Found LAPACK library: /usr/lib/liblapack.so -- Google Flags disabled; no tests or tools will be built! -- Check for Google Log -- Found Google Log library: /project/sean/code/glog/lib -- Found Google Log header in: /project/sean/code/glog/include/glog -- Check for Eigen 3.0 -- Found Eigen 3.0: /usr/include/eigen3 -- Found OpenMP. -- Configuring done make -j3 [ 1%] Running C++ protocol buffer compiler on matrix.proto [ 2%] [ 3%] /bin/sh: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: not found make[2]: * [internal/ceres/matrix.pb.cc] Error 127 make[1]: * [internal/ceres/CMakeFiles/ceres.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... Building CXX object internal/ceres/CMakeFiles/test_util.dir/ test_util.o Building CXX object internal/ceres/CMakeFiles/gtest.dir/gmock_main.o /project/sean/code/ceres_solver/internal/ceres/test_util.cc:34:26: error: glog/logging.h: No such file or directory /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc:33:27: error: gflags/gflags.h: No such file or directory /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc:34:26: error: glog/logging.h: No such file or directory /project/sean/code/ceres_solver/internal/ceres/test_util.cc: In function ‘bool ceres::internal::ExpectClose(double, double, double)’: /project/sean/code/ceres_solver/internal/ceres/test_util.cc:50: error: ‘VLOG’ was not declared in this scope /project/sean/code/ceres_solver/internal/ceres/test_util.cc: In function ‘void ceres::internal::ExpectArraysCloseUptoScale(int, const double_, const double_, double)’: /project/sean/code/ceres_solver/internal/ceres/test_util.cc:62: error: ‘CHECK_GT’ was not declared in this scope /project/sean/code/ceres_solver/internal/ceres/test_util.cc:63: error: ‘CHECK’ was not declared in this scope /project/sean/code/ceres_solver/internal/ceres/test_util.cc:85: error: ‘CHECK_NE’ was not declared in this scope /project/sean/code/ceres_solver/internal/ceres/test_util.cc: In function ‘void ceres::internal::ExpectArraysClose(int, const double_, const double_, double)’: /project/sean/code/ceres_solver/internal/ceres/test_util.cc:100: error: ‘CHECK_GT’ was not declared in this scope /project/sean/code/ceres_solver/internal/ceres/test_util.cc:101: error: ‘CHECK’ was not declared in this scope make[2]: * [internal/ceres/CMakeFiles/test_util.dir/test_util.o] Error 1 make[1]: * [internal/ceres/CMakeFiles/test_util.dir/all] Error 2 /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc:41: error: expected constructor, destructor, or type conversion before ‘(’ token /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc: In function ‘int main(int, char_)’: /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc:55: error: ‘google’ has not been declared /project/sean/code/ceres_solver/internal/ceres/gmock_main.cc:56: error: ‘google’ has not been declared make[2]: _* [internal/ceres/CMakeFiles/gtest.dir/gmock_main.o] Error 1 make[1]: * [internal/ceres/CMakeFiles/gtest.dir/all] Error 2 make: *** [all] Error 2

该提问来源于开源项目:ceres-solver/ceres-solver

  • 写回答

7条回答 默认 最新

  • weixin_39611389 2020-11-29 18:49
    关注

    Comment #1 originally posted by sandwichmaker on 2012-05-03T16:15:29.000Z:

    I am able to replicate this bug. Looking at it now.

    评论

报告相同问题?