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
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --disable-schannel --enable-amf --enable-avisynth --enable-bzlib --enable-fontconfig --enable-gcrypt --enable-gmp --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libilbc --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libwebp --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-opengl --enable-zlib --enable-cuda-nvcc --enable-nvenc --enable-nvdec --enable-cuvid --enable-ffnvcodec --enable-cuda --enable-libnpp --toolchain=msvc

CPU Compiler is right.

add
--enable-cuda-nvcc --enable-nvenc --enable-nvdec --enable-cuvid --enable-ffnvcodec --enable-cuda --enable-libnpp

support GPU, compiler is error, config.log:
......
cl.exe -nologo -W3 -wd4018 -wd4146 -wd4244 -wd4305 -wd4554 -O2 -c -Fo./ffconf.vOZvKfab/test.o ./ffconf.vOZvKfab/test.c
test.c
ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

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

OS:WINDOWS7 X64

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