Since it seems like people are having issues properly compiling this version of darknet, here are some precompiled binaries for Raspbian: [Linux version 4.14.34-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1110 SMP Mon Apr 16 15:18:51 BST 2018].
These versions have had "detector test" functionality modified to run input images multiple times to demonstrate the speedup delivered by precomputing the convolution kernel in the convolutional layers.
./darknet detector test cfg/voc.data cfg/yolov3-tiny-voc.cfg ../yolov3-tiny-voc_47000.weights data/dog.jpg
layer filters size input output
0 conv 16 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 16 0.150 BFLOPs
1 max 2 x 2 / 2 416 x 416 x 16 -> 208 x 208 x 16
2 conv 32 3 x 3 / 1 208 x 208 x 16 -> 208 x 208 x 32 0.399 BFLOPs
3 max 2 x 2 / 2 208 x 208 x 32 -> 104 x 104 x 32
4 conv 64 3 x 3 / 1 104 x 104 x 32 -> 104 x 104 x 64 0.399 BFLOPs
5 max 2 x 2 / 2 104 x 104 x 64 -> 52 x 52 x 64
6 conv 128 3 x 3 / 1 52 x 52 x 64 -> 52 x 52 x 128 0.399 BFLOPs
7 max 2 x 2 / 2 52 x 52 x 128 -> 26 x 26 x 128
8 conv 256 3 x 3 / 1 26 x 26 x 128 -> 26 x 26 x 256 0.399 BFLOPs
9 max 2 x 2 / 2 26 x 26 x 256 -> 13 x 13 x 256
10 conv 512 3 x 3 / 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BFLOPs
11 max 2 x 2 / 1 13 x 13 x 512 -> 13 x 13 x 512
12 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BFLOPs
13 conv 256 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 256 0.089 BFLOPs
14 conv 512 3 x 3 / 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BFLOPs
15 conv 75 1 x 1 / 1 13 x 13 x 512 -> 13 x 13 x 75 0.013 BFLOPs
16 detection
17 route 13
18 conv 128 1 x 1 / 1 13 x 13 x 256 -> 13 x 13 x 128 0.011 BFLOPs
19 upsample 2x 13 x 13 x 128 -> 26 x 26 x 128
20 route 19 8
21 conv 256 3 x 3 / 1 26 x 26 x 384 -> 26 x 26 x 256 1.196 BFLOPs
22 conv 75 1 x 1 / 1 26 x 26 x 256 -> 26 x 26 x 75 0.026 BFLOPs
23 detection
Loading weights from ../yolov3-tiny-voc_47000.weights... (Version 2) Done!
data/dog.jpg: Predicted in 1.331753 seconds.
dog: 99%
car: 99%
bicycle: 46%
data/dog.jpg: Predicted in 0.895318 seconds.
dog: 99%
car: 99%
bicycle: 46%
data/dog.jpg: Predicted in 0.894425 seconds.
dog: 99%
car: 99%
bicycle: 46%
data/dog.jpg: Predicted in 0.900952 seconds.
dog: 99%
car: 99%
bicycle: 46%
data/dog.jpg: Predicted in 0.907574 seconds.
dog: 99%
car: 99%
bicycle: 46%
darknet-no-opencv:
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.6]
Basically no dependencies, should provide predictions.png if run properly.
darknet-opencv:
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libopencv_calib3d.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_contrib.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_core.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_features2d.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_flann.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_gpu.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_highgui.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_imgproc.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_legacy.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_ml.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_objdetect.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_ocl.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_photo.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_stitching.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_superres.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_ts.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_video.so.2.4]
0x00000001 (NEEDED) Shared library: [libopencv_videostab.so.2.4]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.6]
On a fresh Raspberry Pi image, you would need to run apt-get install libopencv-dev to get this binary to work.