<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; ">
<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 href="git://anongit.freedesktop.org/gstreamer/sdk/cerbero" 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 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 id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif; ">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">Subject: </span>Xcode 4.6.3 GStreamer 1.2.0 linker error<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<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/">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>
</span>
</body>
</html>