karta0807913 / caffe-yolo-9000

caffe-yolo-9000
Other
48 stars 16 forks source link

为啥编译错误 #5

Closed kanshichao closed 6 years ago

kanshichao commented 6 years ago

.build_release/tools/convert_box_data.o:在函数‘main’中: convert_box_data.cpp:(.text.startup+0x858):对‘caffe::ReadBoxDataToDatum(std::string const&, std::string const&, std::map<std::string, int, std::less, std::allocator<std::pair<std::string const, int> > > const&, int, int, bool, std::string const&, caffe::Datum*)’未定义的引用 collect2: 错误: ld 返回 1 make: *** [.build_release/tools/convert_box_data.bin] 错误 1

karta0807913 commented 6 years ago

我這邊使用cmake編譯正常唷 你要不要試試看cmake mkdir build: cd build;cmake ..;make;

Ghustwb commented 6 years ago

确实是的,如果用Makefile.config 的话就会出现编译错误。用cmake就可以了。

kanshichao commented 6 years ago

多谢,已经解决!