On Sun, 12 Mar 2023 at 17:58, Ravi Joshi via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote:
> Hello everyone, > > Thank you for allowing me to join this mailing list and post here. I am > compiling cuda support for ffmpeg in Ubuntu 22.04 OS. Unfortunately, it > throws the following error: > > ravi@asus:~/tools/ffmpeg$ ./configure --enable-nonfree --enable-cuda-nvcc > --enable-libnpp --extra-cflags=-I/usr/local/cuda/include > --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared > ERROR: failed checking for nvcc. > > > I am following the documetional provided by Nvidia at > https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/index.html > > > Below is the necessary information: > OS: Ubuntu 22.04.2 LTS > CUDA Version: 11.7 > GCC Version: 11.3.0 > Kernel Version: 5.19.0-35-generic > > In the log file "ffbuild/config.log", I found following doubtful entry: > > g++ -D_ISOC99_SOURCE -I/usr/local/cuda/include -D__STDC_CONSTANT_MACROS > -std=c++11 -c -o /tmp/ffconf.z2qxBKmX/test.o /tmp/ffconf.z2qxBKmX/test.cpp > test_cflags_cc -std=c11 ctype.h __STDC_VERSION__ >= 201112L > test_cc -std=c11 > BEGIN /tmp/ffconf.z2qxBKmX/test.c > 1 #include <ctype.h> > 2 #if !(__STDC_VERSION__ >= 201112L) > 3 #error "unsatisfied condition: __STDC_VERSION__ >= 201112L" > 4 #endif > END /tmp/ffconf.z2qxBKmX/test.c > > > Please see the attached log file for better understanding the issue. I am > also sharing it via Pastbin (https://pastebin.com/9Z6Puzxp). There is a > total of 17836 lines in the log file. Unfortunately, Pastebin marked the > log file as "Pending Moderation" while composing this email. I apologize > for the inconvenience. > > > How to enable cuda support for ffmpeg in Ubuntu 22.04? > > - > Thanks > Ravi > Hey there, nvcc isn't in your system's path. If you run which nvcc , yiu'll get a blank output. How was CUDA installed on your system? Fix that and you'll be able to build with CUDA support. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".