forked from opencog/link-grammar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.MSYS
57 lines (45 loc) · 2.26 KB
/
README.MSYS
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
BUILDING on Windows (MinGW/MSYS)
--------------------------------
MinGW/MSYS uses the Gnu toolset to compile Windows programs for
Windows. This is probably the easiest way to obtain workable Java
bindings for Windows. Download and install MinGW, MSYS and MSYS-DTK
from http://mingw.org.
Then build and install link-grammar with
./configure
make
make install
If you used the standard installation paths, the directory /usr/ is
mapped to C:\msys\1.0, so after 'make install', the libraries and
executable will be found at C:\msys\1.0\local\bin and the dictionary
files at C:\msys\1.0\local\share\link-grammar.
Running
-------
See "RUNNING the program" in the main README.
Java bindings
-------------
In order to use the Java bindings you'll need to build two extra
DLLs, by running the following commands from the link-grammar base
directory:
cd link-grammar
gcc -g -shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at \
.libs/analyze-linkage.o .libs/and.o .libs/api.o \
.libs/build-disjuncts.o .libs/constituents.o \
.libs/count.o .libs/disjuncts.o .libs/disjunct-utils.o \
.libs/error.o .libs/expand.o .libs/extract-links.o \
.libs/fast-match.o .libs/idiom.o .libs/massage.o \
.libs/post-process.o .libs/pp_knowledge.o .libs/pp_lexer.o \
.libs/pp_linkset.o .libs/prefix.o .libs/preparation.o \
.libs/print-util.o .libs/print.o .libs/prune.o \
.libs/read-dict.o .libs/read-regex.o .libs/regex-morph.o \
.libs/resources.o .libs/spellcheck-aspell.o \
.libs/spellcheck-hun.o .libs/string-set.o .libs/tokenize.o \
.libs/utilities.o .libs/word-file.o .libs/word-utils.o \
-o /usr/local/bin/link-grammar.dll
gcc -g -shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at \
.libs/jni-client.o /usr/local/bin/link-grammar.dll \
-o /usr/local/bin/link-grammar-java.dll
This will create link-grammar.dll and link-grammar-java.dll in the
directory c:\msys\1.0\local\bin . These files, together with
link-grammar-*.jar, will be used by Java programs.
Make sure that this directory is in the %PATH setting, as otherwise,
the DLL's will not be found.