facebookarchive / caffe2

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

compile android #961

Open wm901115nwpu opened 7 years ago

wm901115nwpu commented 7 years ago

/home/wangmeng/caffe2/caffe2/operators/pool_op.cc:359:13: error: 'inputH' was not declared in this scope inputH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:360:13: error: 'inputW' was not declared in this scope inputW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:361:13: error: 'outputH' was not declared in this scope outputH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:362:13: error: 'outputW' was not declared in this scope outputW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:363:13: error: 'kH' was not declared in this scope kH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:364:13: error: 'kW' was not declared in this scope kW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:365:13: error: 'strideH' was not declared in this scope strideH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:366:13: error: 'strideW' was not declared in this scope strideW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:367:13: error: 'padT' was not declared in this scope padT, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:368:13: error: 'padL' was not declared in this scope padL, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:369:13: error: 'padB' was not declared in this scope padB, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:370:13: error: 'padR' was not declared in this scope padR, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:371:13: error: 'dilationH' was not declared in this scope dilationH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:372:13: error: 'dilationW' was not declared in this scope dilationW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:373:13: error: 'input' was not declared in this scope input, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:374:13: error: 'output' was not declared in this scope output)) { ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:375:37: error: 'N' was not declared in this scope runNeonAveragePool4x4p0s0NCHW(N, C, inputH, inputW, input, output); ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:375:40: error: 'C' was not declared in this scope runNeonAveragePool4x4p0s0NCHW(N, C, inputH, inputW, input, output); ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc: In static member function 'static bool caffe2::MaxPool::runSpecialized(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, const float, float)': /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:432:13: error: 'inputH' was not declared in this scope inputH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:433:13: error: 'inputW' was not declared in this scope inputW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:434:13: error: 'outputH' was not declared in this scope outputH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:435:13: error: 'outputW' was not declared in this scope outputW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:436:13: error: 'kH' was not declared in this scope kH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:437:13: error: 'kW' was not declared in this scope kW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:438:13: error: 'strideH' was not declared in this scope strideH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:439:13: error: 'strideW' was not declared in this scope strideW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:440:13: error: 'padT' was not declared in this scope padT, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:441:13: error: 'padL' was not declared in this scope padL, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:442:13: error: 'padB' was not declared in this scope padB, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:443:13: error: 'padR' was not declared in this scope padR, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:444:13: error: 'dilationH' was not declared in this scope dilationH, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:445:13: error: 'dilationW' was not declared in this scope dilationW, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:446:13: error: 'input' was not declared in this scope input, ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:447:13: error: 'output' was not declared in this scope output)) { ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:448:33: error: 'N' was not declared in this scope runNeonMaxPool2x2p0s0NCHW(N, C, inputH, inputW, input, output); ^ /home/wangmeng/caffe2/caffe2/operators/pool_op.cc:448:36: error: 'C' was not declared in this scope runNeonMaxPool2x2p0s0NCHW(N, C, inputH, inputW, input, output); ^ caffe2/CMakeFiles/Caffe2_CPU.dir/build.make:3713: recipe for target 'caffe2/CMakeFiles/Caffe2_CPU.dir/operators/pool_op.cc.o' failed make[2]: [caffe2/CMakeFiles/Caffe2_CPU.dir/operators/pool_op.cc.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: Leaving directory '/home/wangmeng/caffe2/build_android' CMakeFiles/Makefile2:465: recipe for target 'caffe2/CMakeFiles/Caffe2_CPU.dir/all' failed make[1]: [caffe2/CMakeFiles/Caffe2_CPU.dir/all] Error 2 make[1]: Leaving directory '/home/wangmeng/caffe2/build_android' Makefile:141: recipe for target 'all' failed make: [all] Error 2

How to solve it?

elva7073 commented 7 years ago

I have the same issue~Have you solved this problem?

wm901115nwpu commented 7 years ago

you run "git pull", update the code, you will solve the problem.