sampepose/flownet2-tf

make all error

deepkshikha opened this issue · 1 comments

After Installing all library it shows this error

fatal error: cuda/include/cuda.h: No such file or directory

Edit Makefile:
from
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/include" -DGOOGLE_CUDA=1
to
CFLAGS = -std=c++11 -I$(TF_INC) -I"$(CUDA_HOME)/.." -DGOOGLE_CUDA=1

This error may because of the wrong including directory.
The Makefile set $CUDA_HOME as /usr/local/cuda, and try to find /usr/local/cuda/include/cuda/include/cuda.h.
The correct path should be /usr/local/cuda/include/cuda.h

/usr/local/cuda may be a symbolic link to /usr/local/cuda-\<version\>