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

build iOS failed even after updating submodule #480

Closed xuefeng7 closed 7 years ago

xuefeng7 commented 7 years ago

Running

./scripts/build_ios.sh

returns

Caffe2 codebase root is: /Users/XXX/XXX/Projects/Caffe2+iOS/caffe2 Build Caffe2 ios into: /Users/XXX/XXX/Projects/Caffe2+iOS/caffe2/build_ios Building protoc Other flags passed to cmake: -DCMAKE_C_FLAGS=-fembed-bitcode -DCMAKE_CXX_FLAGS=-fembed-bitcode /Users/XXX/XXX/Projects/Caffe2+iOS/caffe2/scripts/build_host_protoc.sh: line 40: /Users/XXX/XXX/Projects/Caffe2+iOS/caffe2/third_party/protobuf/cmake: is a directory

I tried git submodule init && git submodule update, but still get this issue.

bwasti commented 7 years ago

this is quite a cryptic error (going to leave this issue open until it is changed) but it is because you don't have cmake installed (or at least the bash script can't find it).

either install homebrew and do brew install cmake or check out https://cmake.org/install/

hope that fixes it :)

xuefeng7 commented 7 years ago

That's true, it works after installing cmake... Thanks!