[FFmpeg-user] FFmpeg交叉编译openssl时出错

Moritz Barsnick barsnick at gmx.net
Fri Sep 22 12:30:06 EEST 2017

On Tue, Sep 19, 2017 at 17:54:52 +0800, leo at tybofone.com wrote:
> arm-none-linux-gnueabi-gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.Lhn5rbJM.o /tmp/ffconf.Q2c8r4Tb.c
> /tmp/ffconf.Q2c8r4Tb.c:1:25: fatal error: openssl/ssl.h: No such file or directory

You need to install not only the openssl library, but also the
development part of it (in a packaged system it's openssl-dev or
openssl-devel). And since you're cross compiling, these need to be for
the target platform.

If you built your own openssl for the target platform, this needs to be
found by pointing some configure flags at it:
$ ./configure [...] --extra-cflags="-I/my/path/were/i/keep/built/arm/stuff/include" --extra-ldflags="-L/my/path/were/i/keep/built/arm/stuff/lib"
approximately as described here:
(Consider Raspberry Pi as yet another ARM platform.)


More information about the ffmpeg-user mailing list