sh1r0 / caffe-android-lib

Porting caffe to android platform
Other
510 stars 204 forks source link

Failed to find header file, during [make] process #125

Closed WeixiangXu closed 6 years ago

WeixiangXu commented 6 years ago

All goes well until build_caffe.sh.

When the scripts goes to

make -j"${N_JOBS}"

I get the error below:

-- Build files have been written to: /home/xwx/Document/caffe-android-lib/caffe/build [ 1%] Running C++/Python protocol buffer compiler on /home/xwx/Document/caffe-android-lib/caffe/src/caffe/proto/caffe.proto Scanning dependencies of target proto [ 1%] Building CXX object src/caffe/CMakeFiles/proto.dir///include/caffe/proto/caffe.pb.cc.o [ 3%] Linking CXX static library ../../lib/libproto.a [ 3%] Built target proto Scanning dependencies of target caffe [ 3%] Building CXX object src/caffe/CMakeFiles/caffe.dir/internal_thread.cpp.o /home/xwx/Document/caffe-android-lib/caffe/src/caffe/internal_thread.cpp:4:37: fatal error: caffe/internal_thread.hpp: No such file or directory

include "caffe/internal_thread.hpp"

^ compilation terminated. src/caffe/CMakeFiles/caffe.dir/build.make:62: recipe for target 'src/caffe/CMakeFiles/caffe.dir/internal_thread.cpp.o' failed make[2]: [src/caffe/CMakeFiles/caffe.dir/internal_thread.cpp.o] Error 1 CMakeFiles/Makefile2:272: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

(I make sure that the header file is in the caffe/include file.)

WeixiangXu commented 6 years ago

export CPLUS_INCLUDE_PATH in the ~/.bashrc