-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.w32
64 lines (46 loc) · 1.52 KB
/
INSTALL.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
This is a short overview of how to build
XCA for windows.
This is for debian hosts, cross-compiling a windows binary.
Needed packages:
mingw cross compiler
makensis cross tool
wine (to run moc.exe and uic.exe)
# apt-get install mingw32 mingw32-binutils mingw32-runtime nsis wine
create a new, empty directory say xca-w32
$ cd xca-w32
$ tar zxf xca-0.x.y.tar.gz
Use a W32 host to execute and install the selfextracting QT4....exe
copy the installed tree to ./qt/
Now you can either call xca-x.y.z/misc/build-w32.sh
and wait until xca_setup.exe is built,
or follow the steps below by hand:
$ export INSTALL_DIR=`pwd`/install
OpenSSL 0.9.8 - 1.0.2 are supported.
$ cp openssl-1.0.Xy.tar.gz .
$ tar zxf openssl-1.0.Xy.tar.gz
apply openssl-cross-patch:
$ cd openssl-1.0.Xy
$ patch -p1 < ../xca/misc/openssl-1.0.0-mingw32-cross.patch
compile openssl with:
$ sh ms/mingw32-cross.sh
$cd ..
unpack libtool-2.2 and cd in libtool-2.2
$ ./configure --host i586-mingw32msvc --prefix ${INSTALL_DIR}
$ make && make install
$ cd ..
compile xca:
$ cd xca-1.2.0
$ ./configure.w32
Edit Local.mak if needed:
if your linux-qt is the same version as the w32 one,
keep USE_HOSTTOOLS at "yes" otherwise set it to "no"
and say make
$ make
Fix the missing System.dll in /usr/share/nsis/Plugins by
copying it from an NSIS windows installation.
Get the mingw runtime lib:
$ zcat /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >mingwm10.dll
translate the QT language files
$ lrelease-qt4 ../qt/4.6.2/translations/qt_*.ts
create the setup.exe
$ make setup.exe