/usr/bin/ld: cannot find -ldarknet
Closed this issue · 3 comments
xyzhai-pro commented
/usr/bin/ld: cannot find -ldarknet
xyzhai-pro commented
when i make , the question was generated.
xyzhai-pro commented
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
xyzhai-pro commented
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);"