]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/README.vc8
Update Win32 README
[bacula/bacula] / bacula / src / win32 / README.vc8
1
2 Instructions to build Bacula with Microsoft Visual C++ 2005 Express Edition (free version).
3 ---
4
5 (Note: for the moment VSS support has been disabled, and this is not
6 the official way to build the released FD.  See README.win32 for the
7 "official" instructions.)
8
9 What you need to download:
10 - Visual C++ Express Edition Beta 2 (2MB + 66MB)
11   http://lab.msdn.microsoft.com/express/visualc/default.aspx
12
13 - Windows® Server 2003 SP1 Platform SDK Full Download (385MB)
14   http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
15   NOTE: choose "Full Download" version on the bottom of that page.
16
17 - wxWidgets for Win32 (17MB) (exe file)
18   http://www.wxwidgets.org/dl_msw2.htm#stable
19
20 - gettext packages (2MB)
21   + http://mirror.switch.ch/ftp/mirror/gnu/gettext/gettext-runtime-0.13.1.bin.woe32.zip
22   + http://mirror.switch.ch/ftp/mirror/gnu/gettext/gettext-tools-0.13.1.bin.woe32.zip
23   + http://mirror.switch.ch/ftp/mirror/gnu/libiconv/libiconv-1.9.1.bin.woe32.zip
24
25 - Bacula source files:
26   + deppkgs-win32 from SF download page (extracted in <dev dir>/deppkgs-win32)
27   + latest source from the CVS (maybe you want to use mingw-msys to checkout them) (in <dev dir>/bacula)
28
29 Installation instructions:
30  - Visual C++ Express Edition Beta 2:
31    + Run vcsetup.exe.
32    + When asked for Installation Options, only check "Graphical IDE" (MSDN Library is NOT needed).
33    + Remember where you install it (e.g. E:\Microsoft Visual Studio 8\)
34
35  - Windows® Server 2003 SP1 Platform SDK Full Download
36    + Run psdk-full.exe, type the directory where you downloaded the cab files.
37    + In a command prompt, run "PSDK-full.bat <temp directory>" (e.g. "PSDK-full.bat E:\temp")
38    + Run <temp directory>\setup.exe
39    + When asked for the installation directory, choose <vc++ install dir>\VC\PlatformSDK
40      (e.g. E:\Microsoft Visual Studio 8\VC\PlatformSDK\)
41    + When asked for components, you can safely remove documentation, samples, and all 64-bit tools and libs if you want to save disk space.
42
43  - gettext packages
44    + extract them all in <dev dir>/deppkgs-win32/gettext
45
46  - wxWidgets for Win32
47    + delete <dev dir>/deppkgs-win32/wx directory
48    + run wxMSW-2.6.1-Setup.exe, and install it to <dev dir>/deppkgs-win32/wx
49
50 Build instructions:
51  - deppkgs:
52    + Start VC++ 2005 command prompt (in the start menu)
53    + run "<vc++ install dir>\VC\PlatformSDK\SetEnv.Cmd"
54    + cd <dev dir>/deppkgs-win32/zlib
55    + run "nmake -f win32\Makefile.msc" (don't worry about the warnings)
56    + cd <dev dir>/deppkgs-win32/pthreads
57    + run "nmake clean VCE" (again, don't worry about the warnings)
58    + (note pthreadVCE.dll has been created in this directory)
59  - wxWidgets:
60    + Open <dev dir>\depkgs-win32\wx\build\msw\wx.dsw in VC++ 2005
61    + Click on "Yes to all"
62    + In the solution explorer, open core/Setup Headers/setup.h and add, at the end of the file (before the last #endif):
63 #if (_MSC_VER >= 1400) // VC8+
64 #pragma warning(disable : 4996) // Either disable all deprecation warnings,
65 // #define _CRT_SECURE_NO_DEPRECATE // Or just turn off warnings about the newly deprecated CRT functions.
66 #endif // VC8+
67      This is not absolutely necessary, but this will remove annoying warnings.
68
69    + Launch Build->Configuration Manager, then select "Unicode Release"
70      and close this window. Then run Build->Build Solution.
71    + If the build of wx-console fails, try removing the comments around
72      #ifndef (line 145) and #endif (line 147) in file:
73      <dev dir>/bacula/src/win32/compat/compat.h
74    + Repeat the operation for the "Unicode Debug" configuration if needed.
75
76  - Bacula:
77    + Open <dev dir>/bacula/src/win32/bacula.sln
78    + Launch Build->Configuration Manager, then select your configuration.
79    + Then run Build->Build Solution (this will build wx-console, bconsole and bacula-fd).
80    + Don't forget to copy pthreadVCE.dll from <dev dir>/deppkgs-win32/pthreads and
81      iconv.dll and intl.dll from <dev dir>/deppkgs-win32/gettext/bin to
82      the Release and Debug directories in src/win32/baculafd, src/win32/wx-console
83      and src/win32/console.