Mercurial > pub > dyncall > bindings
annotate erlang/erldc/README.txt @ 14:7752fcb107e7
- erlang binding build fix, linker arg was at wrong place
author | cslag |
---|---|
date | Sat, 26 Mar 2016 16:09:04 +0100 |
parents | 079718588eb6 |
children | 1673ab696715 |
rev | line source |
---|---|
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
1 BUILD/INSTALLATION |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
2 ================== |
0 | 3 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
4 1) make sure dyncall is built and libraries/headers are in include paths or |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
5 CFLAGS points to them, etc.. Same goes for erlang headers/libs. |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
6 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
7 2) Build this erlang NIF: |
0 | 8 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
9 make |
0 | 10 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
11 3) To install, pick correct install paths by defining PREFIX (if needed, e.g. |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
12 for stage dir) and ERLANG_INST_DIR (e.g. /usr/lib64/erlang, |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
13 /usr/local/lib/erlang, ...): |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
14 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
15 make ERLANG_INST_DIR=/erlang/in/this/dir install |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
16 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
17 Erlang doesn't use pkg-config, so it's up to you to point to set the flags to |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
18 point to correct paths at build and install-time. |
0 | 19 |
20 The makefile is meant to be portable, at least across *nix. | |
21 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
22 |
0 | 23 RUNNING TESTS |
24 ============= | |
25 | |
26 Unit tests (via common test): | |
27 | |
28 make tests | |
29 | |
30 Static analysis (via dialyzer): | |
31 | |
32 make build-plt | |
33 make dialyze | |
34 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
35 |
0 | 36 USING |
37 ===== | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
38 |
0 | 39 Examine the test suites for several examples. |
40 | |
41 Dyncall is built as an OTP library application, so there's nothing | |
42 to start or stop. | |
43 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
44 |
0 | 45 TODO |
46 ==== | |
47 | |
48 | |
49 AUTHORS | |
50 ======= | |
51 Erik Mackdanz <erikmack@gmail.com> | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
52 |