Onnx-tensorrt: problem on installation

Created on 21 Nov 2018  路  1Comment  路  Source: onnx/onnx-tensorrt

Hi, guys. Here is the error.
[ 19%] Running C++ protocol buffer compiler on /data2/matt/workspace/onnx-tensorrt/build/third_party/onnx/onnx/onnx_onnx2trt_onnx.proto onnx/onnx_onnx2trt_onnx.proto:401:5: Expected "required", "optional", or "repeated". onnx/onnx_onnx2trt_onnx.proto:401:17: Missing field number. onnx/onnx_onnx2trt_onnx.proto:428:3: Expected "required", "optional", or "repeated". onnx/onnx_onnx2trt_onnx.proto:428:15: Missing field number. make[2]: *** [third_party/onnx/onnx/onnx_onnx2trt_onnx.pb.cc] Error 1 make[1]: *** [third_party/onnx/CMakeFiles/gen_onnx_proto.dir/all] Error 2 make: *** [all] Error 2

The CMake generation results are listed in the following.
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /bin/gcc
-- Check for working C compiler: /bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-pthread (found version "2.5.0")
-- Build type not set - defaulting to Release

-- CMake version : 3.13.0-rc3
-- CMake command : /data2/matt/cmake-3.13.0-rc3/bin/cmake
-- System : Linux
-- C++ compiler : /bin/c++
-- C++ compiler version : 4.8.5
-- CXX flags : -Wall -Wnon-virtual-dtor
-- Build type : Release
-- Compile definitions : ONNX_NAMESPACE=onnx2trt_onnx
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr/local
-- CMAKE_MODULE_PATH :
-- ONNX version : 1.3.0
-- ONNX NAMESPACE : onnx2trt_onnx
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- Protobuf compiler : /bin/protoc
-- Protobuf includes : /usr/local/include
-- Protobuf libraries : /usr/local/lib/libprotobuf.so;-pthread
-- BUILD_ONNX_PYTHON : OFF
-- Found CUDA: /usr/local/cuda (found version "9.0")
-- Found CUDNN: /usr/local/cuda/include
-- Found TensorRT headers at /data2/matt/TensorRT-5.0.2.6/include
-- Find TensorRT libs at /data2/maqiu/TensorRT-5.0.2.6/lib/libnvinfer.so;/data2/matt/TensorRT-5.0.2.6/lib/libnvinfer_plugin.so
-- Found TENSORRT: /data2/matt/TensorRT-5.0.2.6/include
-- Configuring done
-- Generating done

Most helpful comment

Updating protobuf to the newest solved this problem. Hope this will help other people.

>All comments

Updating protobuf to the newest solved this problem. Hope this will help other people.

Was this page helpful?
0 / 5 - 0 ratings