mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
configure: use check_lib2 for cuda and cuvid
Fixes building for Windows x86 with MSVC using the link libraries distributed with the CUDA SDK. check_lib2 is required here because it includes the header to get the full signature of the function, including the stdcall calling convention and all of its arguments, which enables the linker to determine the fully qualified object name and resolve it through the import library, since the CUDA SDK libraries do not include un-qualified aliases.
This commit is contained in:
parent
2bd83ef26a
commit
0539ff0e1b
4
configure
vendored
4
configure
vendored
@ -5659,10 +5659,10 @@ fi
|
||||
enabled avfoundation_indev && { check_header_objcc AVFoundation/AVFoundation.h || disable avfoundation_indev; }
|
||||
enabled avfoundation_indev && { check_lib2 CoreGraphics/CoreGraphics.h CGGetActiveDisplayList -framework CoreGraphics ||
|
||||
check_lib2 ApplicationServices/ApplicationServices.h CGGetActiveDisplayList -framework ApplicationServices; }
|
||||
enabled cuda && { check_lib cuda.h cuInit -lcuda ||
|
||||
enabled cuda && { check_lib2 cuda.h cuInit -lcuda ||
|
||||
die "ERROR: CUDA not found"; }
|
||||
enabled cuvid && { add_cflags -I$source_path;
|
||||
check_lib "compat/cuda/cuviddec.h" cuvidCreateDecoder -lnvcuvid ||
|
||||
check_lib2 "compat/cuda/cuviddec.h" cuvidCreateDecoder -lnvcuvid ||
|
||||
die "ERROR: CUVID not found"; } &&
|
||||
{ enabled cuda ||
|
||||
die "ERROR: CUVID requires CUDA"; }
|
||||
|
Loading…
Reference in New Issue
Block a user