2 This directory <bacula-src>/src/win32 contains the build
3 environment for building the native Win32 Bacula File daemon,
4 the native Win32 bconsole program and the wx-console GUI console
7 The directory structure is:
9 bacula/src/win32 Makefiles and scripts
10 baculafd Visual Studio Files
11 Release Release objects, and bacula-fd.exe
12 Debug Debug object, and bacula-fd.exe produced
14 console Build of console program and bconsole.conf
15 Release Release objects and bconsole.exe
17 wx-console Buld of wx-console program and wx-console-conf
18 Release Release objects and wx-console.exe
20 filed Links to core filed code
21 findlib Links to core findlib code
22 lib Links to core lib code
25 pthreads The POSIX pthreads library (third party)
26 zlib The zlib library (third party)
27 wx The wxWidgets library (third party)
29 depkgs-win32 is released separate .tar.gz file that contains the
30 source for the above mentioned libraries needed to build the
31 Win32 Bacula. It can be found in the Source Forge Bacula project
35 - Make sure nmake, and VC++ libraries and includes are setup correctly
36 in PATH, INCLUDE, and LIB environment variables.
39 - You may have to build wx with VC++ (as was the case for me).
40 In that case, open wx/src/wxWindows.dsp with VC++, select
41 static complilation (not the DLL) of "Win32 Release", then
48 That should be all there is too it. The winbacula-1.xx.y.exe should be
49 in the current directory.
52 See License.txt for the License.
54 The native Win32 interface code was written by:
56 Christopher S. Hull, February 2004
59 For more details of building wx, see depkgs-win32/wx/docs/msw/install.txt
61 The easiest way to build this is to have a Visual Studio C++ 6.0.
62 However, you can use the free Microsoft C++ compiler with a bit
65 Here are additional pointers on building wx-console supplied by Nicolas Boichat:
68 Tools I used (I think the 3 first one are included in VStudio) :
69 - VC++ toolkit : http://msdn.microsoft.com/visualc/vctoolkit2003/
70 - Windows Platform SDK :
71 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
72 (Core SDK and Internet Development SDK)
73 - nmake (it got it with .Net Framework SDK)
74 - lib.exe found in the SDK-base/Bin/win64 directory (works fine
77 Instructions if you want to build wx-console :
78 - wxWidgets 2.4.2 compilation
79 + In include/wx/string.h, replace line 195 by
80 #if defined(__VISUALC__) // && defined(_MT) && !defined(_DLL)
81 + In src/common/string.cpp, replace line 167 by
82 #if defined(__VISUALC__) // && defined(_MT) && !defined(_DLL)
83 + Follow the instructions in docs/msw/install.txt
84 (Visual C++ 6.0 compilation - Using makefiles)
86 - Make sure that the environment variables are set as:
87 - PATH includes the directories bin of both the C++ Toolkit and the SDK
88 - INCLUDE includes the directories include of both the C++ Toolkit and the SDK
89 - LIB includes the directories Lib of both the C++ Toolkit and the SDK
91 - Compile bacula depkg-win32 with Visual Studio or try the
92 supplied makefiles as described in the doc.
94 - Compile wx-console with nmake -f wx-console.mak in
97 - Additional information on using the free Micrsosoft C++ see
98 http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit
100 NOTE! I (Kern) cannot build wxWindows with the Makefile -- I had to use
101 VC Studio directly to do so following their instructions.