Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caffe Android lib build error #5

Closed
karthikeyan-kandasamy opened this issue Apr 9, 2015 · 2 comments
Closed

Caffe Android lib build error #5

karthikeyan-kandasamy opened this issue Apr 9, 2015 · 2 comments

Comments

@karthikeyan-kandasamy
Copy link

Now I tried to build the caffe android lib by using Mac osx 10.9.5 & android-ndk-r10d
steps I followed
1.git clone --recursive https://github.com/sh1r0/caffe-android-lib.git cloned the source from this command
2.In terminal moved inside to this directory caffe-android-lib
3. Run the ./build.py $(NDK_PATH) script

{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural

\f0\fs22 \cf0 \CocoaLigature0 ownloading boost 1.55.0 please wait...
curl: (3) malformed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 357 100 357 0 0 52 0 0:00:06 0:00:06 --:--:-- 93
<html>\ <head>\ <title>302 Found</title>\ </head>\ <body>\ <h1>302 Found</h1>\ The resource was found at <a href="http://liquidtelecom.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2">http://liquidtelecom.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2</a>;\ you should be redirected automatically.\ \ \ </body>\ </html>Failed to download boost! Please download boost 1.55.0 manually\ and save it in this directory as boost_1_55_0.tar.bz2\ Android NDK: WARNING:/Users/hubmaci7/Pictures/Hubino/Jamal/caffe/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 -lboost_date_time-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 <= caffe.pb.cc\ [armeabi-v7a] Compile++ arm : caffe <= blob.cpp\ [armeabi-v7a] Compile++ arm : caffe <= common.cpp\ In file included from /Users/hubmaci7/Pictures/Hubino/Jamal/caffe/caffe-android-lib/caffe-mobile/jni/caffe/src/caffe/common.cpp:6:0:\ /Users/hubmaci7/Pictures/Hubino/Jamal/caffe/caffe-android-lib/caffe-mobile/jni/caffe/include/caffe/util/rng.hpp:7:45: fatal error: boost/random/mersenne_twister.hpp: No such file or directory\ #include "boost/random/mersenne_twister.hpp"\ ^\ compilation terminated.\ make: *** [/Users/hubmaci7/Pictures/Hubino/Jamal/caffe/caffe-android-lib/caffe-mobile/obj/local/armeabi-v7a/objs/caffe/caffe/src/caffe/common.o] Error 1\ Hubs-Mac-mini:caffe-android-lib hubmaci7$ \ }

It showed error on downloading a boost.
So I downloaded boost_1_55_0.tar.bz2 manually and included into caffe-android-lib directory and extracted it. again
Run the ./build.py $(NDK_PATH) script
showed the same error

@sh1r0
Copy link
Owner

sh1r0 commented Apr 10, 2015

I didn't encounter this network error before, but build.py tells everything. Boost-for-Android is used to compile the main part of the Boost C++ Libraries for the Android platform. So you need to place boost_1_55_0.tar.bz2 into Boost-for-Android/, and also remove Boost-for-Android/build/ in case.
Thanks.

@karthikeyan-kandasamy
Copy link
Author

I have placed boost_1_55_0.tar.bz2 file into Boost-for-Android/ then it was builded successfully.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants