]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/README.mingw32
7f416e051e8cea85ef0dc8ac7366dd8c3d486132
[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 bacula setup
32 ------------
33 $ cd bacula/src/win32
34 $ make
35
36 Make sure that bacula/src/win32/release/bacula.dll is built
37
38 QT4 setup
39 ----------
40
41 Install QT for mingw
42
43 Get the mingw installation from http://trolltech.com/developer/downloads/qt/windows
44 (Try to get the same version than your linux installation)
45
46 $ wine qt-win-opensource-4.4.0-mingw.exe
47  * Install under c:\Qt (no space)
48  * no worry about mingw installation
49
50 $ cp -r ~/.wine/drive_c/Qt/4.4.0/src/    depkgs-mingw32/include
51 $ cp -r ~/.wine/drive_c/Qt/4.4.0/include depkgs-mingw32/include/qt
52 $ cp -r ~/.wine/drive_c/Qt/4.4.0/lib     depkgs-mingw32/lib/qt
53 # copy ~/.wine/drive_c/Qt/4.4.0/bin/QtCore4.dll to src/win32/release
54 # copy ~/.wine/drive_c/Qt/4.4.0/bin/QtGui4.dll to src/win32/release
55
56 MINGW setup
57 -----------
58
59 --- cross-tools/mingw32/mingw32/include/wchar.h.org     2008-07-13 15:18:52.000000000 +0200
60 +++ cross-tools/mingw32/mingw32/include/wchar.h 2008-07-12 14:47:10.000000000 +0200
61 @@ -394,7 +394,7 @@
62         time_t  st_ctime;       /* Creation time */
63  };
64
65 -#ifndef _NO_OLDNAMES
66 +#ifdef _NO_OLDNAMES_DISABLE
67  /* NOTE: Must be the same as _stat above. */
68  struct stat
69  {
70
71 Compile bat
72 -----------
73
74 $ cd bacula/src/qt-console
75 $ ./make-win32
76
77 Cleanup
78 -------
79 $ cd bacula/src/qt-console
80 $ ./make-win32 clean
81
82
83
84 Run Bat on Windows
85 ------------------
86
87 You'll need
88    zlib1.dll
89    ssleay32.dll
90    libeay32.dll
91    QtCore4.dll
92    QtGui4.dll
93    bacula.dll
94    pthreadGCE.dll
95    mingwm10.dll
96    bat.conf
97
98 You can find the Qt dlls in ~/.wine/drive_c/Qt/4.4.0/bin
99
100 Run Bat with wine
101 -----------------
102 $ cd bacula/src/qt-console/debug
103
104 # configure a bat.conf
105 # copy all dlls to this directory
106
107 $ wine bat 
108
109
110 That all, easy isn't it ?