Updated linenoise to be MSys2/MinGW compatible. Updated address_parser app to use the defined libpostal api and not include internal components directly. Removed windows src Makefile as it is now the same as the standard one.
This commit is contained in:
37
README.md
37
README.md
@@ -1,6 +1,8 @@
|
||||
# libpostal: international street address NLP
|
||||
|
||||
[](https://travis-ci.org/openvenues/libpostal) [](https://github.com/openvenues/libpostal/blob/master/LICENSE)
|
||||
[](https://travis-ci.org/openvenues/libpostal)
|
||||
[](https://ci.appveyor.com/project/albarrentine/libpostal/branch/master)
|
||||
[](https://github.com/openvenues/libpostal/blob/master/LICENSE)
|
||||
[](#sponsors)
|
||||
[](#backers)
|
||||
|
||||
@@ -137,6 +139,39 @@ For example, if you write a program called app.c, you can compile it like this:
|
||||
gcc app.c `pkg-config --cflags --libs libpostal`
|
||||
```
|
||||
|
||||
**On Windows (MSys2/MinGW)**
|
||||
|
||||
For Windows the build procedure currently requires MSys2 and MinGW. This can be downloaded from http://msys2.org. Please follow the instructions on the MSys2 website for installation.
|
||||
|
||||
Please ensure Msys2 is up-to-date by running:
|
||||
```
|
||||
pacman -Syu
|
||||
```
|
||||
|
||||
Install the following prerequisites:
|
||||
```
|
||||
pacman -S autoconf automake curl git make libtool gcc mingw-w64-x86_64-gcc
|
||||
```
|
||||
|
||||
Then to build the C library:
|
||||
```
|
||||
git clone https://github.com/openvenues/libpostal
|
||||
cd libpostal
|
||||
cp -rf windows/* ./
|
||||
./bootstrap.sh
|
||||
./configure --datadir=[...some dir with a few GB of space...]
|
||||
make
|
||||
make install
|
||||
```
|
||||
Notes: When setting the datadir, the `C:` drive would be entered as `/c`. The libpostal build script automatically add `libpostal` on the end of the path, so '/c' would become `C:\libpostal\` on Windows.
|
||||
|
||||
The compiled .dll will be in the `src/.libs/` directory and should be called `libpostal-1.dll`.
|
||||
|
||||
If you require a .lib import library to link this to your application. You can generate one using the Visual Studio `lib.exe` tool and the `libpostal.def` definition file:
|
||||
```
|
||||
lib.exe /def:libpostal.def /out:libpostal.lib /machine:x64
|
||||
```
|
||||
|
||||
Examples of parsing
|
||||
-------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user