x264 Cross Compile Problem
Posted: 16 Aug 2008 00:28
Just an FYI - when you try to cross-compile x264 using mingw32, there are compile errors. It tries to use the normal ar, ranlib, and strip. I use:
To fix it, I run the following:
Not the best way to go about it, I suppose. Sorry if this is the wrong forum - I couldn't find another place to put it.
Code: Select all
./configure --host=i586-mingw32msvc --enable-shared --enable-mp4-output --disable-pthread --prefix=/work/vlc/windows-x86-latest/main/extras/contrib
make CC=i586-mingw32msvc-gcc AS=yasm AR=i586-mingw32msvc-ar RANLIB=i586-mingw32msvc-ranlib STRIP=i586-mingw32msvc-strip
Code: Select all
mv Makefile Makefile.tmp; sed 's/ar /$(AR) /g' Makefile.tmp > Makefile; rm -f Makefile.tmp
mv Makefile Makefile.tmp; sed 's/ranlib /$(RANLIB) /g' Makefile.tmp > Makefile; rm -f Makefile.tmp
mv Makefile Makefile.tmp; sed 's/strip /$(STRIP) /g' Makefile.tmp > Makefile; rm -f Makefile.tmp