File: README-Cygwin.txt

package info (click to toggle)
mysql%2B%2B 3.0.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 10,328 kB
  • ctags: 9,487
  • sloc: cpp: 33,486; sh: 3,091; perl: 809; makefile: 683
file content (34 lines) | stat: -rw-r--r-- 1,415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Prerequisite: Build MySQL
~~~~~~~~~~~~~~~~~~~~~~~~~
    Before you can build MySQL++, you need to build the MySQL client
    library from source.  This is necessary because Cygwin programs
    work best when linked to Cygwin libraries, even though it's
    possible to link to some native Windows libraries.  You do not
    need to build a Cygwin version of the MySQL server; it's still
    best to use the native Windows version of that.

    The MySQL client library does not build correctly out of the box.
    The best instructions I've found covering the necessary changes
    are here:

        http://cygwin.com/ml/cygwin/2004-11/msg00159.html

    I recommend that you use MySQL v4.1.x at this time.  Skip the
    step changing the pthread stuff in my_thr_init.c, as this change
    has already been made in recent versions of MySQL.

    With the changes applied, build and install the client library
    like so:

    $ autoreconf --install --verbose --force
    $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
        --infodir=/usr/share/info --mandir=/usr/share/man \
        --disable-shared --without-{debug,readline,libedit,server}
    $ make
    $ make install


Building the Library and Example Programs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    With that done, you can build MySQL++ just as you would any other
    typical Unix program.  See README-Unix.txt for details.