cross compile (with --host=XXX) doesn't work

Help
Roger Pack
2012-11-07
2013-04-25
  • Roger Pack

    Roger Pack - 2012-11-07

    As a note, I get the default gcc (which I think is unexpected?)
    With this configure:

    ./configure -host=i686-w64-mingw32 -prefix=XX -disable-shared -enable-static

    and also wrong ranlib, strip, etc:

    yasm -O2 -f win32 -DPREFIX -Icommon/i386/ -o common/i386/deblock_inter.o common/i386/deblock_inter.asm
    strip:common/i386/deblock_inter.o: File format not recognized

     
  • Roger Pack

    Roger Pack - 2013-02-08

    and possibly another report of it (or is this different-that it compiles the yasm wrongly when cross compiling from ARM to win32):
    https://github.com/rdp/ffmpeg-windows-build-helpers/issues/3#issuecomment-13280078

    for followers, my work around was:
        do_make_install "CC=$(echo $cross_prefix)gcc AR=$(echo $cross_prefix)ar PREFIX=$mingw_w64_x86_64_prefix RANLIB=$(echo $cross_prefix)ranlib STRIP=$(echo $cross-prefix)strip"

     

Log in to post a comment.