Instructions For Building On Windows
Mark Strother <[email protected]>
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <[email protected]> |
I hope this can be of help to some of you:
--
Instructions for building Bind 9.4.2 under Visual Studio 2005
(open a prompt using Visual Studio 2005 Command Prompt)
- follow steps in win32-build.txt:
- build openssl (this is needed by the buildsetup.bat which is executed next)
- read openssl-0.9.8g\INSTALL.W32 first
- perl Configure VC-WIN32 --prefix=c:/openssl
- run ms\do_ms batch script (ignore errors for VC-CE configuration, only for CE os)
- nmake -f ms\ntdll.mak
- nmake -f ms\ntdll.mak install (gets installed to c:\openssl)
- place openssl source directory next to root directory containing bind source:
contents of directory:
bind-9.4.2
openssl-0.9.8g
(this ensures that buildsetup.bat executes properly)
- go to win32utils, execute buildsetup.bat
- open bindbuild.dsw in Visual Studio
- say "Yes To All" to "Convert and open this project."
To use SQL Server as the backend (or any db for which an ODBC driver is available):
- Modify the named project, under the properties:
1)- under Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions:
- add: "DLZ;DLZ_ODBC" to what's already there. Click OK to save settings.
2)- under Configuration Properties->C/C++->General->Additional Include Directories:
- Find the location of the directory under the bind root directory: contrib\dlz\drivers\include
- Add this directory to the existing directories. Either add it as relative or absolute.
(eg. C:\proj\bind-9.4.2\bind-9.4.2\contrib\dlz\drivers\include)
3)- Add the following source files to the named project:
dlz_drivers.c
dlz_odbc_driver.c
sdlz_helper.c
(Source Files->Add->Existing Item...)
These files can be found in:
<bind root dir>\contrib\dlz\drivers\
4)- Build the named project.
Troubleshooting:
- If you build the solution for the first time you may run into link error messages for some projects like the following:
"7>LINK : fatal error LNK1104: cannot open file '../../../lib/isc/win32/Debug/libisc.lib'"
The problem is that some projects in the solution depend on other projects being built. You just have to choose Build Solution to build (link) those projects that failed. The rest of the projects will build correctly. Do not choose Rebuild Solution or you will run into the same situation again.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bind-dlz-testers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers