PINTO0309 / OpenVINO-YoloV3

YoloV3/tiny-YoloV3+RaspberryPi3/Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO
https://qiita.com/PINTO
Apache License 2.0
538 stars 167 forks source link

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

Closed xyzhai-pro closed 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:在函数‘main’中: yolo_console_dll.cpp:(.text+0xb11):对‘Detector::Detector(std::string, std::string, int)’undefined reference collect2: error: ld returned 1 exit status