File: README.cygwin

package info (click to toggle)
mysql++ 2.0.7-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,548 kB
  • ctags: 2,792
  • sloc: cpp: 35,566; sh: 8,517; xml: 2,769; perl: 752; makefile: 178
file content (62 lines) | stat: -rw-r--r-- 2,289 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Limitations
~~~~~~~~~~~
	At the moment, Cygwin can only build a static version of
	MySQL++.  The practical upshot of this is that Cygwin can
	only be used to build LGPL or GPL-licensed MySQL++ programs.
	Unless you're one of the few that have a commercial Cygwin
	license, you are already under this restriction because
	your programs must be GPL-licensed in this case anyway.
	(See http://www.redhat.com/software/cygwin/ for details.)

	If your program is under some other license and you do not
	have a commercial Cygwin license, you must use Visual C++.

	If the cost is the only thing keeping you from using
	Visual C++, there are free versions of VC++ available.
	See the Visual C++ item in the MySQL++ FAQ for details:
	http://tangentsoft.net/mysql++/#faq


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.
	You do not need to build a Cygwin version of the MySQL server;
	it's still best to use the native Win32 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Now that the MySQL client library is built and installed,
	you can build MySQL++.	The only trick is that you have to
	pass the proper flag to the configure script to make it build
	a static version of MySQL++ only.

	The simplest set of commands for this is:

	$ ./configure --disable-shared
	$ make
	$ make install

	For more on configure script options, see README.unix.