Re: Problem cross compiling for iPhone (iOS 4)
Daniel Fazekas <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
On Feb 14, 2011, at 18:51, Xander Maas wrote: > Yes, I have. I have specified the 4.2 SDK for both the Simulator library (i386) and iPhoneOS. I also use the same SDK for my project. So you have built the FreeTDS code twice using configure something like this? export PATH="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" CFLAGS="-D__IPHONE_OS_VERSION_MIN_REQUIRED=40200 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk" ./configure --host=i386-apple-darwin make save the libraries, then repeated for the real iOS SDK & arm arch and used lipo to combine the two architectures together? Because when I build it like that, it links to _fopen rather than _fopen$UNIX2003. That UNIX2003 thing is something for Mac OS X 10.5/10.6's Unix certification compatibility.