Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载ncnn后编译出错 #388

Closed
qiuxiaqing opened this issue May 5, 2018 · 1 comment
Closed

下载ncnn后编译出错 #388

qiuxiaqing opened this issue May 5, 2018 · 1 comment

Comments

@qiuxiaqing
Copy link

at the step of
"Build for Linux x86 install g++ cmake protobuf"
i have completed the steps:
$ cd
$ mkdir -p build
$ cd build
$ cmake ..
when input "make -j",it shows as following:

[ 1%] Scanning dependencies of target ncnn
Running C++ protocol buffer compiler on onnx.proto
[ 5%] [ 7%] Built target caffe2ncnn
Built target mxnet2ncnn
onnx.proto:383:5: Expected "required", "optional", or "repeated".
onnx.proto:383:17: Missing field number.
onnx.proto:402:3: Expected "required", "optional", or "repeated".
onnx.proto:402:15: Missing field number.
make[2]: *** [tools/onnx/onnx.pb.cc] 错误 1
make[1]: *** [tools/onnx/CMakeFiles/onnx2ncnn.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 10%] [ 10%] [ 11%] [ 12%] Building CXX object src/CMakeFiles/ncnn.dir/layer.cpp.o
Building CXX object src/CMakeFiles/ncnn.dir/net.cpp.o
Building CXX object src/CMakeFiles/ncnn.dir/layer/convolution.cpp.o
Building CXX object src/CMakeFiles/ncnn.dir/layer/x86/convolutiondepthwise_x86.cpp.o
/home/aaa/qxq/project/fruit/ncnn-master/src/net.cpp: In member function ‘int ncnn::Net::load_param(FILE*)’:
/home/aaa/qxq/project/fruit/ncnn-master/src/net.cpp:102:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, "%d", &magic);
^
/home/aaa/qxq/project/fruit/ncnn-master/src/net.cpp:112:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, "%d %d", &layer_count, &blob_count);
^
........

Linking CXX static library libncnn.a
[ 95%] Built target ncnn
make: *** [all] 错误 2

I have solved this problem for 2 days ,please help me, i am a student. Thank you so much!

@nihui
Copy link
Member

nihui commented May 5, 2018

see #370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants