]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/README.mingw32
ebl Update documentation
[bacula/bacula] / bacula / src / qt-console / README.mingw32
1
2 BUILD SYSTEM: Ubuntu gutsy
3 STATUS: Works
4
5 REQUIRE: 
6  - Bacula cross compilation tool (must be able to compile bacula-fd.exe)
7  - wine (apt-get install wine)
8  - qt mingw32 distribution
9
10 ORIGINAL HOWTO (french):
11 http://doc.qtfr.org/post/2007/04/10/Cross-Compilation-Native-dapplication-Qt-depuis-Linux
12
13 Legend:
14 # comment
15 $ shell command
16 * tips
17
18 Directory setup
19 ---------------
20 $ cd bacula/src/win32
21 $ ./build-win32-cross-tools
22 $ ./build-depkgs-mingw32
23
24 It will result something like :
25
26 ./
27 |-- depkgs-mingw32
28 |-- cross-tools
29 `-- bacula
30
31 Linux bacula setup -- Note: I believe that this is *required* before trying
32                       to build the Win32 bat.
33 ------------
34 $ cd bacula
35 $ ./configure <your-options-for Linux>
36 $ cd bacula/src/win32
37 $ make
38
39 Make sure that bacula/src/win32/release/bacula.dll is built
40
41 QT4 setup
42 ----------
43
44 Install QT for mingw
45
46 Get the mingw installation from http://trolltech.com/developer/downloads/qt/windows
47 (Try to get the same version than your linux installation)
48
49 $ wine qt-win-opensource-4.4.0-mingw.exe
50  * Install under c:\Qt (no space)
51  * no worry about mingw installation
52
53 $ cp -r ~/.wine/drive_c/Qt/4.4.1/src/    depkgs-mingw32/include
54 $ cp -r ~/.wine/drive_c/Qt/4.4.1/include depkgs-mingw32/include/qt
55 $ cp -r ~/.wine/drive_c/Qt/4.4.1/lib     depkgs-mingw32/lib/qt
56 # cp ~/.wine/drive_c/Qt/4.4.1/bin/QtCore4.dll src/win32/release32
57 # cp ~/.wine/drive_c/Qt/4.4.1/bin/QtGui4.dll src/win32/release32
58
59 MINGW setup
60 -----------
61 I think this only needs to be done once ...
62
63 --- cross-tools/mingw32/mingw32/include/wchar.h.org     2008-07-13 15:18:52.000000000 +0200
64 +++ cross-tools/mingw32/mingw32/include/wchar.h 2008-07-12 14:47:10.000000000 +0200
65 @@ -394,7 +394,7 @@
66         time_t  st_ctime;       /* Creation time */
67  };
68
69 -#ifndef _NO_OLDNAMES
70 +#ifdef _NO_OLDNAMES_DISABLE
71  /* NOTE: Must be the same as _stat above. */
72  struct stat
73  {
74
75 Compile bat
76 -----------
77
78 $ cd bacula/src/qt-console
79 $ ./make-win32
80
81 Cleanup
82 -------
83 $ cd bacula/src/qt-console
84 $ ./make-win32 clean
85
86 The bat.exe will be in src/qt-console/debug/bat.exe
87
88
89
90 Run Bat on Windows
91 ------------------
92
93 You'll need
94    zlib1.dll
95    ssleay32.dll
96    libeay32.dll
97    QtCore4.dll
98    QtGui4.dll
99    bacula.dll
100    pthreadGCE.dll
101    mingwm10.dll
102    bat.conf
103
104 You can find the Qt dlls in ~/.wine/drive_c/Qt/4.4.0/bin
105
106 Run Bat with wine
107 -----------------
108 $ cd bacula/src/qt-console/debug
109
110 # configure a bat.conf
111 # copy all dlls to this directory
112
113 $ wine bat 
114
115
116 That all, easy isn't it ?