fatal error: google/protobuf/port_def.inc: No such file or directory #include google/protobuf/port_d

编译caffe的时候出现No such file or directory #include google/protobuf/port_def.inc的错误,

但是通过查找,发现 port_def.inc文件是存在的,路径是:/usr/local/miniconda3/envs/dl/include/google/protobuf/,

所以解决方法是,把/usr/local/miniconda3/envs/dl/include添加到头文件路径:

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ /usr/local/miniconda3/envs/dl/include

上一篇:Python高阶函数及sorted函数原理


下一篇:高性能远程桌面Splashtop 居家办公首选软件