在做make时遇到host_defines.h的问题

时间:2016-04-02 22:08:19

标签: makefile

我收到此错误

ubuntu@ip-172-31-53-220:~/EEC-277---GPU-Face-Detect$ make

Linking...
/usr/local/cuda-7.5/bin/crt/link.stub:2:26: fatal error: host_defines.h: No such file or directory
 #include "host_defines.h"
                          ^
compilation terminated.
make: *** [detect] Error 1
ubuntu@ip-172-31-53-220:~/EEC-277---GPU-Face-Detect$ locate host_defines
/usr/local/cuda-7.5/targets/x86_64-linux/include/host_defines.h
ubuntu@ip-172-31-53-220:~/EEC-277---GPU-Face-Detect$ head Makefile
CFLAGS  = $(shell pkg-config --cflags opencv)
CFLAGS  += -m32 -I./include,/usr/local/cuda-7.5/targets/x86_64-linux/include/
LIBS        = $(shell pkg-config --libs opencv)
LIBS      += -L/usr/local/cuda/lib -lcudart

KERNELS =   src/kernels/identify1.cu \
                src/kernels/identify2.cu \
                src/kernels/identify3.cu \
                src/kernels/identify4.cu \
                src/kernels/identify_glasses.cu \

根据其他问题中提供的解决方案,我在makefile中添加了文件路径。即文件host_defines.h的路径被添加到make文件中,如头部所示。我在这里找到了同样的问题 - http://www.codegur.net/28815117/cuda-missing-host-defines-h-centos-7。没有解决方案。如何解决这个问题??

0 个答案:

没有答案