sowson / darknet

Darknet on OpenCL Convolutional Neural Networks on OpenCL on Intel & NVidia & AMD & Mali GPUs for macOS & GNU/Linux & Windows & FreeBSD
http://pjreddie.com/darknet/
Other
186 stars 31 forks source link

undefined reference to 'avg_predictions' #47

Closed Simtokyee closed 3 years ago

Simtokyee commented 3 years ago

When I was trying to make this project, it returned 1, and said that: /usr/bin/ld: obj/yolo.o: in function test_yolo4': yolo.c:(.text+0x334a): undefined reference toavg_predictions' collect2: error: ld returned 1 exit status make: *** [Makefile:137:darknet] 错误 1

Seems like an easy problem, maybe inputting some words to 'makefile' can work, but I don't know how to fix it...

Simtokyee commented 3 years ago

I found that issue45 has the same problem with me. I followed the instuction and now this problem has been solved succesfully : )