You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just change the OPENCV's and LIBSO's value from zero to one, then I got a series of error message.
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/libnnpack.a(softmax.c.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/libnnpack.a(conv1x1.c.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/libnnpack.a(softmax.c.o)(.text+0x1874): unresolvable R_ARM_CALL relocation against symbol `expf@@GLIBC_2.27'
/usr/bin/ld: 最後的鏈結失敗: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:152: libdarknet.so] Error 1
How do I solve this? Please help! thanks a lot!
The text was updated successfully, but these errors were encountered:
Modify the NNPACK-darknet/build.ninja to add the -fPIC with cflags and cxxflags, then rerun the build process with "ninja -t clean; ninja"
sudo rm /usr/liblibgoogletest-core.a
sudo rm /usr/libnnpack-core.a
sudo rm /usr/libpthreadpool.a
cd NNPACK-darknet
ninja -t clean
ninja
sudo cp -a lib/* /usr/lib/
cd darknet-nnpack
make clean
make -j4
@weiweijeff Following the guide you mentioned, one is able to get the libdarknet.so and get it running in python. However as others had metioned it in #17 , I am getting no detections at all using the library. Do you know of a possible workaround?
I would like to use the darknet.py, then I modify the Makefile.
The following is the Makefile's content.
I just change the OPENCV's and LIBSO's value from zero to one, then I got a series of error message.
How do I solve this? Please help! thanks a lot!
The text was updated successfully, but these errors were encountered: