添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey I am just a beginning programer. After I did the "make command" i got a error I tried to solve it but I cant figger it out. Does sombody know how I can fix this:

joost@WINDELL-K12C53L MINGW64 ~/documents/darknet (master)
$ make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
process_begin: CreateProcess(NULL, gcc -Iinclude/ -Isrc/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o, ...) failed.
make (e=2): The system can not find the specified file
make: *** [Makefile:85: obj/gemm.o] Error 2

Looks like you're using Darknet on Windows.

The current make file is based on linux folder structures. That's why its not able to find the src files properly.

If you want to use in Windows OS, try https://github.com/AlexeyAB/darknet

PCsi3:~/darknet$ make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127

I am using Ubuntu 18.04 and I have the above make error!

help please

PCsi3:~/darknet$ make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127

I am using Ubuntu 18.04 and I have the above make error!

help please

lol ..... OKAY ... I fixed it. I had to install OpenCV in the darknet folder with the syntax
sudo apt install libopencv-dev

Afterwards, I ran the make command again and ./darknet compiled successfully

Hopefully, this helps someone. c
CHEERS!!!

nataliele, eXTure, shern2, zuoxiaozhen, SaugatBhattarai, MohamedBenAli91, karthikpranav12, oyeabhijit, Shivam7Sharma, MustafaMert1, and partheee reacted with thumbs up emoji git-hamza and MohamedBenAli91 reacted with heart emoji edihasaj and oyeabhijit reacted with rocket emoji All reactions

I think you have an old version of opencv and python. I tried with the latest versions and it worked for me. These are the commands for conda. You can create a virtual environment so that it does not conflict with your ubuntu's version of opencv or python.

conda create --name darknet python=3.7
conda activate darknet
conda install -c menpo opencv 

Hope it helps!

PCsi3:~/darknet$ make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127
I am using Ubuntu 18.04 and I have the above make error!
help please

lol ..... OKAY ... I fixed it. I had to install OpenCV in the darknet folder with the syntax
sudo apt install libopencv-dev

Afterwards, I ran the make command again and ./darknet compiled successfully

Hopefully, this helps someone. c
CHEERS!!!

This works for me. Thank you so much!!!

$ make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-erro rs -fPIC -Ofast -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o
./src/deconvolutional_layer.c:1:0: warning: -fPIC ignored for target (all code i s position independent)
#include "deconvolutional_layer.h"
In file included from ./src/cuda.h:4:0,
from ./src/deconvolutional_layer.h:4,
from ./src/deconvolutional_layer.c:1:
include/darknet.h:780:11: error: unknown type name 'clock_t'
float sec(clock_t clocks);
compilation terminated due to -Wfatal-errors.
make: *** [obj/deconvolutional_layer.o] Error 1

I resolved it using following steps:

  • Installed opencv using sudo apt install libopencv-dev
  • Opened a new terminal (make sure that you are using version as installed in the 1st step using following command):
    python -c "import cv2; print(cv2.__version__);
    (In my case, bashrc was setting up env vars and another installation of opencv was active and I had to comment out relevant lines in bashrc)
  • make after setting OPENCV=1 in Makefile
    Well not much of use, just got 2 FPS :(
  • Versions (other versions might also work):
    Opencv: 4.2.0
    No CUDA/CUDNN in use

    Thank you.

    Looks like you're using Darknet on Windows.

    The current make file is based on linux folder structures. That's why its not able to find the src files properly.

    If you want to use in Windows OS, try https://github.com/AlexeyAB/darknet

    I git cloned that but after using the mingw32-make command, the following error occured
    process_begin: CreateProcess(NULL, uname, ...) failed. mkdir -p ./obj/ process_begin: CreateProcess(NULL, mkdir -p ./obj/, ...) failed. make (e=2): The system cannot find the file specified. Makefile:188: recipe for target 'obj/' failed mingw32-make: *** [obj/] Error 2

    I understand the problem, for downloading the program darknet using MAKE , the website https://pjreddie.com/darknet/install/ itself mentions about 2 programs, open cv and cuda. please download both of them and try again.

    For OpenCV - sudo apt install libopencv-dev
    For CUDA visit this website - https://developer.nvidia.com/cuda-downloads

    Thank you

    Same! This is the error:

    $ make mkdir -p ./obj/ mkdir -p backup chmod +x *.sh g++ -std=c++11 -std=c++11 -Iinclude/ -I3rdparty/stb/include -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o process_begin: CreateProcess(NULL, g++ -std=c++11 -std=c++11 -Iinclude/ -I3rdpar ty/stb/include -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPI C -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o, ...) failed. make (e=2): Impossibile trovare il file specificato. make: *** [Makefile:182: obj/image_opencv.o] Error 2

    Have you solve it?
    I need help, please

    gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv -DGPU -I/usr/local/cuda/include/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU -c ./src/gemm.c -o obj/gemm.o
    In file included from ./src/utils.h:5,
    from ./src/gemm.c:2:
    include/darknet.h:25:14: fatal error: opencv2/highgui/highgui_c.h: No such file or directory
    25 | #include "opencv2/highgui/highgui_c.h"
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:108: obj/gemm.o] Error 1

    I have installed opencv using coda and apt-get
    Added opencv.pc path to PKG_CONFIG_PATH
    still getting error

    Any suggestion