From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/installation/build_win_tcl.html | 159 +++++++++++++++++++++-------------- 1 file changed, 97 insertions(+), 62 deletions(-) (limited to 'docs/installation/build_win_tcl.html') diff --git a/docs/installation/build_win_tcl.html b/docs/installation/build_win_tcl.html index 48d2d114..6b70a5d9 100644 --- a/docs/installation/build_win_tcl.html +++ b/docs/installation/build_win_tcl.html @@ -14,7 +14,7 @@ -

Tcl support is not built automatically. See - Loading Berkeley DB with Tcl for -information on sites from which you can download Tcl and which Tcl -versions are compatible with Berkeley DB. These notes assume that Tcl is -installed as d:\tcl, but you can change that if you want.

-

The Tcl library must be built as the same build type as the Berkeley DB -library (both Release or both Debug). We found that the binary -release of Tcl can be used with the Release configuration of Berkeley DB, -but you will need to build Tcl from sources for the Debug -configuration. Before building Tcl, you will need to modify its -makefile to make sure that you are building a debug version, including -thread support. This is because the set of DLLs linked into the Tcl -executable must match the corresponding set of DLLs used by Berkeley DB.

+

+ Tcl support is not built automatically. See Loading Berkeley DB with Tcl + for information on sites from which you can download Tcl + and which Tcl versions are compatible with Berkeley DB. + These notes assume that Tcl is installed as + d:\tcl, but you can change that + if you want. +

+

+ The Tcl library must be built as the same build type as + the Berkeley DB library (both Release or both Debug). We + found that the binary release of Tcl can be used with the + Release configuration of Berkeley DB, but you will need to + build Tcl from sources for the Debug configuration. Before + building Tcl, you will need to modify its makefile to make + sure that you are building a debug version, including + thread support. This is because the set of DLLs linked + into the Tcl executable must match the corresponding set + of DLLs used by Berkeley DB. +

    -
  1. Set the include directories. -
    • -In Visual Studio 2005/Visual Studio 2008 - -Choose Tools -> Options --> Projects -> VC++ Directories. Under the "Show -directories for" pull-down, select "Include files". Add the full -pathname for d:\tcl\include, then click OK. -
    • -In Visual Studio 2010 - Right-click db_java project, choose Properties->Configuration Properties-> VC++ Directories->Include Directories. -Add the full pathnames for d:\tcl\include, then click OK. -
    -This is the -directory that contains tcl.h.
  2. -
  3. Set the library files directory. -
    • -In Visual Studio 2005/Visual Studio 2008 - -Choose Tools -> -Options -> Projects -> VC++ Directories. Under the "Show -directories for" pull-down, select "Library files". Add the full -pathname for the d:\tcl\lib directory, then click OK. -
    • -In Visual Studio 2010 - Right-click db_java project, choose Properties->Configuration Properties-> VC++ Directories->Library Directories. Add the full pathname for the d:\tcl\lib directory, then click OK. -
    - -This is the directory needed to find -tcl85g.lib (or whatever the -library is named in your distribution).
  4. -
  5. Set the build type to Release or Debug in the drop-down on the -tool bar.
  6. -

    - To build, right-click on db_tcl and select Build. This builds the Tcl - support library for Berkeley DB, placing the result into one of the - following Berkeley DB subdirectories, depending upon the - configuration that you chose: -

    + Set the include directories. +
    • + In Visual Studio 2005/Visual Studio + 2008 - Choose Tools -> Options + -> Projects -> VC++ + Directories. Under the "Show + directories for" pull-down, select "Include + files". Add the full pathname for + d:\tcl\include, then + click OK. +
    • + In Visual Studio 2010/Visual Studio 2012 - Right-click + db_tcl project, choose + Properties->Configuration + Properties-> VC++ + Directories->Include + Directories. Add the full + pathnames for + d:\tcl\include, then + click OK. +
    + This is the directory that contains + tcl.h. +
  7. +
  8. + Set the library files directory. +
    • + In Visual Studio 2005/Visual Studio + 2008 - Choose Tools -> Options + -> Projects -> VC++ + Directories. Under the "Show + directories for" pull-down, select "Library + files". Add the full pathname for the + d:\tcl\lib directory, + then click OK. +
    • + In Visual Studio 2010 - Right-click + db_tcl project, choose + Properties->Configuration + Properties-> VC++ + Directories->Library + Directories. Add the full + pathname for the + d:\tcl\lib directory, + then click OK. +
    + This is the directory needed to find + tcl85.lib (or whatever the + library is named in your distribution). +
  9. +
  10. + Set the build type to Release or Debug in the + drop-down on the tool bar. +
  11. +
  12. +

    + To build, right-click on db_tcl and select + Build. This builds the Tcl support library for + Berkeley DB, placing the result into one of the + following Berkeley DB subdirectories, depending + upon the configuration that you chose: +

    - build_windows\Win32\Debug\libdb_tcl53d.dll + build_windows\Win32\Debug\libdb_tcl61d.dll
    - build_windows\Win32\Release\libdb_tcl53.dll + build_windows\Win32\Release\libdb_tcl61.dll
-

If you use a version different from Tcl 8.5.x you will -need to change the name of the Tcl library used in the build (for -example, tcl85g.lib) to the -appropriate name. To do this, right click on db_tcl, go to -Properties -> Linker -> Input -> Additional -dependencies and change -tcl85g.lib to match the Tcl -version you are using.

+

+ If you use a version different from Tcl 8.5.x you will + need to change the name of the Tcl library used in the + build (for example, tcl85.lib) to the + appropriate name. To do this, right click on + db_tcl, go to + Properties -> Linker -> Input -> + Additional dependencies and change + tcl85.lib to match the Tcl + version you are using. +