[Mysql-cocoa-users] Re: Requirement for libmysqlclient....
Brought to you by:
sergecohen
|
From: Serge C. <co...@em...> - 2002-11-29 12:17:29
|
I'm afraid there is a missunderstanding...
The SMySQL_fully_embeded version of the framework does not need=20
libmysqlclient around (it contains the code of it). STILL it is only=20
able to connect to an (existing and runing) MySQL DB server.
In other word, this is not (yet) a version of the framework which=20
contains the DB, it is only able to be client of a DB server. This=20
version will hopefully come (soon ?), but is not existing so far.
To put it in other words:
If you want to use MySQL using the SMySQL framework, you need both:
1. the SMySQL_fully_embeded version of the framework (in your=20
application bundle)
2. a running MySQL server (either on same computer or accross network)
Was that your question?
Serge.
Le vendredi 29 novembre 2002, =E0 01:01 , Robert Cerny a =E9crit :
> Hi Serge,
> thanks for your very long email even it didn't answer all my =
questions.=20
> Maybe the libmysqlclient name is a little bit confusing but I would=20
> like to be 100% sure I understand it well.
> Is it possible, using SMySQL_fully_embeded target, create an internal=20=
> database inside my application and maintain it? I don't need add=20
> records but make some selects and populate them in tableviews...
>
> Thanks
> Robert
>
> On Friday, November 29, 2002, at 11:17 AM, Serge Cohen wrote:
>
>> 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=20
>> objective 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=20
>> work properly. This is interesting mainly for command line tools, as=20=
>> such 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=20
>> -which 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=20=
>> the 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=20
>> later to overcome the problem of installing libmysqlclient.dylib: it=20=
>> include (staticaly) the libmysqlclient (using slightly modified=20
>> sources from mysql 3.23.??? -don't remember anymore, but should be in=20=
>> the sources-). To use it in an application, you just put it in the=20
>> bundle (cf. 2), you DO NOT NEED the system wide libmysqlclient.dylib=20=
>> required by previous two solutions.
>>
>>
>> Hope this is clear... other wise just bother me about it (please on=20=
>> the 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=20
>> object files within the project). That mean some one will need the=20
>> library (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=20=
>>> my ObjC program. I did believe that your framework is exactly what I=20=
>>> need but after reading tons of emails, web pages etc. I'm not so =
sure=20
>>> now...
>>> I did build the framework and did install it onto its designed=20
>>> place - ~/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
----------------------------------------------------
>>
>
>
|