Re: Problem cross compiling for iPhone (iOS 4)
Xander Maas <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Daniel, Nearly, I didn't enter -D__IPHONE_OS_VERSION_MIN_REQUIRED=40200 when compiling, nor did I specify a new $PATH. I am going to try this tomorrow when I am at work again. I will also post my ./configure tomorrow. Xander On 14 feb 2011, at 19:16, Daniel Fazekas wrote: > 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. > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds