You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running ./build.py $(NDK_PATH), I first got an error and fixed it by running make all in folder caffe-android-lib/caffe-mobile/jni/caffe/ and then copying the following files:
Then, after running ./build.py $(NDK_PATH) I got the following error:
Android NDK: WARNING:/usr/local/caffe-android-lib/caffe-mobile/jni/Android.mk:caffe: non-system libraries in linker flags: -lboost_random-gcc-mt-1_55 -lboost_math_tr1-gcc-mt-1_55 -lboost_system-gcc-mt-1_55 -lboost_thread-gcc-mt-1_55
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ arm : caffe <= blob.cpp
In file included from /usr/local/caffe-android-lib/caffe-mobile/jni/caffe/include/caffe/blob.hpp:4:0,
from /usr/local/caffe-android-lib/caffe-mobile/jni/caffe/src/caffe/blob.cpp:1:
/usr/local/caffe-android-lib/caffe-mobile/jni/caffe/include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
#include <gflags/gflags.h>
^
compilation terminated.
make: *** [/usr/local/caffe-android-lib/caffe-mobile/obj/local/armeabi-v7a/objs/caffe/caffe/src/caffe/blob.o]
I tried to fix the error by running the following:
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make
sudo make install
Unfortunately, I haven't managed to come any further and haven't figured out the cause of the problem.
As I couldnt build the model with modified caffe version (Caffe-Android-Lib), I built the model with official caffe version and uploaded the files to sd card:
Hi @nikogamulin ,
I just updated the remote urls of the submodules, and also my Boost-for-Android to the lastest version for supporting android-ndk-r10d. So now, it should be okay to run ./build.py $(NDK_PATH) without toolchain issues. (You can cleanly clone agian. I tested the updates by using android-ndk-r10d-linux-x86_64.bin.)
The errors about proto files and gflags may caused by using the wrong caffe branch. I recommend you to cleanly clone again.
For the model part, you can download the stuff you need by simply running ./get_model.py.
I tried to clone the Caffe-Android-Lib code and build it. Running git clone --recursive
Anyway, lately I noticed that included Boost-for-Android does not support NDK version 10d - 64bit. Therefore I added the version from the repository https://github.com/MysticTreeGames/Boost-for-Android.
When running ./build.py $(NDK_PATH), I first got an error and fixed it by running make all in folder caffe-android-lib/caffe-mobile/jni/caffe/ and then copying the following files:
cp -r caffe-android-lib/caffe-mobile/jni/caffe/.build_release/src/caffe/proto/* caffe-android-lib/caffe-mobile/jni/caffe/src/caffe/proto/
Then, after running ./build.py $(NDK_PATH) I got the following error:
I tried to fix the error by running the following:
Unfortunately, I haven't managed to come any further and haven't figured out the cause of the problem.
As I couldnt build the model with modified caffe version (Caffe-Android-Lib), I built the model with official caffe version and uploaded the files to sd card:
When I tried to run caffe-android-demo, the app crashed with the following error:
I would appreciate if anyone could help out finding the cause of the problem and solve it.
The text was updated successfully, but these errors were encountered: