weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.77k stars 1.67k forks source link

Problems of port_def.inc file not found in Make compilation #1019

Open sergiodevelop78 opened 4 years ago

sergiodevelop78 commented 4 years ago

Hello, I have problems to compile the source code. I always get this message

CXX src/caffe/blob.cpp
CXX src/caffe/util/db.cpp
CXX src/caffe/util/db_lmdb.cpp
CXX src/caffe/util/sampler.cpp
In file included from ./include/caffe/blob.hpp:9,
                 from src/caffe/blob.cpp:4:
.build_release/src/caffe/proto/caffe.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No existe el fichero o el directorio
 #include <google/protobuf/port_def.inc>

I'm using Anaconda, and on my environment, I have these python modules:

protobuf 3.11.4 opencv-contrib-python 4.2.0.32
opencv-python 4.2.0.32 matplotlib 3.1.3

I tried all the steps on the Readme file, and I installed all dependecies but no luck.

What can I do to solve this problem?

Thank you. Sergio

My Linux Configuration Operating system: Linux MX Linux 19.1 Compiler: gcc (Debian 8.3.0-6) 8.3.0 CUDA version (if applicable): Not using CUDA. CUDNN version (if applicable): No BLAS: N/A Python or MATLAB version (for pycaffe and matcaffe respectively): Python 3.7.6 (default, Jan 8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

sergiodevelop78 commented 4 years ago

Here is my Makefile.config file .

https://drive.google.com/open?id=1U7y6AdTB5KflBA2vJvnFq2m5_yCooTG8