1 Instructions to build Bacula with Microsoft Visual C++ 2005
2 ===========================================================
4 Using the Express Edition (free version)
5 ----------------------------------------
7 - Visual C++ 2005 Express Edition (2MB + 66MB)
8 http://msdn.microsoft.com/vstudio/express/visualc/download/
9 NOTE: You may want to download the whole CD for offline usage
10 instead of the web installer, as Microsoft will
11 start to charge for VC++ one year after the product launch
12 (launch was in November 2005, see VC++ FAQ).
14 - Windows® Server 2003 SP1 Platform SDK Full Download (385MB)
15 http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
16 NOTE: choose "Full Download" version on the bottom of that page.
18 Installation instructions:
19 - Visual C++ Express Edition Beta 2:
21 + When asked for Installation Options, only check "Graphical IDE"
22 (MSDN Library is NOT needed).
23 + Remember where you install it (e.g. E:\Microsoft Visual Studio 8\)
25 - Windows® Server 2003 SP1 Platform SDK Full Download
26 + Run psdk-full.exe, type the directory where you downloaded the cab
28 + In a command prompt, run "PSDK-full.bat <temp directory>"
29 (e.g. "PSDK-full.bat E:\temp")
30 + Run <temp directory>\setup.exe
31 + When asked for the installation directory, choose
32 <vc++ install dir>\VC\PlatformSDK (e.g.
33 E:\Microsoft Visual Studio 8\VC\PlatformSDK\)
34 + When asked for components, you can safely remove documentation,
35 samples, and all 64-bit tools and libs if you want to save disk
38 Getting the Bacula files
39 ------------------------
40 You will also need to checkout the latest Bacula source files:
41 + latest source from the CVS (into <dev dir>\bacula)
43 You need to download one of the doc tar balls and extract to <dev dir>.
44 The directory name will be bacula-docs-version where version is the
45 version number. The directory must be renamed to docs (ie remove the
46 leading bacula- and the -version portion of the name).
51 The script build-depkgs-msvc.cmd is used to download and build all the
52 third party dependencies required by Bacula. In order to build the
53 dependencies you need the following utilities. Only the binaries listed
54 in parenthesis are required. Perl must be listed in the PATH, the other
55 utilities can either be on the PATH or copied to
56 <dev dir>\depkgs-msvc\tools.
58 Perl (Normal Install, with binaries in the PATH)
59 http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.8.819-MSWin32-x86-267479.msi
62 http://prdownloads.sourceforge.net/sevenzip/7za443.zip?download
65 http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download
68 http://prdownloads.sourceforge.net/gnuwin32/patch-2.5.9-6-bin.zip?download
70 sed (sed.exe) Depends on libintl, libiconv
71 http://prdownloads.sourceforge.net/gnuwin32/sed-4.1.4-bin.zip?download
73 tee (tee.exe) Depends on libintl, libiconv
74 http://prdownloads.sourceforge.net/gnuwin32/coreutils-5.3.0-bin.zip?download
76 wget (wget.exe) Depends on libintl, libiconv, openssl
77 http://prdownloads.sourceforge.net/gnuwin32/wget-1.10.1-bin.zip?download
79 libintl (libintl3.dll) Dependency of sed, tee, wget
80 http://prdownloads.sourceforge.net/gnuwin32/libintl-0.14.4-bin.zip?download
82 libiconv (libiconv2.dll) Dependency of sed, tee, wget
83 http://prdownloads.sourceforge.net/gnuwin32/libiconv-1.9.2-1-bin.zip?download
85 openssl (libeay32.dll, ssleay32.dll) Dependency of wget
86 http://prdownloads.sourceforge.net/gnuwin32/openssl-0.9.7c-bin.zip?download
88 Once the utilities are installed continue with the next steps.
90 + Start VC++ 2005 command prompt (in the start menu)
92 + Change to the bacula\src\win32 directory.
94 Only if you are using Microsoft Visual C++ Express
96 + run "%VCINSTALLDIR%\PlatformSDK\SetEnv"
98 The following step should only need to be done the first time and whenever
99 the dependencies change.
101 + run build-depkgs-msvc
103 At this point all of the dependencies should have been downloaded and built.
105 To build the debug version
107 + run build-msvc "Debug|Win32"
109 To build the release version
111 + run build-msvc "Release|Win32"
113 To cleanup all the built files
117 To cleanup only the debug built files
119 + run build-msvc /c "Debug|Win32"
121 To rebuild the debug version
123 + run build-msvc /r "Debug|Win32"