📄 intro.so
字号:
m4_comment([$Id: intro.so,v 10.79 2006/01/27 20:01:45 bostic Exp $])m4_ref_title(Building m4_db for Windows systems, Building for Windows, @building for Windows, build_unix/ultrix, build_win/small)define(TCLMAJOR, 8)define(TCLMINOR, 4)define(TCLDEBUG, g)m4_p([dnlThis page contains general instructions on building m4_db forspecific windows platforms using specific compilers. Them4_link(M4RELDIR/ref/build_win/faq, Windows FAQ) alsocontains helpful information.])m4_p([dnlThe m4_path(build_windows) directory in the m4_db distribution containsproject files for Microsoft Visual C++:])m4_table_begin(, _center)m4_table_header(Project File, Description)m4_table_element(_center, Berkeley_DB.dsw, Visual C++ 6.0 workspace)m4_table_element(_center, *.dsp, Visual C++ 6.0 projects)m4_table_endm4_p([dnlThese project files can be used to build m4_db for the following platforms:Windows NT/2K/XP/2003, Windows 98/ME and 64-bit Windows XP/2003.])m4_section([Building m4_db for Windows NT/2K/XP/2003])m4_subsection([Visual C++ .NET 2005])m4_nlistbeginm4_nlist([dnlChoose m4_italic([File -__GT__ Open -__GT__ Project/Solution...]).In the m4_path(build_windows), select m4_path(Berkeley_DB) and clickOpen.])m4_nlist([dnlYou will be prompted to convert the project files to current Visual C++format. Select "Yes to All".])m4_nlist([dnlChoose the project configuration from the drop-down menu on the toolbar (usually Debug or Release for Win32).])m4_nlist([dnlTo build, right-click on the build_all target and select Build.])m4_nlistendm4_subsection([Visual C++ .NET or Visual C++ .NET 2003])m4_p([dnlThis is very similar to the building with Visual Studio 2005, but somemenu options have been rearranged:])m4_nlistbeginm4_nlist([dnlChoose m4_italic([File -__GT__ Open Solution]). Look in them4_path(build_windows) directory for compatible workspace files, selectm4_path(Berkeley_DB.dsw), and press Open.])m4_nlist([dnlYou will be prompted to convert the project files to current Visual C++format. Select "Yes to All".])m4_nlist([dnlChoose the project configuration from the drop-down menu on the .NETtool bar (Debug or Release).])m4_nlist([dnlTo build, right-click on build_all and select Build.])m4_nlistendm4_subsection([Visual C++ 6.0])m4_nlistbeginm4_nlist([dnlChoose m4_italic([File -__GT__ Open Workspace]). Look in them4_path(build_windows) directory for Workspaces, selectm4_path(Berkeley_DB.dsw), and press Open.])m4_nlist([dnlChoose the desired project configuration by going to m4_italic([Build-__GT__ Set Active Configuration]) and select the appropriate optionto the build_all project (Debug or Release). Then click OK.])m4_nlist([dnlTo build, press F7.])m4_nlistendm4_subsection([Build results])m4_p([dnlThe results of your build will be placed in a subdirectory ofm4_path(build_windows) named after the configuration you chose (forexamples, m4_path(build_windows\Release) orm4_path(build_windows\Debug)).])m4_p([dnlWhen building your application during development, you should normallyuse compile options "Debug Multithreaded DLL" and link againstm4_path(build_windows\Debug\libdb[]M4MAJOR[]M4MINOR[]d.lib). You canalso build using a release version of the m4_db libraries and tools,which will be placed inm4_path(build_windows\Release\libdb[]M4MAJOR[]M4MINOR[].lib). Whenlinking against the release build, you should compile your code withthe "Release Multithreaded DLL" compile option. You will also need toadd the m4_path(build_windows) directory to the list of includedirectories of your application's project, or copy the m4_db includefiles to another location.])m4_section([Building m4_db for Windows 98/ME])m4_p([dnlBy default on Windows, m4_db supports internationalized filenames bytreating all directory paths and filenames passed to m4_db methods asUTF-8 encoded strings. All paths are internally converted to widecharacter strings and passed to the wide character variants of Windowssystem calls.])m4_p([dnlThis allows applications to create and open databases with names thatcannot be represented with ASCII names while maintaining compatibilitywith applications that work purely with ASCII paths.])m4_p([dnlWindows 98 and ME do not support Unicode paths directly. To build forthose versions of Windows, either follow the above instructions,choosing the "Debug ASCII" or "Release ASCII" build targets, or followthe instructions atm4_linkweb(http://www.microsoft.com/globaldev/handson/dev/mslu_announce.mspx,Microsoft's web site).])m4_p([dnlThe ASCII builds will also work on Windows NT/2K/XP and 2003, but willnot translate paths to wide character strings.])m4_section([Building m4_db for 64-bit Windows])m4_p([dnlThe following procedure can be used on either to build natively on a64-bit system or to cross-compile from a 32-bit system.])m4_subsection([x64 build with Visual Studio 2005])m4_nlistbeginm4_nlist([dnlChoose m4_italic([File -__GT__ Open -__GT__ Project/Solution...]).In the m4_path(build_windows), select m4_path(Berkeley_DB) and clickOpen.])m4_nlist([dnlYou will be prompted to convert the project files to current Visual C++format. Select "Yes to All".])m4_nlist([dnlChoose the project configuration from the drop-down menu on the toolbar ("Debug AMD64", "Release AMD64"). Change the CPU type fromWin32 to x64.])m4_nlist([dnlRight-click on the build_all target and select Build.])m4_nlistendm4_subsection([64-bit build with Visual Studio .NET 2003 or earlier])m4_p([dnlYou will need latest Platform SDK from Microsoft, available fromm4_linkweb([http://www.microsoft.com/msdownload/platformsdk/sdkupdate/],[Microsoft's web site]). You only need the "Core SDK" from there.])m4_p([dnlOnce that is installed, you should have an entry in your Start Menucalled m4_italic([Microsoft Platform SDK (date) -__GT__ Open BuildEnvironment Window -__GT__ Windows Server 2003 64-bit BuildEnvironment -__GT__ Set Win Svr 2003 x64 Build Env (Debug)]).Selecting that will open a command window with the environment set upfor 64-bit Windows development targeting AMD64-compatible CPUs.])m4_p([dnlDepending on how your computer is configured, you may need to run them4_path(vcvars32.bat) or script to set up the environment to buildfrom the command line with Visual Studio.])m4_p([dnlThen, in the m4_path(build_windows) directory in the m4_dbdistribution, run this for Visual Studio .NET:m4_indent([devenv Berkeley_DB.dsw])Choose "Yes To All" in the dialog box that appears, then close VisualStudio, then run:m4_indent([devenv Berkeley_DB.sln /build "Debug AMD64" /project "build_all" /useenv])For Visual Studio 6, just run this instead:m4_indent([msdev Berkeley_DB.dsw /make "build_all - Debug AMD64" /useenv])You should now have AMD64 binaries in the "Debug_AMD64" directory.])m4_p([dnlTo build a release, open the "Retail" window instead of the "Debug"window, and change Debug to Release in the above commands. To buildfor Itanium, change AMD64 and x64 to IA64.])m4_section([Building m4_db with Cygwin])m4_p([dnlTo build m4_db with Cygwin, follow the instructions inm4_link(M4RELDIR/ref/build_unix/intro, Building for UNIX).])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -