Re: accessing mysql from Cocoa <newbie>
Re: accessing mysql from Cocoa <newbie>
- Subject: Re: accessing mysql from Cocoa <newbie>
- From: Matthew White <email@hidden>
- Date: Sat, 02 Jun 2001 12:35:14 +0000
Hmmm,
Taking Finlays post I managed to find the correct(I think) directories
although they are in /usr/local/lib/mysql on my system.
Fudging around with the build settings has got me a bit closer (i think) -
I'm now getting the following error in my build.
/usr/bin/ld: warning prebinding disabled because of undefined symbols
/usr/bin/ld: Undefined symbols:
_compress
_uncompress
...failed StandaloneExecutable.LinkUsingFileList
/Users/matthew/mysqltest2/build/mysqltest2.app/Contents/MacOS/mysqltest2 ...
I have added the files from /usr/local/lib/mysql and /usr/local/lib/include
to my project and also /usr/local/lib/mysql to the Library Search path in my
target settings.
Am I being incredibly dense and missing something here?
Thanks,
Matt
>
I have one
>
>
[localhost:mysql/lib/mysql] finlayd% l
>
total 2496
>
-rw-r--r-- 1 root wheel 19136 Apr 5 20:25 libdbug.a
>
-rw-r--r-- 1 root wheel 42128 Apr 5 20:28 libheap.a
>
-rw-r--r-- 1 root wheel 17524 Apr 5 20:27 libmerge.a
>
-rw-r--r-- 1 root wheel 300364 Apr 5 20:27 libmyisam.a
>
-rw-r--r-- 1 root wheel 28240 Apr 5 20:28 libmyisammrg.a
>
-rwxr-xr-x 1 root wheel 127240 Apr 5 20:23
>
libmysqlclient.10.0.0.dylib
>
lrwxr-xr-x 1 root wheel 27 Apr 5 20:28
>
libmysqlclient.10.dylib -> libmysqlclient.10.0.0.dylib
>
-rw-r--r-- 1 root wheel 237844 Apr 5 20:23 libmysqlclient.a
>
lrwxr-xr-x 1 root wheel 27 Apr 5 20:28 libmysqlclient.dylib ->
>
libmysqlclient.10.0.0.dylib
>
-rwxr-xr-x 1 root wheel 716 Apr 5 20:23 libmysqlclient.la
>
-rw-r--r-- 1 root wheel 23472 Apr 5 20:25 libmystrings.a
>
-rw-r--r-- 1 root wheel 308488 Apr 5 20:25 libmysys.a
>
-rw-r--r-- 1 root wheel 137464 Apr 5 20:26 libnisam.a
>
[localhost:mysql/lib/mysql] finlayd% pwd
>
/usr/local/mysql/lib/mysql
>
>
>
You might not have the dylibs, though - I wouldn't worry about it. If
>
you want them, you'll need patched libtool ltconfig and ltmain.sh files.
>
>
On Saturday, June 2, 2001, at 11:10 am, Matthew White wrote:
>
>
> Thanks Finlay,
>
>
>
>> On Saturday, June 2, 2001, at 10:09 am, Matthew White wrote:
>
>>
>
>>> I'm continuing to tinker, but has anyone else tried to use the MySQL c
>
>>> api
>
>>> from Cocoa or have any general pointers (keep the list to less than 50
>
>>> items
>
>>> :-) as to where I am going wrong?
>
>>>
>
>>> Maybe if I can get this going it could be turned into a framework for
>
>>> the
>
>>> coding pleasure of all and sundry.
>
>>
>
>> perhaps you're not linking against the library? you probably need to to
>
>> that. it'll be in $PREFIX/lib ($PREFIX being where you installed
>
>> MySQL).
>
>
>
> Thats what I thought but I don't have a lib folder there - I have an
>
> include
>
> and a libmysql folder though and I have been trying to use the contents
>
> of
>
> these. Perhaps I didn't get the lib folder because I installed from a
>
> package and didn't build from the MySQL source.
>
>
>
> Methinks I'll reinstall my MySql.
>
>
>
> Thanks for the quick response. Ill let the list know how I get on.
>
>>
>
>> -- Finlay
>
>> _______________________________________________
>
>> cocoa-dev mailing list
>
>> email@hidden
>
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
>>
>
>
>
> --
>
> Matthew White
>
> Systems Development Manager
>
> ipoints.co.uk ltd
>
> http://www.ipoints.co.uk
>
> _______________________________________________
>
> cocoa-dev mailing list
>
> email@hidden
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
--
Matthew White
Systems Development Manager
ipoints.co.uk ltd
http://www.ipoints.co.uk