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 build caffe2 IOS with NNPACK anymore #1072

Closed power0341 closed 7 years ago

power0341 commented 7 years ago

after the latest update, (adding ios metal support), the ios build script seems to be corrupted, when I turned on USE_NNPACK flag, I got errors like this:

CMake Error: Cannot determine link language for target "CAFFE2_NNPACK".
CMake Error: CMake can not determine linker language for target: CAFFE2_NNPACK
Yangqing commented 7 years ago

Could you start a fresh library, check out master and rebuild? I think this should be fixed right now - contbuild is showing green. If it does not work, could you report the build environment you are under, and also a detailed build output?

Yangqing commented 7 years ago

(feel free to assign back)

power0341 commented 7 years ago

@Yangqing well, the error has occurred due to CMake found no source code for target CAFFE2_NNPACK, then I realized that I should update the 3rd party libraries as well. git submodule update solves the problem.