<div dir="ltr">2013/4/11 Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>Lars Hammarstrand <lars.hammarstrand@...> writes:<br>
<br>
> One idea could be to add an "gas" option to configure,<br>
> like "--gas=/abosolute/path/to/gas-preprocessor"<br>
<br>
</div>This does already exist afaik.</blockquote><div><br></div><div>1. Sorry, not at least in version n1.2. Here is "configure --help" output for ffmpeg version n1.2: <a href="http://pastebin.com/vKHiZvv5" target="_blank">http://pastebin.com/vKHiZvv5</a>. I've also checked the configure code.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
> (pls note that this does not work: <br>
> "--as=/absolute/path/to/<a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a> /path/to/as..." ).<br>
<br>
</div>Please test "/path/to/gcc"<br>
<div><br></div></blockquote><div><br></div><div>2. I'm afraid it doesn't matter if you are using gcc, as or "whatever compiler", the problem lies in the ffmpeg configure program <u>which always defaults to the gas-preproc in the search path</u> because of the root cause described at point 2.2 below.</div>
<div><br></div><div>2.1. For example, If you configure ffmpeg with:</div><div><font face="courier new, monospace">--as='/Users/Shared/xbmc-depends/buildtools-native/bin/<a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' </font><br>
</div><div><br></div><div><div><span style="font-family:arial,helvetica,sans-serif">2.2. The basic problem lies in </span><span style="font-family:arial,helvetica,sans-serif">configure,</span><span style="font-family:arial,helvetica,sans-serif"> line 3247 </span><span style="font-family:arial,helvetica,sans-serif">which is the line that is commented out by the xbmc patch:</span><span style="font-family:arial,helvetica,sans-serif"> </span></div>
<div><div><font face="courier new, monospace"> 3246: darwin)</font></div><div><font face="courier new, monospace"> 3247: gas="<a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a> $cc"</font></div>
<div><font face="courier new, monospace"> |</font></div><div><font face="courier new, monospace"> |</font></div><div><font face="courier new, monospace"> +---- Wrong path!! </font></div>
<div><br></div></div></div><div style>2,2. Configure will produce the following config.mak (<a href="http://pastebin.com/xB0GCEJd">http://pastebin.com/xB0GCEJd</a>)</div><div><span style="font-family:'courier new',monospace"># </span><span style="font-family:'courier new',monospace">config.mak - </span><span style="font-family:'courier new',monospace">Automatically generated by configure - do not modify!</span><br>
</div><div>
<div><span style="font-family:'courier new',monospace">AS=</span><span style="font-family:'courier new',monospace"><a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a></span><span style="font-family:'courier new',monospace"> /Applications/Xcode.app/</span><span style="font-family:'courier new',monospace">Contents/Developer/Platforms/</span><span style="font-family:'courier new',monospace">iPhoneOS.platform/Developer/</span><span style="font-family:'courier new',monospace">usr/bin/gcc</span><br>
</div></div><div><div><font face="courier new, monospace"> |</font></div><div><font face="courier new, monospace"> |</font></div><div><font face="courier new, monospace"> +---- Wrong path!! </font></div></div><div>
<font face="courier new, monospace"><br></font></div><div><br></div><div><br></div><div><br></div><div>2.4. Thus, the end result when running make will still always be:<br></div><div><div style><div><span style="font-family:'courier new',monospace"><a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -I. -I./ [....]</span><br>
</div><div><div style="font-family:'courier new',monospace">"Unable to identify target architecture at <b><font color="#000000">/usr/local/bin/<a href="http://gas-preprocessor.pl">gas-preprocessor.pl</a></font></b> line 82." (forced error)</div>
<div style="font-family:'courier new',monospace"><div style="font-family:arial"><div><span style="font-family:'courier new',monospace"> |</span><br>
</div><div><font face="courier new, monospace"> |</font></div><div><font face="courier new, monospace"> +---- </font><span style="font-family:'courier new',monospace">Wrong path!!</span></div>
<div><font face="courier new, monospace"><br></font></div></div></div></div><div style="font-family:'courier new',monospace"><br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Patch (extremely) welcome!<br>
(My idea is to grep for the right syntax in configure,<br>
contrary to you I cannot test.)<br>
<br></blockquote><div><br></div><div>3. Ok, I'll check with Mans Rullgard to see what can be done about it...</div></div></div></div>