File: INSTALL.windows

package info (click to toggle)
concordance 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 7,700 kB
  • sloc: cpp: 7,203; sh: 4,621; ansic: 882; python: 707; perl: 171; makefile: 132; xml: 34
file content (61 lines) | stat: -rw-r--r-- 1,943 bytes parent folder | download | duplicates (3)
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
==== BASIC INSTALLATION ====

0. INSTALL REQUIRED SOFTWARE

Compiling libconcord with MinGW is now the officially supported method.  Other
methods may work, but are not officially supported at this time.  Libconcord
has been compiled on Fedora using MinGW - other distributions may work as well.

If you are cross-compiling on Linux, your life will be easier if you make
a directory where you will install all of the dependencies in with --prefix.
For the purposes of this document, we'll assume that's /tmp/buildroot.

ZLIB
In Fedora, simply install the mingw32-zlib package.

For other distributions, including building on Windows directly, grab the
pre-built DLL from zlib.net. In the unzip'd directory do:
  mkdir -p /tmp/buildroot/{include,lib}
  cp lib/zdll.lib lib/libzdll.a # See USAGE.txt in zlib for details
  cp zlib1.dll lib
  cp -r lib/* /tmp/buildroot/lib/
  cp -r include/* /tmp/buildroot/include/

LIBZIP
In Fedora, simply install mingw32-libzip.

For other distributions, including building on Windows directly, grab the
source, and then:
  ./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot \
    --with-zlib=/tmp/buildroot \
    LDFLAGS="-lzdll -L/tmp/buildroot/lib"
  make
  make install

HIDAPI
In Fedora, simply install mingw32-hidapi.

For other distributions, including building on Windows directly, grab the
source from https://github.com/signal11/hidapi. Get it from git (NOT a
release) and then:
  ./bootstrap
  ./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot
  make
  make install

1. BUILD THE SOFTWARE

Building libconcord with MinGW is also fairly straight forward.

In Fedora:
   mingw32-configure
   mingw32-make

For other distributions:
   ./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot \
     CPPFLAGS="-I/tmp/buildroot/include" \
     LDFLAGS="-L/tmp/buildroot/libs -L/tmp/buildroot/libs/bin" \
     PKG_CONFIG_PATH=/tmp/buildroot/lib/pkgconfig
   make

vim:textwidth=78: