How to complie libdarknet.so?
cuongdev opened this issue · 11 comments
I got this error when run darknet.py
OSError: dlopen(libdarknet.so, 10): image not found
Please kindly help me.
Please use absolute image path, not relative path in configuration :)
Please use absolute image path, not relative path in configuration :)
Where is the path of that file ? I can’t find it in project when success compiling
The "pwd" command can tell you the absolute path where you compiled the darknet..? Can you put command you used to compile?
the relative path is for example:
libdarknet.so
the absolute path is for example:
/Users/piotrsowa/Projects/github/darknet/libdarknet.so
Hope that helps! Thanks!
The "pwd" command can tell you the absolute path where you compiled the darknet..? Can you put command you used to compile?
the relative path is for example:
libdarknet.so
the absolute path is for example:
/Users/piotrsowa/Projects/github/darknet/libdarknet.soHope that helps! Thanks!
I used these command
git clone https://github.com/sowson/darknet.git cd darknet; mkdir build; cmake -Bbuild -H.; cd build; make; cd ..; cp build/darknet .; rm -r build
before running those commands. I ran these commands:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” brew install opencv@2 brew link –force opencv@2 brew install libomp brew install clblas brew install clfft brew install cmake brew install wget
Please help me, There's no libdarknet.so in my darknet folder
ok so... in the
mkdir build; cmake -Bbuild -H.; cd build; make; cd ..; cp build/darknet .; rm -r build
the issue is last command:
rm -r build
because in build folder there is darknet binary and your missing lib/file as well...
do please do not remove build, by just:
mkdir build; cmake -Bbuild -H.; cd build; make; cd ..; cp build/darknet .; cp build/libdarknet* .; rm -r build
Thanks
ok so... in the
mkdir build; cmake -Bbuild -H.; cd build; make; cd ..; cp build/darknet .; rm -r build
the issue is last command:
rm -r build
because in build folder there is darknet binary and your missing lib/file as well...
do please do not remove build, by just:
mkdir build; cmake -Bbuild -H.; cd build; make; cd ..; cp build/darknet .; cp build/libdarknet* .; rm -r build
Thanks
There's still no libdarknet.so :(
on macOS there is no so lib only on Linux... on macos you have "a"(static lib) and "dynlib" (dynamic one)... so change to the one of them in your python script :D. I am not sure which one... sorry I do not know the python at all ;/.
on macOS there is no so lib only on Linux... on macos you have "a"(static lib) and "dynlib" (dynamic one)... so change to the one of them in your python script :D. I am not sure which one... sorry I do not know the python at all ;/.
I will try to implement using static lib. Thank you so much for helping me.
Hi @cuongdev,
I can share you mine in Mac : )
libdarknet.so txt
Hi @cuongdev,
I can share you mine in Mac : )
libdarknet.so txt
How did you compile that file?
I tried to use your file but it got some errors
Did you try dynlib instead of so? I red about it and dynlib seams to be used on macOS... but in absolute path... let me know is that still an issue?