<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/24 Michael McNamara <span dir="ltr"><<a href="mailto:mmcnamara@control4.com" target="_blank">mmcnamara@control4.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-size:14px;word-wrap:break-word">
<div style="font-family:Calibri,sans-serif">I believe that the linker issues described in my original message must stem from the 1.2.0 iOS package being built with Xcode 5 against the iOS 7 SDK. As such they don't appear to be backward compatible for use
with Xcode 4.6.3. This being the case, I've been trying to build 1.2.0 myself using Xcode 4.6.3. The repo that I'm building from:</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div><a style="font-size:medium;white-space:pre-wrap">git://anongit.freedesktop.org/gstreamer/sdk/cerbero</a></div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">I can bootstrap with no issues:</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">$ ./cerbero-uninstalled bootstrap</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">I then edit config/cross-ios* to set the SDK to 6_1 and start the build process:</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">$ ./cerbero-uninstalled -c config/cross-ios-universal.cbc package gstreamer-1.0</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">I'm currently dying when building glib:</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">…</div>
<div style="font-family:Calibri,sans-serif">
<div>
<div>checking for i386-apple-darwin10-gcc... llvm-gcc-4.2</div>
<div>checking whether the C compiler works... no</div>
<div>configure: error: in `/Users/mike/cerbero/sources/ios_universal/x86/glib-2.38.0':</div>
<div>configure: error: C compiler cannot create executables</div>
<div>See `config.log' for more details</div>
<div>***** Error running 'package' command:</div>
<div>Recipe 'glib' failed at the build step 'configure'</div>
</div>
<div><br>
</div>
<div>Somewhat confusingly I can do a buildone for both x86 and arm on glib with no issues?</div>
<div><br>
</div>
<div>$ ./cerbero-uninstalled -c config/cross-ios-x86.cbc buildone glib</div>
</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">$ ./cerbero-uninstalled -c config/cross-ios-arm7.cbc buildone glib</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">Suggestions on where to poke around would be welcome.</div></div></blockquote><div>Hi,<br><br></div><div>I have launched a clean rebuild here trying to reproduce it. The error should be logged in /Users/mike/cerbero/sources/<div>
ios_universal/x86/glib-2.38.0/config.log, could you paste it here?<br><br></div><div>Andoni<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-size:14px;word-wrap:break-word">
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif">Thanks!</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<div style="font-family:Calibri,sans-serif"><br>
</div>
<span style="font-family:Calibri,sans-serif">
<div style="padding:3pt 0in 0in;text-align:left;font-size:11pt;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;font-family:Calibri">
<span style="font-weight:bold">Subject: </span>Xcode 4.6.3 GStreamer 1.2.0 linker error<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi All,</div>
<div><br>
</div>
<div>I'm attempting to build a project for iOS / iOS Simulator with Xcode 4.6.3 using GStreamer 1.2.0:</div>
<div><br>
</div>
<div><a href="http://gstreamer.freedesktop.org/data/pkg/ios/" target="_blank">http://gstreamer.freedesktop.org/data/pkg/ios/</a></div>
<div><br>
</div>
<div>and am dying with the following linker error:</div>
<div><br>
</div>
<div>~/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework/GStreamer(libcairo_a_i386_-cairo.o), archive member 'libcairo_a_i386_-cairo.o' with length 37376 is not mach-o or llvm bitcode for architecture i386</div>
<div><br>
</div>
<div>I thought perhaps a mis-lipo'd version of this lib had made it into the above distribution based on the error, so I decided to check into it. I did a lipo –thin on both architectures (i386 and armv7) and then used ar to extract the respective archives.
Checking with otool on the libcairo object files, both seem to be correct:</div>
<div><br>
</div>
<div>$ otool -hv libcairo_a_i386_-cairo.o </div>
<div>libcairo_a_i386_-cairo.o: is an LLVM bit-code file</div>
<div><br>
</div>
<div>$ otool -hv libcairo_a_armv7_-cairo.o </div>
<div>libcairo_a_armv7_-cairo.o: is an LLVM bit-code file</div>
<div><br>
</div>
<div>Which flies in the face of the linker error above. I'm totally stumped. I tried Xcode 5 on the same project and don't seem to have any issues. To answer the obvious question, I'm not currently in a spot where I cannot use Xcode 5 unfortunately. </div>
<div><br>
</div>
<div>Does anyone have any idea why this would be the case? Any advice or guidance would be most appreciated!</div>
<div><br>
</div>
</div>
</div>
</div></div></span>
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a>
</div></div>