digitalbrain79 / pyyolo

Simple python wrapper for YOLO.
126 stars 65 forks source link

/usr/bin/ld: cannot find -lyolo #44

Closed Arsey closed 5 years ago

Arsey commented 5 years ago

When I run python setup.py build it ends up with the error

running build
running build_ext
building 'pyyolo' extension
creating build
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I./darknet/include -I/usr/include/python2.7 -c module.c -o build/temp.linux-x86_64-2.7/module.o
In file included from ./darknet/src/box.h:3:0,
                 from ./darknet/src/image.h:9,
                 from libyolo.h:3,
                 from module.c:5:
./darknet/include/darknet.h:727:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 double what_time_is_it_now();
 ^
./darknet/include/darknet.h:731:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 data load_all_cifar10();
 ^
./darknet/include/darknet.h:737:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 image **load_alphabet();
 ^
./darknet/include/darknet.h:796:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 size_t rand_size_t();
 ^
./darknet/include/darknet.h:797:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 float rand_normal();
 ^
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:27:0,
                 from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from module.c:3:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: '_import_array' defined but not used [-Wunused-function]
 _import_array(void)
 ^
creating build/lib.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/module.o -L. -lyolo -o build/lib.linux-x86_64-2.7/pyyolo.so
/usr/bin/ld: cannot find -lyolo
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Arsey commented 5 years ago

Ok, I've just forgotten to make...