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