File: README.win

package info (click to toggle)
myodbc 3.51.11-6.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,056 kB
  • ctags: 1,933
  • sloc: ansic: 31,656; sh: 10,955; cpp: 2,439; makefile: 1,120
file content (181 lines) | stat: -rw-r--r-- 4,773 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
+-------------------------------------------------------------+
| Connector/ODBC                                              |
| Windows Platforms                                           |
+-------------------------------------------------------------+

INTRODUCTION
---------------------------------------------------------------

In this document I explain how to build the MyODBC driver on
Windows platforms. I will be as brief as possible.

WHAT YOU NEED
---------------------------------------------------------------

Windows
-------

ODBC has been a standard part of Windows since 3.1 but we do
not build for very old versions of Windows. Consider building 
on and for Windows XP or newer. Windows 2000 should be fine also.

Compiler Tools
--------------

We regularly build using either MS Visual C/C++ v6 or MS
Visual C/C++ v7 (.NET). Other compilers may work as well.

Source Code
-----------

The source code is the main thing. You can get it from the bk
source repository if you want the 'bleeding edge' code but most
people will simply download the zip or tar-ball of the source.

Qt Class Library
----------------

There are two different Graphical User Interfaces for 
configuring MyODBC - CTL3D based and Qt based. If you plan to 
build MyODBC with an older compiler such as VC v6 then you can 
use either one. If you plan to use a newer compiler you may find 
that CTL3D is not supported. In this case you want to build 
the Qt based GUI.


NOTE:	The CTL3D based code will be phased out at some point
        in the future.


MySQL
-----

We usually build with the latest stable release of MySQL - 
using a static client lib and other development files.   


CTL3D BASED BUILD AND INSTALL
---------------------------------------------------------------

Build util Library
------------------

It is common to build MyODBC from the DOS prompt. Open a DOS
prompt and cd into the source code directory.

Start by building the utility library. cd to the util 
sub-directory and do the following;

> nmake -f Makefile.win

This will create the util library in the util directory.

Build Driver Library
--------------------

cd into the win32 directory and edit Makefile.ini to match your
environment. In particular you want to set PORTABLE_GUI = 0 and
MYSQL_PATH to the directory where the MySQL development files
are installed.

Do the following to build;

> nmake -f Makefile

This will create the driver in the Release sub directory. In
this case the GUI code is in the driver itself and you are
ready to install it.

Build myodbcinst Tool
---------------------

cd into myodbcinst directory and do the following;

> nmake -f Makefile.win

This will create a myodbcinst executable in the current directory.

Install
-------

Copy the driver library (the dll) to the Windows\System32 
directory and then use the myodbcinst command-line tool to register
the driver. Simply execute it without arguments and see the help
screen listed.



Qt BASED BUILD AND INSTALL
---------------------------------------------------------------

Build Qt Library And Tools
--------------------------

If you want to build the Qt based GUI then you should download
and install Qt. You can get a GPL version at;

http://www.trolltech.com

Build util Library
------------------

It is common to build MyODBC from the DOS prompt. Open a DOS
prompt and cd into the source code directory.

Start by building the utility library. cd to the util 
sub-directory and do the following;

> qmake 
> nmake -f Makefile

This will create the util library in the util directory.

Build Driver Library
--------------------

cd into the win32 directory and edit Makefile.ini to match your
environment. In particular you want to set PORTABLE_GUI = 1 and
MYSQL_PATH to the directory where the MySQL development files
are installed.

Do the following to build;

> nmake -f Makefile

This will create the driver in the Release sub directory. In
this case the driver does not contain the GUI code. We build this
as a separate, setup, library.

Build Setup Library
-------------------

cd into the setup directory and do the following;

> qmake 
> nmake -f Makefile

Build myodbcinst Tool
---------------------

cd into myodbcinst directory and do the following;

> qmake 
> nmake -f Makefile

This will create a myodbcinst executable in the current directory.

Install
-------

Copy the driver and setup libraries (the dlls) to the 
Windows\System32 directory and then use the myodbcinst command-line 
tool to register the driver. Simply execute it without arguments 
and see the help screen listed.




+-------------------------------------------------------------+
| Peter Harvey <pharvey@mysql.com                             |
+-------------------------------------------------------------+