facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

cannot install ios version #338

Closed lgyStoic closed 7 years ago

lgyStoic commented 7 years ago

execute ./scripts/build_ios.sh

but show that message

caffe2/third_party/protobuf/cmake: is a directory

how to solve that problem

Yangqing commented 7 years ago

Did you do

git submodule update --recursive

?

lun0522 commented 7 years ago

I encountered the same problem, and git submodule update --recursive did not solve it. But after executing

brew install \
automake \
cmake \
git \
glog \
protobuf

on Mac (according to MacOS X install), ./scripts/build_ios.sh works! Maybe cmake or something else is also required on Mac before we build the iOS version? @lgyStoic @Yangqing

Yangqing commented 7 years ago

Ah yeah, cmake is needed to build any version since it is our default build solution.

You won't need glog and protobuf - build_ios.sh will not need glog and protobuf is built from source.

lgyStoic commented 7 years ago

as @lun0522 method ,it works, thx