VisualStudio build Notes


Last Update: July 16 2003
Author: Blas Rodriguez Somoza blas@puertareal.com

0.-Introduction

There are two VisualStudio builds, msvc6 and msvc7. The msvc6 build is the official build of FB in win32.

Under the directory where you put Firebird2 sources you will see the following directories

After you build Firebird you also will see the following temporary directories

1.-TODO

2.-Prerrequisites

To prepare the standard msvc6 build of FB you need:

If you intend to modify the dsql parser file (parse.y) you will need a parser generator, bison or byacc (Berkeley yacc). At this time byacc 1.9 is the official parser generator although in the future it will be switched to bison. The tested versions of byacc are 1.9 or newer and for bison 1.28 or newer.

If you intend to prepare an installable build, you will need innosetup.

To download the utilities use the following links

2.-Installing the utilities

2.1.-Visual Studio

  1. Install VisualStudio 6/7
  2. If you use VisualStudio 6, before building Firebird and its tools, you need to apply some patches from the following site
    http://www.dinkumware.com/vc_fixes.html

2.2.-Sed and bison

2.3.-Inno setup

4.- Building

4.1.-Standard build

  1. Open a command line window.
  2. Go to the firebird2\builds\win32 directory.
  3. Run the following batches in order (your version of VisualStudio is detected automatically)
    1. prepare.bat [FIREBIRD]
    2. make_boot.bat
    3. make_all.bat [DEBUG] [CLEAN]

4.2.-Parser rebuild

Remember, you need sed and bison or yacc in the path to rebuild the parser

If you change parser.cpp or parser.sed you will need to rebuild parser.cpp, to do so use parser.bat

4.3.-Examples build

The examples build prepare two databases that will be needed to compile the examples in a distribution. If you intend to prepare a distribution then run the examples batch before:

  1. make_examples.bat

4.4.-Installer build

Remember, you need sed and innosetup in the path to build the installer

4.4.-Building samples

After the standard build is finished, an output directory with the same structure as the installed FB directory is created.

If you want to build the examples just cd to firebird2\output\examples\build_win32 and run build_all.bat

Build_all.bat calls four other bats to make the example sets. Any example set can be build independently with its make_XXX script.

The example sets are: