caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

build_android.sh failed

Open mintlatte opened this issue 9 years ago • 6 comments

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.

mintlatte avatar Apr 28 '17 08:04 mintlatte

Did you find a solution?

I get the same error.

CMakeError.txt

nmfelemban avatar Apr 30 '17 19:04 nmfelemban

Have you built and installed caffe2 on your host machine, say Ubuntu?

DuinoDu avatar May 02 '17 10:05 DuinoDu

-DUSE_GLOG=OFF

amadeuzou avatar May 04 '17 09:05 amadeuzou

I have the same error.... has anyone solved this problem?

fyhtea avatar May 05 '17 10:05 fyhtea

l have the same error too!

CMakeFiles/cmTC_56d4a.dir/src.cxx.o:src.cxx:function main: error: undefined reference to 'void Foo()' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_56d4a.dir/build.make:97: recipe for target 'cmTC_56d4a' failed make[1]: *** [cmTC_56d4a] Error 1 make[1]: Leaving directory 'caffe2/build_android/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_56d4a/fast' failed make: *** [cmTC_56d4a/fast] Error 2

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

gobigrassland avatar Jun 04 '17 08:06 gobigrassland

when API set less than 21,I have the same error!!!

moli232777144 avatar Jul 17 '17 06:07 moli232777144