darknet icon indicating copy to clipboard operation
darknet copied to clipboard

Unable to install darknet

Open RohitSiga95 opened this issue 6 years ago • 11 comments

I am trying to install darknet into my windows 10 PC but got an error which i am not able to figure out. I was able to clone the git repository and access the files, but when i am trying to use the 'make' command in cmd prompt i am getting the error as shown,

`C:\Users\Rohit>git clone https://github.com/pjreddie/darknet.git Cloning into 'darknet'... remote: Counting objects: 5734, done. remote: Total 5734 (delta 0), reused 0 (delta 0), pack-reused 5734 Receiving objects: 100% (5734/5734), 5.90 MiB | 211.00 KiB/s, done. Resolving deltas: 100% (3863/3863), done. Checking out files: 100% (962/962), done.

C:\Users\Rohit>cd darknet

C:\Users\Rohit\darknet>make mkdir -p obj mkdir -p results A subdirectory or file -p already exists. Error occurred while processing: -p. make: *** [results] Error 1

C:\Users\Rohit\darknet>.\darknet '.\darknet' is not recognized as an internal or external command, operable program or batch file.`

Any help to rectify this issue would be greatly appreciated.

Thanks

RohitSiga95 avatar Mar 28 '18 10:03 RohitSiga95

this repo only works in linux, for windows use https://github.com/AlexeyAB/darknet/

TheMikeyR avatar Mar 28 '18 10:03 TheMikeyR

@TheMikeyR so i have to clone this repo and follow the same instructions given in the site?

RohitSiga95 avatar Mar 28 '18 10:03 RohitSiga95

clone AlexeyAB's fork, he did some modifications so it is compilable on windows.

TheMikeyR avatar Mar 28 '18 10:03 TheMikeyR

Getting similar error.

`C:\Users\Rohit>git clone https://github.com/AlexeyAB/darknet.git Cloning into 'darknet'... remote: Counting objects: 6256, done. remote: Compressing objects: 100% (51/51), done. remote: Total 6256 (delta 27), reused 37 (delta 21), pack-reused 6182 Receiving objects: 100% (6256/6256), 4.77 MiB | 235.00 KiB/s, done. Resolving deltas: 100% (4096/4096), done. Checking out files: 100% (1870/1870), done.

C:\Users\Rohit>cd darknet

C:\Users\Rohit\darknet>make process_begin: CreateProcess(NULL, uname, ...) failed. mkdir -p obj mkdir -p backup A subdirectory or file -p already exists. Error occurred while processing: -p. make: *** [backup] Error 1

C:\Users\Rohit\darknet>`

RohitSiga95 avatar Mar 28 '18 10:03 RohitSiga95

you can't compile with make on windows, you should use his windows tutorial on how to compile https://github.com/AlexeyAB/darknet#how-to-compile-on-windows

TheMikeyR avatar Mar 28 '18 10:03 TheMikeyR

@TheMikeyR thanks for the help. :)

I tried following the instructions but i am unable to understand this instruction

"If you don't have GPU, but have MSVS 2015 and OpenCV 3.0 (with paths: C:\opencv_3.0\opencv\build\include & C:\opencv_3.0\opencv\build\x64\vc14\lib), then start MSVS, open build\darknet\darknet_no_gpu.sln, set x64 and Release, and do the: Build -> Build darknet_no_gpu"

here i am unable to understand what is "set x64 and Release". Can you pls help me what to do in this step?

RohitSiga95 avatar Mar 28 '18 13:03 RohitSiga95

That is what you should set the build environment to in visual studio after you have opened the project with the .sln file.

TheMikeyR avatar Apr 04 '18 10:04 TheMikeyR

#721 might help you, too

MaverickLoneshark avatar Apr 21 '18 17:04 MaverickLoneshark

the"make" command does not work for windows. any solution ?

cyrineee avatar Mar 05 '19 22:03 cyrineee

make command for linux os @raffibaihaqy02

chaitanya-vardhan123 avatar Apr 22 '20 04:04 chaitanya-vardhan123

When I build darknet_no_gpu.sln, all success but 1 failed and that 1 failed is:

darknet_no_gpu.vcxproj -- failed

what am i missing?? How can I solve this?

Khazina-python avatar Feb 09 '21 10:02 Khazina-python