build_android.sh failed
I run build_android.sh, but errors occurred.
in CMakeFiles/CMakeError.log ;
CMakeFiles/cmTC_d3410.dir/src.cxx.o:src.cxx:function main: error: undefined reference to 'void Foo<long>()'
/home/skins346/caffe2/build_android/CMakeFiles/CMakeTmp/src.cxx:1:30: fatal error: glog/stl_logging.h: No such file or directory
So, I run apt-get libgoogle-glog-dev (I had installed before..), but failed. After that, I downloaded here, but failed. (Of course, I modified GLOG_INCLUDE_DIR & GLOG_LIBRARY in CMakeCache.txt)
How to solve this problem?
Thank you.
Have you built and installed caffe2 on your host machine, say Ubuntu?
-DUSE_GLOG=OFF
I have the same error.... has anyone solved this problem?
l have the same error too!
CMakeFiles/cmTC_56d4a.dir/src.cxx.o:src.cxx:function main: error: undefined reference to 'void Foo
caffe2/build_android/CMakeFiles/CMakeTmp/src.cxx:1:30: fatal error: glog/stl_logging.h: No such file or directory #include <glog/stl_logging.h> ^ compilation terminated. CMakeFiles/cmTC_efb77.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_efb77.dir/src.cxx.o' failed make[1]: *** [CMakeFiles/cmTC_efb77.dir/src.cxx.o] Error 1 make[1]: Leaving directory '/caffe2/build_android/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_efb77/fast' failed make: *** [cmTC_efb77/fast] Error 2
when API set less than 21,I have the same error!!!