2 BUILD SYSTEM: Ubuntu gutsy
6 - Bacula cross compilation tool (must be able to compile bacula-fd.exe)
7 - wine (apt-get install wine)
8 - qt mingw32 distribution
10 ORIGINAL HOWTO (french):
11 http://doc.qtfr.org/post/2007/04/10/Cross-Compilation-Native-dapplication-Qt-depuis-Linux
21 $ ./build-win32-cross-tools
22 $ ./build-depkgs-mingw32
24 It will result something like :
36 Don't run any configure, make or make install
37 Make sure that bacula/src/win32/release/bacula.dll is built
44 Get the mingw installation from http://trolltech.com/developer/downloads/qt/windows
45 (Try to get the same version than your linux installation)
47 $ wine qt-win-opensource-4.4.0-mingw.exe
48 * Install under c:\Qt (no space)
49 * no worry about mingw installation
51 $ cp -r ~/.wine/drive_c/Qt/4.4.0/src/ depkgs-mingw32/include
52 $ cp -r ~/.wine/drive_c/Qt/4.4.0/include depkgs-mingw32/include/qt
53 $ cp -r ~/.wine/drive_c/Qt/4.4.0/lib depkgs-mingw32/lib/qt
58 --- cross-tools/mingw32/mingw32/include/wchar.h.org 2008-07-13 15:18:52.000000000 +0200
59 +++ cross-tools/mingw32/mingw32/include/wchar.h 2008-07-12 14:47:10.000000000 +0200
61 time_t st_ctime; /* Creation time */
65 +#ifdef _NO_OLDNAMES_DISABLE
66 /* NOTE: Must be the same as _stat above. */
73 $ cd bacula/src/qt-console
74 $ cp bat.pro.mingw bat.pro
75 $ qmake-qt4 -spec win32-x-g++
92 You can find QT dlls on ~/.wine/drive_c/Qt/4.4.0/bin
96 $ cd bacula/src/qt-console/debug
98 # configure a bat.conf
99 # copy all dll to this directory
104 That all, easy isn't it ?