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 :
31 Linux bacula setup -- Note: I believe that this is *required* before trying
32 to build the Win32 bat.
35 $ ./configure <your-options-for Linux>
39 Make sure that bacula/src/win32/release/bacula.dll is built
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 ftp://ftp.qtsoftware.com/qt/source
51 $ wine qt-win-opensource-4.3.5-mingw.exe
52 * Install under c:\Qt (no space)
53 * no worry about mingw installation
55 $ cd ~/.wine/drive_c/Qt/4.3.5/
56 $ find src -type d -o -name '*.h' | cpio -pmv /tmp/depkgs-mingw32/include
58 $ cp -r ~/.wine/drive_c/Qt/4.3.5/src/ depkgs-mingw32/include
60 $ cp -r ~/.wine/drive_c/Qt/4.3.5/include depkgs-mingw32/include/qt
61 $ cp -r ~/.wine/drive_c/Qt/4.3.5/lib depkgs-mingw32/lib/qt
62 # cp ~/.wine/drive_c/Qt/4.3.5/bin/QtCore4.dll src/win32/release32
63 # cp ~/.wine/drive_c/Qt/4.3.5/bin/QtGui4.dll src/win32/release32
67 I think this only needs to be done once ...
69 --- cross-tools/mingw32/mingw32/include/wchar.h.org 2008-07-13 15:18:52.000000000 +0200
70 +++ cross-tools/mingw32/mingw32/include/wchar.h 2008-07-12 14:47:10.000000000 +0200
72 time_t st_ctime; /* Creation time */
76 +#ifdef _NO_OLDNAMES_DISABLE
77 /* NOTE: Must be the same as _stat above. */
84 $ cd bacula/src/qt-console
85 $ export DEPKGS="directory above cross-tools and depkgs"
91 $ cd bacula/src/qt-console
94 The bat.exe will be in src/qt-console/debug/bat.exe
112 You can find the Qt dlls in ~/.wine/drive_c/Qt/4.3.5/bin
116 $ cd bacula/src/qt-console/debug
118 # configure a bat.conf
119 # copy all dlls to this directory
124 That all, easy isn't it ?