[Mysql-cocoa-users] Requirement for libmysqlclient....
Brought to you by:
sergecohen
|
From: Serge C. <co...@em...> - 2002-11-29 10:17:39
|
Hi,
I'll post this also to the user mailing list... I think it can be of=20
interest for people there as well (and maybe someone over here will be=20=
better at explaining the differences between targets, and more objective=20=
about pros and cons of the framework).
Let me explain the actual status of the framework: There is 3 targets=20
for the moment :
1. SMySQL : This is a framework to be put in one of the=20
Library/Framework places, and it needs the libmysqlclient.dylib to work=20=
properly. This is interesting mainly for command line tools, as such=20
tools cannot be linked with a "bundled" framework.
For GUI application (anything comming as a bundle)
2. SMySQL_embeded, is made to be put in the directory :=20
@executable_path/../Frameworks (Rem: @executable path is the path to=20
the real executatble, something like=20
.../your_app.app/Contents/MacOS/your_app, then the framework is in=20
directory : .../your_app.app/Contents/Frameworks/SMySQL.framework -which=20=
is a directory as well-).
This is nice because if you distribute a application peoples doesn't=20
need to install the framework by them self (it comes bundled within the=20=
application).
The draw back of this target, is that it still needs the=20
libmysqlclient.dylib (in the proper place, being=20
/usr/local/lib/mysql/libmysqlclient.dylib).
3. SMySQL_fully_embeded : The last solution is something I've done later=20=
to overcome the problem of installing libmysqlclient.dylib: it include=20=
(staticaly) the libmysqlclient (using slightly modified sources from=20
mysql 3.23.??? -don't remember anymore, but should be in the sources-).=20=
To use it in an application, you just put it in the bundle (cf. 2), you=20=
DO NOT NEED the system wide libmysqlclient.dylib required by previous=20
two solutions.
Hope this is clear... other wise just bother me about it (please on the=20=
list).
Serge.
PS: Did you managed with CVS? are you using the version 2 framework?
PPS: In some near future, I'll be directly linking with the static=20
version of libmysqlclient (whereas for the moment I'm getting the object=20=
files within the project). That mean some one will need the library=20
(static) on the computer to be able to build SMySQL ("fully=20
emebeded")... Do anyone see problems from that?
Le vendredi 29 novembre 2002, =E0 08:08 , Robert Cerny a =E9crit :
> Hi,
> thanks again. At first, I'm not very sure about the purpose of your=20
> classes. I need to implement some lightweight database mechanism in my=20=
> ObjC program. I did believe that your framework is exactly what I need=20=
> but after reading tons of emails, web pages etc. I'm not so sure =
now...
> I did build the framework and did install it onto its designed place -=20=
> ~/Library/Frameworks. However I'm sure how to get the=20
> libmysqlclient.dylib and if I need it at all.
> Could you bring me a little bit of light in it?
>
> Thanks a lot
> Robert
>
----------------------------------------------------
Serge Cohen
GPG Key ID: 1024D/69B1D346
----------------------------------------------------
|