[FFmpeg-user] configure fails cross compiling ffmpeg to raspberry pi

Linus S linus122xbb at gmail.com
Thu Jul 16 15:20:05 CEST 2015


Using the following command to configure ffmpeg for cross compiling I
receive an error:

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PIBUILD/lib/pkgconfig
CC=${CCPREFIX}gcc CXX=${CCPREFIX}g++ ./configure
--enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel
--target-os=linux --prefix=$PIBUILD --extra-cflags="-I$PIBUILD/include
-I$PIUSR/include -fPIC" --extra-ldflags="-L$PIBUILD/lib -L$PIUSR/lib
-fPIC" --enable-libfdk-aac --pkg-config=`which pkg-config`

The output is as following:
root at XeonLatitude-E6400:~/pi/ffmpeg#
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PIBUILD/lib/pkgconfig CC=${CCPREFIX}gcc
CXX=${CCPREFIX}g++ ./configure --enable-cross-compile
--cross-prefix=${CCPREFIX} --arch=armel --target-os=linux --prefix=$PIBUILD
--extra-cflags="-I$PIBUILD/include -I$PIUSR/include -fPIC"
--extra-ldflags="-L$PIBUILD/lib -L$PIUSR/lib -fPIC" --enable-libfdk-aac
--pkg-config=`which pkg-config`
gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

NOTE: I am using the latest version of git available from ubuntu aptitude
repositories.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 170581 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150716/7237e94f/attachment.bin>


More information about the ffmpeg-user mailing list