Ticket #9: INSTALL.Win32

File INSTALL.Win32, 2.3 kB (added by hsattler, 16 months ago)

install instruction for Windows

Line 
1How to compile with MinGW32
2===========================
3
4Requirements
5------------
6
7From Microsoft:
8the Microsoft Platform SDK
9
10From http://www.mingw.org:
11MinGW32
12MSys
13msysDTK
14
15From http://libusb-win32.sf.net:
16libusb-win32 (version from August 2006 or later)
17
18From http://www.gimp.org/win32:
19pkg-config
20glib-2.x
21libiconv
22gettext
23
24If you use msysDTK <= 1.0.1, you also neeed
25from http://gnuwin32.sf.net:
26File
27
28
29
30Preparing the build environment
31-------------------------------
32
33Install all the requirements in the above order. The instructions
34below use seperate directories but you can also copy everything to
35/mingw (NOT to /).
36
37Unpack glib-2.x, libiconv, gettext and pkg-config to /glib in the MSys
38root directory or use /etc/fstab to mount it.
39
40To include the libusb-win32 into MSys, you add an entry to /etc/fstab:
41C:/Programs/LibUSB-Win32/   /libusb
42and restart MSys.
43
44To get the bluetooth header files, you need to install the Platform SDK.
45You only neeed the Build Environment for x86 32bit from the Core SDK.
46Create a directory /psdk/include in the MSys root directoy and copy the
47following files from the Platform SDK:
48ws2bth.h
49bthdef.h
50bthsdpdef.h
51af_irda.h
52
53If necessary (see above), unpack the file utility into the /mingw directory.
54You must NOT use the Msys root. To make sure it works, TEST IT!.
55Example output is ($ is the MSys command line prompt):
56$ file INSTALL.Win32
57INSTALL.Win32: ASCII English text
58
59
60
61Bootstrapping the CVS version
62-----------------------------
63
64Run:
65$ export ACLOCAL="aclocal -I /glib/share/aclocal"
66$ autoreconf -v --install
67
68
69
70Building OpenOBEX
71-----------------
72
73Now export some variables:
74$ export CFLAGS="-I/libusb/include -I/psdk/include"
75$ export LDFLAGS="-L/libusb/lib/gcc"
76$ export PKG_CONFIG_PATH="/glib/lib/pkgconfig"
77
78If you installed pkg-config to /glib:
79$ export PATH="$PATH:/glib/bin"
80
81$ ./configure --prefix=/mingw --enable-apps --enable-glib --disable-static
82
83pkg-config, glib, bluetooth and USB should be detected now.
84You MUST disable building the static library due to a broken libtool.
85However, you can build it later and manually merge the two libopenobex.la
86files that get created by libtool.
87
88Now run:
89$ make
90$ make install DESTDIR=$(pwd)/local
91
92Take a look at the file list to install:
93$ find local
94
95If you want to install all of these files, run:
96$ make install