Quote:
Originally Posted by gregcaulder
I have found source for a Cocoa MySQL framework/library. It compiles correctly, but when the iPhone simulator tries to run it, it completely crashes and needs to send a report. I have already sent an email to support, but they don't exists.
So what about this as a starting point, if you download it look for a framework called MCPKit_bundled.framework. That is the one you need.
SourceForge.net: Downloading ...
|
Hi,
me too I am trying to implement mysql in my app for iPhone 2.2.
I have downloaded the mysql source from
MySQL 5.1 Source Downloads
then I have properly compiled it with terminal, but when I get the resulting static lib libmysqlclient.a and link it to my XCode project-release-iphone, I get an error when compiling:
ld warning: in Libs/iPhone/libmysqlclient.a, file is not of required architecture.
I have compiled the sources with these 3 commands in terminal
./configure --prefix=/usr/local --enable-cross-compile --host=arm-apple-darwin9.6.0 --target=arm-apple-darwin9.6.0 --with-machine-type=arm
make
sudo make install
Then I took the library libmysqlclient. from /usr/local/mysql/lib
My big question is: how to set the ./configure text line in Terminal in order to properly compile the mysql source for the iPhone 2.2?
Any pointer would be greatly welcome. Thank you.