Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/db4-devel-4.3.27/ref/build_win/ drwxr-xr-x |
Viewing file: Select action/file-type:
Building for Win32The build_win32 directory in the Berkeley DB distribution contains project files for Microsoft Visual C++:
These project files can be used to build Berkeley DB for any Win32 platform: Windows/XP, Windows/2000, Windows/NT, Windows/98 and Windows/95. The build_win64 directory contains project files for Microsoft Visual C++ to target Windows on 64-bit CPUs: Building Berkeley DB with Visual C++ .NET for Win32
Building Berkeley DB with Visual C++ 6.0 for Win32
When building your application, you should normally use compile options "Debug Multithreaded DLL" and link against build_win32/Debug/libdb43d.lib. If you want to link against a static (non-DLL) version of the library, use the "Debug Multithreaded" compile options and link against build_win32/Debug_static/libdb43sd.lib. You can also build using a release version of the libraries and tools, which will be placed in build_win32/Release/libdb43.lib. The static version will be in build_win32/Release_static/libdb43s.lib. You will also need to add the build_win32 directory to the list of include directories of your application's project. Each release of Berkeley DB is built and tested with this procedure using Microsoft Visual C++ 6.0, Standard Version and Microsoft Visual C++ .NET, Standard Version. Building Berkeley DB for 64-bit WindowsYou can follow the same steps on either the Itanium itself or to cross-compile on an x86 box. You will need latest Platform SDK from Microsoft, available from Microsoft's web site. You only need the "Core SDK" from there. Once that is installed, you should have an entry in your Start Menu called Microsoft Platform SDK (date) -> Open Build Environment Window -> Windows Server 2003 64-bit Build Environment -> Set Win Svr 2003 Build Env (Debug). Selecting that will open a command window with the environment set up for Itanium development. Then, in the build_win64 directory in the Berkeley DB distribution, run: You should now have Itanium binaries in the "Debug" directory.msdev /useenv BerkeleyDB.dsw /make "build_all - Debug" To build a release, open the "Retail" window instead of the "Debug" window, and run: There may be some warnings during build, but we don't believe any of them are real bugs.msdev /useenv BerkeleyDB.dsw /make "build_all - Release" Building Berkeley DB with CygwinTo build Berkeley DB with Cygwin, follow the instructions in Building for UNIX. Building the C++ APIC++ support is built automatically on Win32. Building the Java APIJava support is not built automatically. The following instructions assume that you have installed the Sun Java Development Kit in d:/java. Of course, if you installed elsewhere or have different Java software, you will need to adjust the pathnames accordingly. Building Java with Visual C++ .NET
Building Java with Visual C++ 6.0
To run Java code, set your environment variable CLASSPATH to include the full pathname of these jar files, and your environment variable PATH to include the build_win32/Release subdirectory. On Windows, remember that files or directories in the CLASSPATH and PATH variables must be separated by semicolons (unlike UNIX). Then, try running the following command as a test: java com.sleepycat.examples.db.AccessExample If you want to run Java code using a Debug build, substitute 'Debug' for 'Release' in the instructions above. Make sure you use the Debug JAR file with the Debug DLL and the Release JAR with the Release DLL. Building the Tcl APITcl 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. Building Tcl with Visual C++ .NET
If you use a version different from Tcl 8.4.x you will need to change the name of the Tcl library used in the build (for example, tcl84g.lib) to the appropriate name. To do this, right click on db_tcl, go to Properties -> Linker -> Input -> Additional dependencies and change tcl84g.lib to match the Tcl version you are using. Building Tcl with Visual C++ 6.0
If you use a version different from Tcl 8.4.x you will need to change the name of the Tcl library used in the build (for example, tcl84g.lib) to the appropriate name. To do this, choose Project -> Settings -> db_tcl and change the Tcl library listed in the Object/Library modules tcl84g.lib to match the Tcl version you are using. Distributing DLLsWhen distributing applications linked against the DLL (not static) version of the library, the DLL files you need will be found in the build_win32/Release subdirectory, or build_win32/Debug if you distribute a debug version. You may also need to redistribute DLL files needed for the compiler's runtime. For Visual C++ 6.0, these files are msvcrt.dll and msvcp60.dll if you built with a Release configuration, or msvcrtd.dll and msvcp60d.dll if you are using a Debug configuration. Generally, these runtime DLL files can be installed in the same directory that will contain your installed Berkeley DB DLLs. This directory may need to be added to your System PATH environment variable. Check your compiler's license and documentation for specifics on redistributing runtime DLLs.
Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved. |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0038 ]-- |