On 23 Nov 2009, at 16:19, Michael Davey wrote:

> I am using the mysql c library in my application, and have wrapped the C 
> calls in an objective-C class (source available if needed).
> 
> I have added the linking references as per instructions I have found on the 
> web and when I run my application in debug mode everything works just fine, 
> however, when I build it for release, I get a lot of errors that seem to stem 
> from the following:
> 
> ld: warning: in /usr/local/mysql/lib/libmysqlclient_r.dylib, file is not of 
> required architecture
> 
> 
> What does this mean if my application compiles and runs just fine in debug 
> mode? I have checked and the links to the zlib and mysqlclient are present 
> for both build configurations, but for whatever reason, it will not build in 
> release.
> 
> Any help will be gratefully received...
> 
> Mikey

I have found the answer - it turns out that the default for release is to build 
for PPC/i386 and i386_64 - I now either need to find a universal build library 
or just have my application run on my own architecture only.

I have googled and found this solution for building a universal lib:

http://nevali.net/post/155123567/how-to-build-universal-binary-mysql-client-libraries

However this fails - does anyone else out here either know what to do, or how I 
can fix the following error:

checking for restartable system calls... configure: error: in 
`/opt/mysql-5.1.41':
configure: error: cannot run test program while cross compiling

Many thanks...

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to