<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FFmpeg &amp; cross-compiling for Windows on Linux</title>
	<atom:link href="http://www.plutinosoft.com/ffmpeg-cross-compiling-for-windows-on-linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.plutinosoft.com/ffmpeg-cross-compiling-for-windows-on-linux</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 18:33:39 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: roboknight</title>
		<link>http://www.plutinosoft.com/ffmpeg-cross-compiling-for-windows-on-linux/comment-page-1#comment-17779</link>
		<dc:creator>roboknight</dc:creator>
		<pubDate>Thu, 15 Apr 2010 21:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.plutinosoft.com/blog/?p=534#comment-17779</guid>
		<description>Oh, one quick note to my previous post:  all the dashes before options are doubled.  This blog doesn&#039;t register them unless you do something like quoting your text or something, I&#039;d guess.  Didn&#039;t notice that when I was doing this, but I think a previous poster mentioned it also.</description>
		<content:encoded><![CDATA[<p>Oh, one quick note to my previous post:  all the dashes before options are doubled.  This blog doesn&#8217;t register them unless you do something like quoting your text or something, I&#8217;d guess.  Didn&#8217;t notice that when I was doing this, but I think a previous poster mentioned it also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboknight</title>
		<link>http://www.plutinosoft.com/ffmpeg-cross-compiling-for-windows-on-linux/comment-page-1#comment-17778</link>
		<dc:creator>roboknight</dc:creator>
		<pubDate>Thu, 15 Apr 2010 21:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.plutinosoft.com/blog/?p=534#comment-17778</guid>
		<description>This is how I got cross compiling to work (from a mac to pc ... how&#039;s that for a cross).
First, I built the mingw32 tools for the Mac.  I won&#039;t go into that.  It was long and painful, plus, if you are using linux, apt or yum or another package manager will go a long way to helping you get the tools.

Second, I got ffmpeg from source using git:

git clone git://git.ffmpeg.org/ffmpeg/
cd ffmpeg
git clone git://git.ffmpeg.org/libswscale/

Once that was accomplished, I built a build directory: 

mkdir build
cd build

Then I used this configure line:
../configure --cross-prefix=/Users/bpw/WindowsTools/bin/i386-mingw32- --enable-cross-compile --arch=i386  --target-os=mingw32 --enable-memalign-hack

Make sure when you use this that GCC_EXEC_PREFIX is unset or pointing to the location of your crt1.o file in your tools installation.  In general though, having this set can cause a lot of inadvertent &quot;non-configures&quot;.  Also note that the the --cross-prefix _includes_ the i386-mingw32- .  You need to use _YOUR PREFIX_.  There are probably a few other ways to provide the prefix, but this one is the easiest.  Also, make sure your path points to your tools.

At any rate, most of this is trivial information for people who cross-compile on a regular basis, but I discovered there is a lot of outdated info on cross-compiling ffmpeg (options that don&#039;t exist anymore, options that have changed, new options).  At any rate, this got me building.  I tested ffmpeg on WindowsXP running under VirtualBox and it seemed to work great.  I need to test it a little more heavily before I give it the final okay, but it at least built.  I&#039;m building on a Macbook Pro, so I think there might be some 64 bit issues, but maybe I won&#039;t run into them because I&#039;m going to a 32 bit target.  At least I hope not.</description>
		<content:encoded><![CDATA[<p>This is how I got cross compiling to work (from a mac to pc &#8230; how&#8217;s that for a cross).<br />
First, I built the mingw32 tools for the Mac.  I won&#8217;t go into that.  It was long and painful, plus, if you are using linux, apt or yum or another package manager will go a long way to helping you get the tools.</p>
<p>Second, I got ffmpeg from source using git:</p>
<p>git clone git://git.ffmpeg.org/ffmpeg/<br />
cd ffmpeg<br />
git clone git://git.ffmpeg.org/libswscale/</p>
<p>Once that was accomplished, I built a build directory: </p>
<p>mkdir build<br />
cd build</p>
<p>Then I used this configure line:<br />
../configure &#8211;cross-prefix=/Users/bpw/WindowsTools/bin/i386-mingw32- &#8211;enable-cross-compile &#8211;arch=i386  &#8211;target-os=mingw32 &#8211;enable-memalign-hack</p>
<p>Make sure when you use this that GCC_EXEC_PREFIX is unset or pointing to the location of your crt1.o file in your tools installation.  In general though, having this set can cause a lot of inadvertent &#8220;non-configures&#8221;.  Also note that the the &#8211;cross-prefix _includes_ the i386-mingw32- .  You need to use _YOUR PREFIX_.  There are probably a few other ways to provide the prefix, but this one is the easiest.  Also, make sure your path points to your tools.</p>
<p>At any rate, most of this is trivial information for people who cross-compile on a regular basis, but I discovered there is a lot of outdated info on cross-compiling ffmpeg (options that don&#8217;t exist anymore, options that have changed, new options).  At any rate, this got me building.  I tested ffmpeg on WindowsXP running under VirtualBox and it seemed to work great.  I need to test it a little more heavily before I give it the final okay, but it at least built.  I&#8217;m building on a Macbook Pro, so I think there might be some 64 bit issues, but maybe I won&#8217;t run into them because I&#8217;m going to a 32 bit target.  At least I hope not.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
