File: README.mingw32

package info (click to toggle)
aeskulap 0.2.2-beta2%2Bgit20190406.ef77f01-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,736 kB
  • sloc: cpp: 9,213; ansic: 685; makefile: 330; sh: 256; xml: 101
file content (71 lines) | stat: -rw-r--r-- 1,824 bytes parent folder | download | duplicates (4)
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
64
65
66
67
68
69
70
71
Compilation instructions for Aeskulap on MINGW32
------------------------------------------------

This document describes the cross-compilation process
from Linux for Windows using the MINGW32 cross-compiler.

First you have to install the MINGW32 cross-compiler:
-----------------------------------------------------

I did this under Debian and Ubuntu where the mingw32 package is available.
TODO - instructions for other distributions


Get the DCMTK binaries for MINGW32:
-----------------------------------

Download the binary package from:
http://www.bms-austria.com/~pipelka/aeskulap/dcmtk-mingw32/dcmtk-mingw32-bin.zip

Unzip the package into the /usr/mingw32 directory (has to be created first).


Get the GKTMM development environment for MINGW32:
--------------------------------------------------

Download the package from:
http://www.bms-austria.com/~pipelka/aeskulap/gtkmm-mingw32/gtkmm-mingw32.zip

Unzip contents of the GTK dir (inside the package) into the /usr/mingw32 directory.


Create the pkg-config environment:
----------------------------------

Paste the following script into /usr/bin/i586-mingw32msvc-pkg-config
and make it executable:

#!/bin/sh

oldprefix=/target
prefix=/usr/mingw32

output=`PKG_CONFIG_LIBDIR=${prefix}/lib/pkgconfig /usr/bin/pkg-config "$@"`
result=$?

echo -n ${output} | sed -e "s|-\([IL]\)${oldprefix}|\-\1${prefix}|g"
exit $result 


Get the Aeskulap sources from CVS:
----------------------------------

cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/aeskulap co aeskulap


Compile the sources:
--------------------

cd aeskulap
sh autogen.sh
./configure.mingw32
make

After that you may install the binary with:

make install (as root)

or

make install-strip (as root)
This will strip all debugging information and dramatically reduce the size of the binary.