1==== BASIC INSTALLATION ====
2
30. INSTALL REQUIRED SOFTWARE
4
5Compiling Concordance with MinGW is now the officially supported method.  Other
6methods may work, but are not officially supported at this time.  Concordance
7has been compiled on Fedora using MinGW - other distributions may work as well.
8
91. BUILD THE SOFTWARE
10
11Building concordance with MinGW is fairly straight forward (you will need to
12specify the include and library paths for libconcord as below if you did not
13install it to the MinGW sysroot):
14
15   ./configure --host=i686-w64-mingw32 \
16     CPPFLAGS="-I../libconcord" LDFLAGS="-L../libconcord/.libs"
17   make
18
19To build a Win32 installer, you will need to have NSIS installed.
20Additionally, you will need to set some environment variables.
21
22Assuming you were following the Fedora instructions in
23../libconcord/INSTALL.windows:
24   export MINGW_SYSROOT_BIN="/usr/i686-w64-mingw32/sys-root/mingw/bin"
25          # the path where the MinGW DLL files can be found
26   export MINGW_SYSROOT_DEVLIB="$MINGW_SYSROOT_BIN"
27   export ZLIB_LIB_PATH="$MINGW_SYSROOT_BIN"
28   export LIBZIP_LIB_PATH="$MINGW_SYSROOT_BIN"
29   export HIDAPI_LIB_PATH="$MINGW_SYSROOT_BIN"
30
31Or if you used the non-Fedora instructions:
32   export MINGW_SYSROOT_BIN="/usr/lib/gcc/i686-w64-mingw32/4.8"
33          # the path where the MinGW DLL files can be found
34   export MINGW_SYSROOT_DEVLIB="/usr/i686-w64-mingw32/lib"
35          # where libwinpthread-1.dll can be found, typically in the -dev
36          #package
37   export ZLIB_LIB_PATH="/tmp/buildroot/lib"
38   export LIBZIP_LIB_PATH="/tmp/buildroot/bin"
39   export HIDAPI_LIB_PATH="/tmp/buildroot/bin"
40
41Then, build the installer:
42   make win32-installer
43
44vim:textwidth=78:
45