VisualStudio build Notes


Last Update: May 27 2006
Author: Blas Rodriguez Somoza blas@puertareal.com

0.-Introduction

There are two VisualStudio builds, msvc6 and msvc7. The msvc7 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 msvc build of FB you need:

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

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. make_icu.bat [DEBUG] [CLEAN]
    2. make_boot.bat [DEBUG] [CLEAN]
    3. make_all.bat [DEBUG] [CLEAN]

4.2.-Parser rebuild

If you change parser.y you will need to rebuild parser.cpp, to do so use parse.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 run_all.bat

Run_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: