Closed AKoulabukhov closed 7 years ago
Attached build step:
[ 92%] Building CXX object caffe2/CMakeFiles/Caffe2_CPU.dir/operators/tile_op.cc.o
cd /Users/toyo/Desktop/caffe2/build_ios/caffe2 && /usr/bin/g++ -DCAFFE2_NO_BUILTIN_CPU_SUPPORTS -DCAFFE2_UNIQUE_LONG_TYPEMETA -DCAFFE2_USE_EIGEN_FOR_BLAS -DEIGEN_MPL2_ONLY -I/Users/toyo/Desktop/caffe2/build_ios -isystem /Users/toyo/Desktop/caffe2/third_party/protobuf/src -isystem /Users/toyo/Desktop/caffe2/third_party/NNPACK/include -isystem /Users/toyo/Desktop/caffe2/third_party/NNPACK_deps/pthreadpool/include -isystem /Users/toyo/Desktop/caffe2/third_party/eigen -isystem /Users/toyo/Desktop/caffe2/third_party/pybind11/include -I/Users/toyo/Desktop/caffe2 -fembed-bitcode -Wno-deprecated-declarations -Wno-deprecated -std=c++11 -fPIC -Wno-narrowing -O3 -DNDEBUG -arch armv7 -arch armv7s -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/Caffe2_CPU.dir/operators/tile_op.cc.o -c /Users/toyo/Desktop/caffe2/caffe2/operators/tile_op.cc
I've occurred with the same problem in OSX.
The error said std::array is undefined so it can be resolved by including the header file, #include <array>
, in caffe2/core/operator.h
now landing the fix in #519, will close when done and build tests pass
Can't compile caffe2 with iOS script. Errors are occurred: