File: README

package info (click to toggle)
gnade 1.6.2-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,220 kB
  • ctags: 847
  • sloc: ada: 40,154; sh: 4,124; sql: 3,590; makefile: 1,372; xml: 120; awk: 29
file content (389 lines) | stat: -rw-r--r-- 11,415 bytes parent folder | download | duplicates (2)
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
            GNat Ada Database Environment (GNADE)
            ====================================
                  Revision : $Revision: 1.31 $



Contents
========
1. Introduction
2. License/Authors
3. Supported Platforms

4. Linux/Unix installation of the tar packages
   4.1 Installation of the GNADE environment
   4.2 Verification of the functionality
   4.3 Global installation of GNADE
   4.4 Test of the tar package installation

5. Linux/Unix installation of the RPM packges
6. Windows Installation
7. Documentation
8. GNADE and GPS
9. Additional Make Options
10. Contact



1. Introduction
===============

The GNADE projects provides tools and support packages in 
order to allow easy access to different data base systems
using Ada 95 (specially the GNU Ada 95 compiler).

The integration of SQL into Ada 95 is supported by an
embedded SQL translator which generates code working on
top of the GNADE ODBC bindings.

The GNADE ODBC bindings are a thin Ada 95 binding to 
ODBC.

The projects provides additionaly native bindings
to PostgreSQL and MySQL.

Additionally the project provides an experimental 
interface called Ada Database Connectivity. Since this
interface is highly unstable no application code 
should be developed for this interface.

The project is available in tar and rpm format. The 
tar package contains the development environment
which has to build and installed on the target system.


The contents of your package is described in the 
release notes located under doc/releasenotes. 

2. License/Authors
==================

Generally speaking GNADE is an open source project.  For details 
please refer to the ./COPYING and ./AUTHORS files in this 
directory.

3. Supported Platforms
======================
 
This software is known to operate on:
 
- Linux SuSe and Redhat distribution
- Windows NT, 2000, XP
- Solaris

for more information please refere to the release note of 
this release.
                        
4. Linux/Unix/Cygwin Installation of the tar package
====================================================

The installation of the tar package is done in three steps:

 Step 1 - Installation of the development environment.
	  Building all libraries and executables of the 
          GNADE environment.

 Step 2 - Verification of the functionality

 Step 3 - Installation of the GNADE products globally.
 

4.1 Installation of the GNADE environment
=========================================

   After obtaining and unpacking the distribution into a 
   directory, perform the following step to create the 
   GNADE environment:

      cd ./gnade
      ./configure <options> <native bindings>

      Options :=  [-debug] 
		  [-assert] 
		  [--sampledb=<dbvendor>]

   Currently the dbvendor values postgres, mysql and
   mimer (for MimerSQL) are supported.

   Native bindings are available for mysql, postgres.

   All testprograms do require a small sample database. In 
   order to use the database you have to create a user for 
   your data base. Because this step has often to be done using
   a different user id and it is only done once you have
   to perform the following steps manualy:

      [ su db-adminstrator ]
      gmake createuser
      [ exit ]                                    

   After installing the data base user you may run the 
   global makefile by simply entering:

      gmake

   This will produce the libraries for the ODBC binding,
   the esql translator and a sample data base which is used
   by the examples under ./samples.

   In order to use the samples under ./samples you need
   to install the test database.

      gmake createdb

   This will install the tables and data of the test database
   in the database GNADE. Unter ./var you will find some sample
   ODBC init files which should work. For details please refer 
   to the documentation ODBC manager product you are using. 
   

4.2 Verification of the functionality
=====================================

   Make process of the GNADE environment includes the 
   installation of a sample data base. The directory
   ./samples/smaple_db contains the installation procedure
   and the odbc.ini sample file. 

   The ./samples directory contains several samples
   which may be used to verify the correct operation
   of the GNADE environment. If all examples do work
   proceed with step 3.

4.3 Global installation of GNADE
================================

   In order to install the GNADE environment globally on your 
   system execute as root the following command:

      gmake install

   This will install the GNADE libraries and the esql translator
   in your system.

   /usr/local/lib/ada   - All library components
   /usr/bin             - Executable to esql.

   You may change these paths by modifying n the file etc/config.site
   the lines shown below:

	## all binaries (/usr/bin)
	site_bindir="/usr/bin"
	## all libraies  (/usr/lib)
	site_libdir="/usr/lib"
	## all compilation units (/usr/lib/ada/..)
	site_adadir="/usr/lib/ada"

   in the file ./make.conf.in before starting step 1.

4.4 Test of the tar package installation
========================================

The esql translator may be tested by changing into the 
directory ./samples/esql. The files with the extension
adq do contain Ada with embedded SQL code. The Makefile
builds the following executables:

./test_db  - A test file which shows some of the 
	     GNADE esql features.
./nobel_co - Reporting system for the nobel company


5. Installation of the RPM packages
===================================

There are two package for each version.

   gnade-<version>-<build>.src.rpm
   gnade-<version>-<build>.<arch>.rpm

To install the GNADE package execute the following command
as root:

   rpm -ivh  gnade-<version>-<build>.<arch>.rpm

If you like to have the source code install the first package
in the same way.

In order to test your installation copy the contents of 
/usr/share/doc/package/gnade/standalone into a directory
and compile the ada code. If the makefile completes sucessfully
the installation is ready.

PLEASE BE AWARE, THAT THE RPM PACKAGE DOES NOT CHECK YOU 
CONFIGURATION. THIS MEANS ODBC HAS TO BE INSTALLED PROPERLY.

6. Windows DOS / Cygwin Installation
====================================

GNADE provides two basic build environments on the windows platform:

DOS - This is basically a batch driven build process which requires
      only the GNAT and ther GNAT-Win installation. The installer
      for windows provides an environment for DOS. 
GNU - This requires the installation of cygwin. The build works
      verry similar to linux.

There are two ways of obtaining the GNADE release. Either 
by downloading the setup.exe or by retrieving it from the 
CVS. 

** NOTE **
The Windows distribution of GNAT is in two parts; the standard GNAT tools in 
gnat-3.15p-nt.exe and the extra Windows tools and libraries in gnatwin-3.15p.exe. 
Both must be installed.

6.1 Setup.exe
==============
The setup installer for windows is intended for the end user which
developes applications on top of GNADE and contains ready to use  
precomplied binaries and libraries campareable to the rpm packages 
for linux.
The setup includes the sources of the GNADE release as well, but only
of the software contained in the release. Normaly there is no need 
to install the sources. If you like to develop components for GNADE 
please use the CVS.

In order to use the following changes to the environment have 
to be done manually:

   PATH=%GNADE_BASEPATH%\bin:$PATH


6.2 GNADE CVS
==============
The CVS provides the current sources which need to be compiled before
they are usable for application development.

6.3 Compiling GNADE using DOS
=============================
In case that you have downloaded the code from the CVS at 
sourceforge then perform the following steps to compile 
the release:

    1. Edit make.conf.win32 to meet you system 
    2. cd <somewhere>\gnade
       configure 
       make

This should create directories win32-bin, win32-lib and 
win32-include with the GNADE libraries and packet 
specifications. In order to build an installer you need to 
have Inno-Setup installed. 

In order to build a setup.exe:

      make clean
      make dist

6.4 Building GNADE using Cygwin
===============================
If you have cygwin installed, basically the same procedures as for 
Linux/Unix do apply, which means:

   cd <somewhere>\gnade
   configure 
   make 

The only major difference is that you do not need to build an installer 
to install the software on your system. In order to install GNADE
run:

   make install

This installes all GNADE libraries, Ada Specs. etc. under /usr/local/gnade.
In order to make GNADE available, add to the PATH the path of GNADE:

   PATH=$PATH:/usr/local/gnade/bin

NOTE:

The Windows distribution of GNAT is in two parts; the standard GNAT tools in 
gnat-3.15p-nt.exe and the extra Windows tools and libraries in gnatwin-3.15p.exe. 
Both must be installed.

7. Documentation
================

Documentation is available in pdf and html format. It is located in
the directory ./doc/html or ./doc. In particular, see the release
notes in doc/releasenotes.

The docbook sources of the documentation are locoated under 
./doc/build. If docbook is installed then you may build
the documentation by the command:

      gmake documentation

For windows the documenation is not yet part of the release
since i got no docbook working on the XP platform yet.

8. GNADE and GPS
================

GNADE is mainly based upon project files which can also be used 
by GPS (The GNAT Programing System www.act-europe.com). Each
subdirectory contains normaly one equally named project file.

If you are programming within the GNADE source tree do not try to change
the contents of the project file by means of the 
"Edit Project property" menu, because GPS will change the contents
of the project file in such a ways that the it is not possible
any more to compile the GNADE software. Two makefiles are included
in each directory:

	Makefile
	Makefile.<prj.name>

The Makefile.<prj name> is used by the GPS system. For some 
reason GPS sometimes calls directly gnatmake and under other 
circumstances the Makefile.<prj. name >.

GNADE provides a root project file which might be included to build
a project file for your application. If you wnat to do this, then
add to the project path the path of the GNADE project file as shown
below:

for Cygwin:
   ADA_PROJECT_PATH=...$ADA_PROJECT_PATH:$GNADE_BASEPATH/shared 

for Dos:
   ADA_PROJECT_PATH=%ADA_PROJECT_PATH%;%GNADE_BASEPATH%

9. Additional Make Options
==========================




10. Contact
==========

If you find an error or you need support, please 
use the facilities at:

   http://sourceforge.net/projects/gnade 


PLEASE FEEL FREE TO CONTRIBUTE TO THE PROJECT BY TESTING
AGAINST LEGACY CODE. PLEASE PROVIDE ME THE RESULTS OF YOUR
TESTS THAT I AM ABLE TO ADOPT THE ESQL TRANSLATOR TO YOUR 
REQUIREMENTS.

All official distributions will be stored  here as well.

In case you port the software to a different platform, 
please keep me informed either by sending me a mail

    Michael.Erdmann@snafu.de

or use the bug reporting facilities at:

    http://sourceforeg.net/projects/gnade

A mailing list for GNADE related discussion has been 
established. In order do subscribe to the list goto:

    http://sourceforge.net/projects/gnade