]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/README.win32
b5754bc46f061bd30e7c4526aaa311982edc4db1
[bacula/bacula] / bacula / src / win32 / README.win32
1
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
5 program.
6
7 The directory structure is:
8
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
13                            by VC++
14     console             Build of console program and bconsole.conf
15       Release           Release objects  and bconsole.exe
16       Debug             Debug objects 
17     wx-console          Buld of wx-console program and wx-console-conf
18       Release           Release objects and wx-console.exe
19       Debug             Debug objects.
20     filed               Links to core filed code
21     findlib             Links to core findlib code
22     lib                 Links to core lib code
23
24   depkgs-win32
25     pthreads            The POSIX pthreads library (third party)
26     zlib                The zlib library (third party)
27     wx                  The wxWidgets library (third party)
28
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
32 release section.
33
34 To build it:
35 - Make sure nmake, and VC++ libraries and includes are setup correctly
36   in PATH, INCLUDE, and LIB environment variables.
37 - cd depkgs-win32
38   make
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
42   click build all.
43 - cd bacula
44   ./configure
45   cd src/win32
46   make
47
48 That should be all there is too it. The winbacula-1.xx.y.exe should be
49 in the current directory.
50
51
52 See License.txt for the License.
53
54 The native Win32 interface code was written by:
55
56    Christopher S. Hull, February 2004
57
58
59 For more details of building wx, see depkgs-win32/wx/docs/msw/install.txt
60
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
63 of additional work.
64
65 Here are additional pointers on building wx-console supplied by Nicolas Boichat:
66
67
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
75   on a 32 bit Windows).
76
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)
85
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
90     
91 - Compile bacula depkg-win32 with Visual Studio or try the
92   supplied makefiles as described in the doc.
93
94 - Compile wx-console with nmake -f wx-console.mak in
95   src/win32/wx-console
96
97 - Additional information on using the free Micrsosoft C++ see
98   http://sapdb.2scale.net/moin.cgi/MS_20C_2b_2b_20Toolkit
99
100 NOTE! I (Kern) cannot build wxWindows with the Makefile -- I had to use                
101 VC Studio directly to do so following their instructions.