eric612 / Caffe-YOLOv3-Windows

A windows caffe implementation of YOLO detection network
Other
212 stars 128 forks source link

question about platform #2

Closed Li-Lai closed 6 years ago

Li-Lai commented 6 years ago

Can I switch to Linux platform training and using?

HKLee2040 commented 6 years ago

You will meet following error message:

src/caffe/util/io.cpp: In function ‘bool caffe::ReadProtoFromBinaryFile(const char, google::protobuf::Message)’: src/caffe/util/io.cpp:62:36: error: ‘O_BINARY’ was not declared in this scope int fd = open(filename, O_RDONLY|O_BINARY); ^ Makefile:572: recipe for target '.build_release/src/caffe/util/io.o' failed make: *** [.build_release/src/caffe/util/io.o] Error 1

In Linux, O_BINARY is not defined!

ersanliqiao commented 5 years ago

In Linux, you should change line to below: int fd = open(filename, O_RDONLY);

Li-Lai commented 5 years ago

@HKLee2040 @ersanliqiao Thanks for your help. I will try your opinion.