[FFmpeg-user] Error while compiling cuda enabled ffmpeg in Ubuntu 22.04
Ravi Joshi
ravi.joshi53 at yahoo.com
Sun Mar 12 16:57:37 EET 2023
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 426443 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230312/1daa6ca9/attachment.bin>
More information about the ffmpeg-user
mailing list