You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
^
........
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!
The text was updated successfully, but these errors were encountered: