dog-qiuqiu / Yolo-Fastest

:zap: Based on yolo's ultra-lightweight universal target detection algorithm, the calculation amount is only 250mflops, the ncnn model size is only 666kb, the Raspberry Pi 3b can run up to 15fps+, and the mobile terminal can run up to 178fps+
Other
1.97k stars 428 forks source link

In linux, compile darknet as libdarknet.so. I just write a simple yolo_console_dll.cpp to link .so. #67

Open xyzhai-pro opened 2 years ago

xyzhai-pro commented 2 years ago

when i type the command as g++ -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 yolo_console_dll.cpp -L./lib/ -I. -ldarknet $(pkg-config --cflags --libs opencv) -o test. The error is /tmp/ccis7rE8.o:in function‘main’: yolo_console_dll.cpp:(.text+0xb11):‘Detector::Detector(std::string, std::string, int)’undefined reference collect2: error: ld returned 1 exit status

look forward your reply