building ffmpeg with --enable-gcrypt fails

Questions that occur when trying to compile FFmpeg.
Post Reply
hydra3333
Posts: 195
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

building ffmpeg with --enable-gcrypt fails

Post by hydra3333 » Sat Dec 01, 2018 5:28 am

Hello, 2 things.

1 Apparently ffmpeg can be built with --enable-gcrypt so I thought I'd give
it a try.
libgpg-error is a dependency of libgcrypt.
One or both of two recent commits in
https://git.gnupg.org/cgi-bin/gitweb.cg ... ;a=summary
seems to cause an error building libgcrypt
https://git.gnupg.org/cgi-bin/gitweb.cg ... ;a=summary
Does anyone else experience this ?
I am unsure how to report that, any ideas ?

2 Anyway, building with a prior libgpg-error commit works, however when
ffmpeg is then built (cross-compiled) with --enable-gcrypt then the
configure aborts saying that ffmpeg didn't detect gcrypt.
From the ffbuild.log :-

Code: Select all

x86_64-w64-mingw32-gcc -O3 -Wl,--nxcompat,--dynamicbase
-Wl,--high-entropy-va -Wl,--as-needed -Wl,--image-base,0x140000000 -o
/tmp/ffconf.KIE07SEz/test.exe /tmp/ffconf.KIE07SEz/test.o -lgcrypt -lintl
-liconv
/home/u/Desktop/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-ming
w32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld:
/home/u/Desktop/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-ming
w32/8.2.0/../../../../x86_64-w64-
mingw32/lib/../lib/libgcrypt.a(libgcrypt_la-visibility.o):visibility.c:(.tex
t+0x4a): undefined reference to `gpg_err_code_from_errno'
. lot of similar .
/home/u/Desktop/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-ming
w32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libgcrypt.a(random-syste
m.o):random-system.c:(.text+0x289): undefined reference to `gpg_strerror'
collect2: error: ld returned 1 exit status
ERROR: gcrypt not found
What am I doing wrong ?

Post Reply