[FFmpeg-trac] #7742(build system:new): Enabling the option --enable-cuda-sdk results in a build failure. Failing component is scale_cuda
FFmpeg
trac at avcodec.org
Sun Feb 17 22:27:02 EET 2019
#7742: Enabling the option --enable-cuda-sdk results in a build failure. Failing
component is scale_cuda
-------------------------------------+-------------------------------------
Reporter: Brainiarc7 | Type: defect
Status: new | Priority: normal
Component: build | Version: git-
system | master
Keywords: scale_cuda | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
'''Summary of the bug:'''
As stated, enabling the option {{{--enable-cuda-sdk}}} results in a build
error, as shown below.
'''How to reproduce:'''
Having installed all dependencies, including the nv-codec-headers, results
in:
{{{
In file included from libavfilter/vf_scale_cuda.c:31:0:
./libavutil/cuda_check.h: In function ‘ff_cuda_check’:
./libavutil/cuda_check.h:38:7: error: ‘tcuGetErrorName’ undeclared (first
use in this function); did you mean ‘cuGetErrorName’?
((tcuGetErrorName *)cuGetErrorName_fn)(err, &err_name);
^~~~~~~~~~~~~~~
cuGetErrorName
./libavutil/cuda_check.h:38:7: note: each undeclared identifier is
reported only once for each function it appears in
./libavutil/cuda_check.h:38:24: error: expected expression before ‘)’
token
((tcuGetErrorName *)cuGetErrorName_fn)(err, &err_name);
^
./libavutil/cuda_check.h:39:7: error: ‘tcuGetErrorString’ undeclared
(first use in this function); did you mean ‘cuGetErrorString’?
((tcuGetErrorString *)cuGetErrorString_fn)(err, &err_string);
^~~~~~~~~~~~~~~~~
cuGetErrorString
./libavutil/cuda_check.h:39:26: error: expected expression before ‘)’
token
((tcuGetErrorString *)cuGetErrorString_fn)(err, &err_string);
^
ffbuild/common.mak:60: recipe for target 'libavfilter/vf_scale_cuda.o'
failed
make: *** [libavfilter/vf_scale_cuda.o] Error 1
make: *** Waiting for unfinished jobs....
}}}
'''Build configuration:'''
FFmpeg is configured and built as shown:
{{{
cd ~/ffmpeg_sources
git clone https://github.com/FFmpeg/FFmpeg -b master
cd FFmpeg
PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig:/opt/intel/mediasdk/lib/pkgconfig"
./configure \
--pkg-config-flags=--static \
--prefix=/home/brainiarc7/bin \
--bindir=/home/brainiarc7/bin \
--extra-cflags=-I/home/brainiarc7/bin/include \
--extra-ldflags=-L/home/brainiarc7/bin/lib \
--enable-cuda-sdk \
--enable-cuvid \
--enable-libnpp \
--extra-cflags=-I/usr/local/cuda/include/ \
--extra-ldflags=-L/usr/local/cuda/lib64/ \
--enable-nvenc \
--extra-cflags=-I/opt/intel/mediasdk/include \
--extra-ldflags=-L/opt/intel/mediasdk/lib \
--extra-ldflags=-L/opt/intel/mediasdk/plugins \
--enable-libmfx \
--enable-libass \
--enable-vaapi \
--disable-debug \
--enable-libdrm \
--enable-opencl \
--enable-gpl \
--cpu=native \
--enable-opengl \
--enable-libfdk-aac \
--enable-libx265 \
--extra-libs='-lpthread -lm' \
--enable-nonfree
PATH="$HOME/bin:$PATH" make -j$(nproc) VERBOSE=1
make -j$(nproc) install
make -j$(nproc) distclean
hash -r
}}}
Build logs are attached below.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7742>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list