pytorch-YOLOv4 icon indicating copy to clipboard operation
pytorch-YOLOv4 copied to clipboard

Makefile:49: recipe for target 'nvdsinfer_yolo_engine.o' failed

Open zjykzj opened this issue 5 years ago • 5 comments

Hi yolov4, i try to compile Deepstream in pytorch-YOLOv4,but it failed.

first ,i download the git repo in Nvidia Xavier

$ git clone https://github.com/Tianxiaomo/pytorch-YOLOv4.git

then i want to Compile the DeepStream Nvinfer Plugin like readme said

$ cd DeepStream/nvdsinfer_custom_impl_Yolo$
$ export CUDA_VER=10.2
$ make
g++ -c -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../../includes -I/usr/local/cuda-10.2/include nvdsinfer_yolo_engine.cpp
nvdsinfer_yolo_engine.cpp:23:10: fatal error: nvdsinfer_custom_impl.h: No such file or directory
 #include "nvdsinfer_custom_impl.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:49: recipe for target 'nvdsinfer_yolo_engine.o' failed
make: *** [nvdsinfer_yolo_engine.o] Error 1

Looking forward to someone to help me solve this problem

zjykzj avatar Aug 28 '20 06:08 zjykzj

碰到了同样的问题,请问解决了吗

jiejie1993 avatar Nov 04 '20 07:11 jiejie1993

碰到了同样的问题,请问解决了吗

还没,项目暂停了,搞其他事情去了 

zjykzj avatar Nov 05 '20 11:11 zjykzj

Did you able to solve this issue? I faced the same problem.

DuyguSerbes avatar Oct 20 '21 15:10 DuyguSerbes

Same issue

mfoglio avatar Dec 10 '21 21:12 mfoglio

I installed httpd on Ubuntu and i also have something similar. It looks like your don't have access rights before copying files to the platform. I run the command:

    cd httpd-2.4.51
    sudo ./configure --prefix=/usr/local/apache2 && make && make install --no-target-directory.

Conclusion: Makefile:49: recipe for target 'delete-exports' failed

There is something like the Permission denied alert that comes with other alerts such as: cp: cannot create regular file/Permission denied; chmod: cannot access/No such file or directory; rm: cannot remove/Permission denied; mv: cannot stat/No such file or directory; chmod: changing permissions of/Operation not permitted;

Try to execute, use the parameter --ignore-errors:

sudo ./configure --prefix=/usr/local/apache2 && make --ignore-errors && make install --ignore-errors

However, when doing sudo ./configure the error message cannot create regular file. This is an error, related to the use of sudo su, in particular the root profile used by the C compiler. It seems to be a simple problem to fix using sudo chown but couldn't fix it. Complains about user:user, calling it Operation not permitted. Finally orienting myself, i used # access without any problems permanently for all files that break the build. These cannot stat lines should avoid "infinity" or "not count" ignores in iterative errors. The suggested workaround the # access method i mentioned may work, the $ method does not. Wait a few more revisions in # access to see if the compilation continues to the end and it will be fixed, which is not yet covered in ~$ . Allow permissions for each rejected file:

sudo chown -R user:user /path_to_executable
sudo ./configure --prefix=/usr/local/apache2 && make --ignore-errors && make install --ignore-errors

# access - This is just a transition menu for you that allows you to build a "debug build", that is, try to collect some information that will help recreate the required Permission denied history of processed permissions.

ZeclintrYzath avatar Jan 21 '22 16:01 ZeclintrYzath