blob: 5aef2935fbf351f71b6772cf23bdd8c89c6ae048 [file] [log] [blame]
Jeongik Cha1199caa2021-07-20 12:32:58 +09001
2To produce a PDF manual, issue the command "make pdf" after running
3`./configure'.
4
5 -*-
6
7If you do not wish to build the C++ components, use:
8
9./configure --disable-cxx
10
11 -*-
12
13The `examples' subdirectory contains some examples of using libconfig
14from C and C++.
15
16 -*-
17
18Flex and Bison are not required in order to build this
19package. However, you will need them, if you modify the .l or .y files. See
20the list of required build tool versions below.
21
22 -*-
23
24To successfully compile using MinGW (with gcc 4.4.0 or later), it may
25be necessary to modify the file "mingw32\4.4.0\libstdc++.la", changing line 11
26from:
27
28library_names='libstdc++.dll.a'
29
30to:
31
32library_names='libstdc++.a'
33
34(See http://trac.osgeo.org/geos/ticket/282 for more information).
35
36 -*-
37
38To cross-compile for Android:
39
401) Create a standalone toolchain using the 'make-standalone-toolchain.sh'
41script included with the Android NDK. For example:
42
43$ /pkg/android-ndk-r9d/build/tools/make-standalone-toolchain.sh \
44 --platform=android-19 \
45 --install-dir=/pkg/android-toolchain-19 \
46 --system=linux-x86_64 \
47 --arch=arm
48
492) Add the standalone toolchain's bin directory to the front of the path:
50
51$ export PATH=/pkg/android-toolchain-19/bin:$PATH
52
533) Configure libconfig for cross-compilation:
54
55$ ./configure --host=arm-linux-androideabi \
56 --with-sysroot=/pkg/android-toolchain-19/sysroot
57
584) Build libconfig
59
60$ make
61
62 -*-
63
64Build tools dependencies. (These are only required if you are a maintainer.)
65
66Autoconf 2.69
67Automake 1.14.1
68Bison 3.0.2
69Flex 2.5.39
70Libtool 2.4.2
71
72 -*-
73
74Libconfig may be found on github at https://github.com/hyperrealm/libconfig
75
76
77
78For some reason, we need to symlink /pkg/android-toolchain-19/sysroot/pkg -> /pkg