x264 Cross Compile Problem

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
davidhoyt
Blank Cone
Blank Cone
Posts: 68
Joined: 02 May 2008 03:26

x264 Cross Compile Problem

Postby davidhoyt » 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:

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
To fix it, I run the following:

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
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.

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 119 guests