CPU compiler right, GPU compiler error

Questions that occur when trying to compile FFmpeg.
Post Reply
dbyoung
Posts: 8
Joined: Sat Apr 15, 2017 10:38 am

CPU compiler right, GPU compiler error

Post by dbyoung » Thu Jun 13, 2019 1:31 am

VS2017 + MSYS, Compile ffmpeg

libavfilter\vf_scale_cuda.c, 85 line :
CUcontext cu_ctx;
Err : CUcontext no definition found
nv-codec-headers files are not included. What should I do?

I have ffnvcodec header and CUDA10 SDK, Where do I need to put it?

OS:WINDOWS10 X64
Last edited by dbyoung on Tue Aug 06, 2019 4:20 am, edited 1 time in total.

dbyoung
Posts: 8
Joined: Sat Apr 15, 2017 10:38 am

Re: CPU compiler right, GPU compiler error

Post by dbyoung » Thu Jun 13, 2019 1:57 am

add --extra-cflags='/ID:\ffnvcodec'

still no.
err is same.
add head D:\ffnvcodec not in include cl.exe cmd.

Post Reply
'