Skip to Content.
Sympa Menu

freetds - Re: [freetds] Problem cross compiling for iPhone (iOS 4)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Fazekas <fdsubs AT t-online.hu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Problem cross compiling for iPhone (iOS 4)
  • Date: Mon, 14 Feb 2011 19:16:28 +0100

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.



Archive powered by MHonArc 2.6.24.

Top of Page