wenchy / x264-CUDA

Parallel Optimization of Motion Estimation (ME) module based on CUDA
GNU General Public License v2.0
16 stars 4 forks source link

build failed #1

Open deepch opened 7 years ago

deepch commented 7 years ago

cc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/avs.o input/thread.o common/cuda/motionsearch.o libx264.a -ldl -lswscale -lavutil -lm -m64 -L../cuda -lm -lpthread -ldl common/cuda/motionsearch.o: In function cudaLaunch': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x29): undefined reference tocudaLaunch_ptsz' common/cuda/motionsearch.o: In function HandleError(cudaError, char const*, int)': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x4d): undefined reference tocudaGetErrorString' common/cuda/motionsearch.o: In function cuda_me_init': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x1d9): undefined reference tocudaMalloc' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x20b): undefined reference to cudaMalloc' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x299): undefined reference tocudaMalloc' common/cuda/motionsearch.o: In function cuda_me_end': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x2cd): undefined reference tocudaFree' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x2f3): undefined reference to cudaFree' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x319): undefined reference tocudaFree' common/cuda/motionsearch.o: In function cuda_me_prefetch': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x39e): undefined reference tocudaMemcpy_ptds' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x3db): undefined reference to cudaMemcpy_ptds' common/cuda/motionsearch.o: In functioncuda_me0': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x46e): undefined reference to cudaMemcpy_ptds' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x4ab): undefined reference tocudaMemcpy_ptds' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x517): undefined reference to cudaConfigureCall' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x58d): undefined reference tocudaMemcpy_ptds' common/cuda/motionsearch.o: In function cuda_me': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x637): undefined reference tocudaConfigureCall' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x6ad): undefined reference to cudaMemcpy_ptds' common/cuda/motionsearch.o: In functioncudaUnregisterBinaryUtil()': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x78f): undefined reference to __cudaUnregisterFatBinary' common/cuda/motionsearch.o: In functionnv_init_managed_rt_with_module(void**)': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x7a9): undefined reference to `cudaInitModule' common/cuda/motionsearch.o: In function `__device_stubZ2mePhS_P14x264_cuda_me_tii(unsigned char, unsigned char, x264_cuda_me_t*, int, int)': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x7dc): undefined reference to cudaSetupArgument' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x800): undefined reference tocudaSetupArgument' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x821): undefined reference to cudaSetupArgument' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x842): undefined reference tocudaSetupArgument' tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x863): undefined reference to cudaSetupArgument' common/cuda/motionsearch.o: In functionnv_cudaEntityRegisterCallback(void**)': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x92c): undefined reference to `cudaRegisterFunction' common/cuda/motionsearch.o: In function __sti____cudaRegisterAll_47_tmpxft_00001809_00000000_7_motionsearch_cpp1_ii_604e24a9()': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text+0x940): undefined reference to__cudaRegisterFatBinary' common/cuda/motionsearch.o: In function gpuAssert(cudaError, char const*, int, bool)': tmpxft_00001809_00000000-4_motionsearch.cudafe1.cpp:(.text._Z9gpuAssert9cudaErrorPKcib[_Z9gpuAssert9cudaErrorPKcib]+0x23): undefined reference tocudaGetErrorString' collect2: error: ld returned 1 exit status make: *** [x264] Ошибка 1 root@den-System-Product-Name:~/deepch/tedsadasdas/x264-CUDA#

wenchy commented 7 years ago

You need to install CUDA successfully! Because the compiler currently can not find cudaXXX functions.

deepch commented 7 years ago

maybe you have compiled version?