| 1 |
==== BASIC INSTALLATION ==== |
| 2 |
|
| 3 |
0. INSTALL REQUIRED SOFTWARE |
| 4 |
|
| 5 |
Compiling libconcord with MinGW is now the officially supported method. Other |
| 6 |
methods may work, but are not officially supported at this time. Libconcord |
| 7 |
has been compiled on Fedora using MinGW - other distributions may work as well. |
| 8 |
|
| 9 |
If you are cross-compiling on Linux, your life will be easier if you make |
| 10 |
a directory where you will install all of the dependencies in with --prefix. |
| 11 |
For the purposes of this document, we'll assume that's /tmp/buildroot. |
| 12 |
|
| 13 |
ZLIB |
| 14 |
In Fedora, simply install the mingw32-zlib package. |
| 15 |
|
| 16 |
For other distributions, including building on Windows directly, grab the |
| 17 |
pre-built DLL from zlib.net. In the unzip'd directory do: |
| 18 |
mkdir -p /tmp/buildroot/{include,lib} |
| 19 |
cp lib/zdll.lib lib/libzdll.a # See USAGE.txt in zlib for details |
| 20 |
cp zlib1.dll lib |
| 21 |
cp -r lib/* /tmp/buildroot/lib/ |
| 22 |
cp -r include/* /tmp/buildroot/include/ |
| 23 |
|
| 24 |
LIBZIP |
| 25 |
In Fedora, simply install mingw32-libzip. |
| 26 |
|
| 27 |
For other distributions, including building on Windows directly, grab the |
| 28 |
source, and then: |
| 29 |
./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot \ |
| 30 |
--with-zlib=/tmp/buildroot \ |
| 31 |
LDFLAGS="-lzdll -L/tmp/buildroot/lib" |
| 32 |
make |
| 33 |
make install |
| 34 |
|
| 35 |
HIDAPI |
| 36 |
In Fedora, simply install mingw32-hidapi. |
| 37 |
|
| 38 |
For other distributions, including building on Windows directly, grab the |
| 39 |
source from https://github.com/signal11/hidapi. Get it from git (NOT a |
| 40 |
release) and then: |
| 41 |
./bootstrap |
| 42 |
./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot |
| 43 |
make |
| 44 |
make install |
| 45 |
|
| 46 |
LIBCURL |
| 47 |
In Fedora, simply install mingw32-curl. |
| 48 |
|
| 49 |
For other distributions, including building on Windows directly, grab the |
| 50 |
source from https://curl.se/download.html and follow the instructions for |
| 51 |
building and installing it to /tmp/buildroot. |
| 52 |
|
| 53 |
1. BUILD THE SOFTWARE |
| 54 |
|
| 55 |
Building libconcord with MinGW is also fairly straight forward. |
| 56 |
|
| 57 |
In Fedora: |
| 58 |
mingw32-configure |
| 59 |
mingw32-make |
| 60 |
|
| 61 |
For other distributions: |
| 62 |
./configure --host=i686-w64-mingw32 --prefix=/tmp/buildroot \ |
| 63 |
CPPFLAGS="-I/tmp/buildroot/include" \ |
| 64 |
LDFLAGS="-L/tmp/buildroot/libs -L/tmp/buildroot/libs/bin" \ |
| 65 |
PKG_CONFIG_PATH=/tmp/buildroot/lib/pkgconfig |
| 66 |
make |
| 67 |
|
| 68 |
vim:textwidth=78: |