luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.07k stars 626 forks source link

/usr/bin/ld: cannot find -lpng #35

Open hitchhooker opened 5 years ago

hitchhooker commented 5 years ago
satoshi@nakamoto:~/deep-painterly-harmonization$ make clean && make
find . -type f | xargs -n 5 touch
rm -f libcuda_utils.so  
/usr/local/cuda-10.0/bin/nvcc -arch sm_35 -O3 -DNDEBUG -Xcompiler -fopenmp --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/home/satoshi/torch/install/include/THC -I/home/satoshi/torch/install/include/TH -I/home/satoshi/torch/install/include -L/home/satoshi/torch/install/lib -Xlinker -rpath,/home/satoshi/torch/install/lib -lluaT -lTHC -lTH -lpng -lluajit -lgomp
In file included from cuda_utils.cu:15:0:
/usr/local/cuda-10.0/bin/..//include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "math_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
In file included from cuda_utils.cu:15:0:
/usr/local/cuda-10.0/bin/..//include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "math_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
/usr/bin/ld: cannot find -lpng
collect2: error: ld returned 1 exit status
make: *** [makefile:10: libcuda_utils.so] Error 1

followed instructions as well as I could. Running Deepin 15.8 which is very ubuntulike and debian based. using CUDA 10 and torch7. no idea what is this lpng that is missing, any tips?