Sparkling-Water/yolo_darknet

/usr/bin/ld: cannot find -ldarknet

Closed this issue · 3 comments

/usr/bin/ld: cannot find -ldarknet

when i make , the question was generated.

I add libdarknet.so to the , then detection.cpp:(.text.startup.main+0x25f):‘Detector::Detector(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)’undefined reference collect2: error: ld returned 1 exit status

ok, just modified the <yolo_v2_class.hpp> "LIB_API Detector(std::string cfg_filename, std::string weight_filename, int gpu_id = 0, int batch_size = 1);"