[FFmpeg-devel] [PATCH] configure: cuda_llvm: fix include path for MSYS2

Timo Rothenpieler timo at rothenpieler.org
Mon Aug 5 22:57:37 EEST 2019


On 05.08.2019 21:47, Ricardo Constantino wrote:
> MSYS2 converts paths to MinGW-based applications from unix to
> pseudo-windows paths on execution time.
> Since there was no space between '-include' and the path, MSYS2 doesn't
> detect the path properly.
> ---
>   configure | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index bddc05b850..34c2adb4a4 100755
> --- a/configure
> +++ b/configure
> @@ -6094,7 +6094,7 @@ fi
>   if enabled cuda_nvcc; then
>       nvccflags="$nvccflags -ptx"
>   else
> -    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -include${source_link}/compat/cuda/cuda_runtime.h"
> +    nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -include ${source_link}/compat/cuda/cuda_runtime.h"
>       check_nvcc cuda_llvm
>   fi
>   
> 

Are you sure this is necessary? source_link only ever points to either . 
or src, and I don't see why msys2 would need to fix that, since it's a 
relative path.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4538 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190805/45f179e9/attachment.bin>


More information about the ffmpeg-devel mailing list