]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/README.vc8
- Remove xpg4 lib from FreeBSD build as it is no longer needed and
[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++ 2005 Express Edition (2MB + 66MB)
11   http://msdn.microsoft.com/vstudio/express/visualc/download/  
12   NOTE: You may want to download the whole CD for offline usage 
13   instead of the web installer, as Microsoft will
14   start to charge for VC++ one year after the product launch 
15   (launch was in November 2005, see VC++ FAQ).
16
17 - Windows® Server 2003 SP1 Platform SDK Full Download (385MB)
18   http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
19   NOTE: choose "Full Download" version on the bottom of that page.
20
21 - wxWidgets for Win32 (17MB) (exe file)
22   http://www.wxwidgets.org/dl_msw2.htm#stable
23
24 - gettext packages (2MB)
25   + http://mirror.switch.ch/ftp/mirror/gnu/gettext/gettext-runtime-0.13.1.bin.woe32.zip
26   + http://mirror.switch.ch/ftp/mirror/gnu/gettext/gettext-tools-0.13.1.bin.woe32.zip
27   + http://mirror.switch.ch/ftp/mirror/gnu/libiconv/libiconv-1.9.1.bin.woe32.zip
28
29 - Bacula source files:
30   + deppkgs-win32 from SF download page (extracted in <dev dir>/deppkgs-win32)
31   + latest source from the CVS (maybe you want to use mingw-msys to checkout them) (in <dev dir>/bacula)
32
33 Installation instructions:
34  - Visual C++ Express Edition Beta 2:
35    + Run vcsetup.exe.
36    + When asked for Installation Options, only check "Graphical IDE" (MSDN Library is NOT needed).
37    + Remember where you install it (e.g. E:\Microsoft Visual Studio 8\)
38
39  - Windows® Server 2003 SP1 Platform SDK Full Download
40    + Run psdk-full.exe, type the directory where you downloaded the cab files.
41    + In a command prompt, run "PSDK-full.bat <temp directory>" (e.g. "PSDK-full.bat E:\temp")
42    + Run <temp directory>\setup.exe
43    + When asked for the installation directory, choose <vc++ install dir>\VC\PlatformSDK
44      (e.g. E:\Microsoft Visual Studio 8\VC\PlatformSDK\)
45    + When asked for components, you can safely remove documentation, samples, and all 64-bit tools and libs if you want to save disk space.
46
47  - gettext packages
48    + extract them all in <dev dir>/deppkgs-win32/gettext
49
50  - wxWidgets for Win32
51    + delete <dev dir>/deppkgs-win32/wx directory
52    + run wxMSW-2.6.1-Setup.exe, and install it to <dev dir>/deppkgs-win32/wx
53
54 Build instructions:
55  - deppkgs:
56    + Start VC++ 2005 command prompt (in the start menu)
57    + run "<vc++ install dir>\VC\PlatformSDK\SetEnv.Cmd"
58    + cd <dev dir>/deppkgs-win32/zlib
59    + run "nmake -f win32\Makefile.msc" (don't worry about the warnings)
60    + cd <dev dir>/deppkgs-win32/pthreads
61    + run "nmake clean VCE" (again, don't worry about the warnings)
62    + (note pthreadVCE.dll has been created in this directory)
63  - wxWidgets:
64    + Open <dev dir>\depkgs-win32\wx\build\msw\wx.dsw in VC++ 2005
65    + Click on "Yes to all"
66    + In the solution explorer, open core/Setup Headers/setup.h and add, at the end of the file (before the last #endif):
67 #if (_MSC_VER >= 1400) // VC8+
68 #pragma warning(disable : 4996) // Either disable all deprecation warnings,
69 // #define _CRT_SECURE_NO_DEPRECATE // Or just turn off warnings about the newly deprecated CRT functions.
70 #endif // VC8+
71      This is not absolutely necessary, but this will remove annoying warnings.
72
73    + Launch Build->Configuration Manager, then select "Unicode Release"
74      and close this window. Then run Build->Build Solution.
75    + If the build of wx-console fails, try removing the comments around
76      #ifndef (line 145) and #endif (line 147) in file:
77      <dev dir>/bacula/src/win32/compat/compat.h
78    + Repeat the operation for the "Unicode Debug" configuration if needed.
79    + Open <dev dir>/bacula/src/win32/bacula.sln
80    + Launch Build->Configuration Manager, then select your configuration.
81    + Then run Build->Build Solution (this will build wx-console, bconsole 
82      and bacula-fd).
83
84 Deploy instructions
85  - Bacula:
86    + To deploy bacula on Windows clients, create a setup using NSIS 
87      (Nullsoft Scriptable Install System).
88      http://nsis.sourceforge.net/Download
89    + Modify the default <dev dir>\bacula\src\win32\winbacula.nsi.in 
90      script to include your own customizations.
91      These are the required modifications:
92      
93      * Remove all references to msvcr71.dll, as this is a pre VC++ 2005 library.
94      * VC++ 2005 compiled binaries require a new way of deploying DLLs: WinSxS.
95        More info: http://blogs.msdn.com/nikolad/archive/2005/03/18/398720.aspx
96        Collect the following 4 files from c:\WINDOWS\WinSxS and copy them into the
97        directory where winbacula.nsi resides. Also add them to winbacula.nsi where
98        msvcr71.dll was previously.
99        
100        File msvcm80.dll
101        File msvcp80.dll
102        File msvcr80.dll
103        File Microsoft.VC80.CRT.manifest
104        
105        Modify Microsoft.VC80.CRT.manifest to match the version number mentioned in
106        bacula-fd.exe.intermediate.manifest that is in /bacula/src/win32/baculafd/Release.
107