Open elirex opened 7 years ago
Try make proto
beforehand.
That is not working.
I met the same problem.Does anyone find solutions yet?
Workaround:
@@ -404,7 +404,7 @@ LIBRARY_DIRS += $(LIB_BUILD_DIR)
CXXFLAGS += -MMD -MP
# Complete build flags.
-COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-isystem $(includedir))
+COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
# mex may invoke an older gcc that is too liberal with -Wuninitalized
And running make proto make -j 8
Believe there is reason to use -isystem instead -I. Hope workaround won't break functionality, at least master does not have -system flag replaced.
Update: Seems SSD works OK after
I found problem.
make proto
command that included /usr/local/include/caffe/caffe.pb.h
instead of ssd/src/proto/caffe.proto
.
I change the filename of caffe.pb.h
, in the/usr/local/include/caffe
. I re-run make -j8
and compile succeed.
To what filename did you change it? caffe.proto?
change MakeFile:
-COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-isystem $(includedir)) #- means delete
+COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) #+ means add
and change MakeFile.config:
-INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
-LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
+INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
+LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/
Then
make -j8
it works
I follow the ssd installation step, when I run make -j8 then occur error.
Error Message:
How can I solve is problem? Thank you.
Your system configuration
Operating system: Ubuntu 16.04 Compiler: gcc 5.4.0, g++5.4.0 CUDA version (if applicable): 8.0 CUDNN version (if applicable): 5.1 BLAS: open Python or MATLAB version (for pycaffe and matcaffe respectively): python 2.7.13