2007-11-22 10:09:25     building FFMPEG fails (bf548-EZKit) ==> SOLVED

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2007-11-22 10:09:25     building FFMPEG fails (bf548-EZKit) ==> SOLVED

Piggebu Piggebu (ANDORRA)

Message: 47402   

=========================== UPDATE: problem solved==========================

Sorry for the hasty post... I saw on


the solution for the problem.

Solution: in the vendor dialog of "make menuconfig" enter into "Blackfin Build options" and chose there  in the first option "FDPIC" as format (not FLAT or so)... that's it








============================ old post =======================================

Hi all


Still working on my camera via USB project, I think I need ffmpeg to grab and manipulate the frames from the camera. (or is there another, better way?)


I tried to compile FFMPEG into the Image but this fails with the messages:


-------------------------------------------snip from building messages---------------------------------------------------


make[1]: Leaving directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/linux-2.6.x'

if [ -f linux-2.6.x/vmlinux ]; then \

                ln -f linux-2.6.x/vmlinux linux-2.6.x/linux ; \


. linux-2.6.x/.config; if [ "$CONFIG_MODULES" = "y" ]; then \

                [ -d linux-2.6.x/modules ] || mkdir linux-2.6.x/modules; \

                make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x modules; \


make[1]: Entering directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/linux-2.6.x'

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  CALL    scripts/checksyscalls.sh

  Building modules, stage 2.

  MODPOST 57 modules

make[1]: Leaving directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/linux-2.6.x'

for dir in  lib user ; do [ ! -d $dir ] || make ARCH=blackfin   -C $dir || exit 1 ; done

make[1]: Entering directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib'

[ -z "" ] || make -j1  || exit $?

[ -z "" ] || make -j1  || exit $?

[ -z "libssl libg zlib libjpeg ffmpeg libusb libusb" ] || make -j1 ffmpeg libg libjpeg libssl libusb zlib || exit $?

make[2]: Entering directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib'

make -C ffmpeg

make[3]: Entering directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib/ffmpeg'

find ffmpeg-svn-9768 -type f -print0 | xargs -0 touch -r ffmpeg-svn-9768/configure

set -e ; \

        rm -rf build ; \

        mkdir build ; \

        cd build ; \

        ../ffmpeg-svn-9768/configure \

                --prefix=/usr \

                --source-path=$PWD/../ffmpeg-svn-9768 \

                --target-os=Linux \

                --cpu=bfin \

                --arch=bfin \

                --extra-ldflags=" -Wl,-elf2flt          -mcpu=bf549-0.0" \

                --enable-static \

                --enable-shared \

                --enable-gpl \

                --enable-pp \

                --disable-strip \

                --disable-v4l2 \


bfin-uclinux-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 SVN.  If the latest version fails, report the problem to the

ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.err" produced by configure as this will help

solving the problem.

make[3]: *** [build/Makefile] Error 1

make[3]: Leaving directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib/ffmpeg'

make[2]: *** [ffmpeg] Error 2

make[2]: Leaving directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/devel/Weiss/uCLinux/BF548/uclinux-dist/lib'

make: *** [subdirs] Error 1




Background infos:

- this comes from enabling the menu "FFMPEG and FFServer" (or similar) in the "make menuconfig" vendor dialog

- using the bf548 EZKit-Board

- using latest SVN trunk


Any help and suggestions are very welcome!


Kind regards




PS: as it is suggested in the error message I tried the latest svn trunk of ffmpeg, without any success. it complains about the --disable-v4l2 option (unknown option). When I remove this option it complains to add --cross-compile, adding this does not change the error message (still saying I should add --cross-compile). I made the changes in the uclinux-dist/lib/ffmpeg/Makefile


PPS: "Kernel support for FDPIC ELF binaries" menu option is enabled




2007-11-22 13:30:48     Re: building FFMPEG fails (bf548-EZKit) ==> SOLVED


Message: 47411    Piggebu:


You can not build ffmpeg with the bfin-uclinux compiler - it requires to be built with the bfin-linux-uclibc compiler.


Just change things in the blackfin build options to use FDPIC build option.






2008-07-17 10:22:03     Re: building FFMPEG fails (bf548-EZKit) ==> SOLVED

Christopher Harrsen (UNITED STATES)

Message: 59018   




I am seeing the same errors building FFMPEG. I would like to enable the FDPIC build option but I only have the following choices under Blackfin build options:


(FLAT) Binary format                                     │ │

  │ │            [*] Install ELF shared libraries                         │ │

  │ │            [ ] Install FLAT shared libraries                        │ │

  │ │                 User/Lib CFLAGS =: "-g -O2"                         │ │

  │ │            [ ] build with stack overflow checking                   │ │

  │ │            [ ] build with mudflap pointer checking                  │ │

  │ │            [*] install uClinux-dist .config into /root


Where can I enable this selection?








2008-07-17 21:40:15     Re: building FFMPEG fails (bf548-EZKit) ==> SOLVED

Mike Frysinger (UNITED STATES)

Message: 59041   


this is an old thread ... please start new ones in the future


the page you're looking at is exactly where you change things.  it is explained here: