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: Xander Maas <xjmaas AT gmail.com>
  • 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:32:27 +0100

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
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page