facebookresearch / DensePose

A real-time approach for mapping all human pixels of 2D RGB images to a 3D surface-based model of the body
http://densepose.org
Other
6.98k stars 1.3k forks source link

error about protobuf #154

Open Anikily opened 5 years ago

Anikily commented 5 years ago

mkdir -p build && cd build && cmake .. && make -j12 -- Caffe2: CUDA detected: 9.0 -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/cuda -- Caffe2: Header version is: 9.0 -- Found cuDNN: v7.0.5 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so) -- Autodetected CUDA architecture(s): 6.1 -- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61 -- Summary: -- CMake version : 3.5.1 -- CMake command : /usr/bin/cmake -- System name : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 5.4.0 -- CXX flags : -std=c++11 -O2 -fPIC -Wno-narrowing -- Caffe2 version : 1.0.0 -- Caffe2 include path : /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include -- Caffe2 found CUDA : True -- CUDA version : 9.0 -- CuDNN version : 7.0.5 -- Configuring done -- Generating done -- Build files have been written to: /home/tensor/densepose/build make[1]: Entering directory '/home/tensor/densepose/build' make[2]: Entering directory '/home/tensor/densepose/build' make[3]: Entering directory '/home/tensor/densepose/build' make[3]: Entering directory '/home/tensor/densepose/build' [ 25%] Building NVCC (Device) object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o [ 25%] Building NVCC (Device) object CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o Scanning dependencies of target caffe2_detectron_custom_ops make[3]: Leaving directory '/home/tensor/densepose/build' make[3]: Entering directory '/home/tensor/densepose/build' [ 37%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o [ 50%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/pool_points_interp.cc.o In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/densepose/detectron/ops/zero_even_op.h:12, from /home/tensor/densepose/detectron/ops/zero_even_op.cc:9: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

error your headers.

^ In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/densepose/detectron/ops/zero_even_op.h:12, from /home/tensor/densepose/detectron/ops/zero_even_op.cc:9: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMakeFiles/caffe2_detectron_custom_ops.dir/build.make:86: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o' failed make[3]: [CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o] Error 1 make[3]: 正在等待未完成的任务.... In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/densepose/detectron/ops/pool_points_interp.h:13, from /home/tensor/densepose/detectron/ops/pool_points_interp.cc:10: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

error your headers.

^ In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/densepose/detectron/ops/pool_points_interp.h:13, from /home/tensor/densepose/detectron/ops/pool_points_interp.cc:10: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMakeFiles/caffe2_detectron_custom_ops.dir/build.make:62: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/pool_points_interp.cc.o' failed make[3]: [CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/pool_points_interp.cc.o] Error 1 make[3]: Leaving directory '/home/tensor/densepose/build' CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops.dir/all' failed make[2]: [CMakeFiles/caffe2_detectron_custom_ops.dir/all] Error 2 make[2]: *** 正在等待未完成的任务.... In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_gpu.h:9, from /home/tensor/densepose/detectron/ops/pool_points_interp.cu:11: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

error your headers.

^ In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_gpu.h:9, from /home/tensor/densepose/detectron/ops/pool_points_interp.cu:11: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMake Error at caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o.cmake:219 (message): Error generating /home/tensor/densepose/build/CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/./caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o

CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/build.make:70: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o' failed make[3]: [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_pool_points_interp.cu.o] Error 1 make[3]: Waiting for unfinished tasks.... In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_gpu.h:9, from /home/tensor/densepose/detectron/ops/zero_even_op.cu:9: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

error your headers.

^ In file included from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2_pb.h:4:0, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_base.h:7, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context.h:10, from /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/core/context_gpu.h:9, from /home/tensor/densepose/detectron/ops/zero_even_op.cu:9: /home/tensor/anaconda2/envs/caffe2_env/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory compilation terminated. CMake Error at caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o.cmake:219 (message): Error generating /home/tensor/densepose/build/CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/./caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o

CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/build.make:63: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o' failed make[3]: [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/detectron/ops/caffe2_detectron_custom_ops_gpu_generated_zero_even_op.cu.o] Error 1 make[3]: Leaving directory '/home/tensor/densepose/build' CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all' failed make[2]: [CMakeFiles/caffe2_detectron_custom_ops_gpu.dir/all] Error 2 make[2]: Leaving directory '/home/tensor/densepose/build' Makefile:127: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/home/tensor/densepose/build' Makefile:13: recipe for target 'ops' failed make: [ops] Error 2

hanabi7 commented 5 years ago

what's your protobuf version.you should use protobuf version 3.6.1