build gyp. build info in readme.
This commit is contained in:
parent
af3351a631
commit
97475b9847
44
README.md
44
README.md
@ -1,6 +1,48 @@
|
|||||||
# bitcoind.js
|
# bitcoind.js
|
||||||
|
|
||||||
Bitcoind for node
|
Bitcoind as a node.js module.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
### bitcoind:
|
||||||
|
|
||||||
|
- NOTE (to self): Arch is using bitcoin-daemon 0.9.2.1, the latest boost headers
|
||||||
|
in Arch should be correct.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ cd ~/bitcoin
|
||||||
|
$ git clean -xdf
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
$ git checkout v0.9.2.1
|
||||||
|
OR:
|
||||||
|
$ git checkout v0.9.0
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
$ ./autogen.sh
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
$ ./configure --with-incompatible-bdb --prefix=/usr
|
||||||
|
OR:
|
||||||
|
$ ./configure --prefix=/usr
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
$ time make
|
||||||
|
```
|
||||||
|
|
||||||
|
### bitcoind.js:
|
||||||
|
|
||||||
|
- NOTE: This will eventually try to include our included version of boost.
|
||||||
|
- NOTE: Rename bitcoind to bitcoind.o to try to statically link it?
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ cd ~/work/node_modules/bitcoind.js
|
||||||
|
$ PYTHON=/usr/bin/python2.7 make gyp
|
||||||
|
```
|
||||||
|
|
||||||
## Contribution and License Agreement
|
## Contribution and License Agreement
|
||||||
|
|
||||||
|
|||||||
22
binding.gyp
22
binding.gyp
@ -22,27 +22,21 @@
|
|||||||
],
|
],
|
||||||
'libraries': [
|
'libraries': [
|
||||||
# bitcoind:
|
# bitcoind:
|
||||||
# arch is using bitcoin-daemon 0.9.2.1
|
|
||||||
# - should be the correct boost headers
|
|
||||||
# building:
|
|
||||||
# $ git clean -df
|
|
||||||
# $ git checkout v0.9.2.1
|
|
||||||
# $ ./autogen.sh
|
|
||||||
# $ ./configure --with-incompatible-bdb
|
|
||||||
# $ time make
|
|
||||||
# $ cd ~/work/node_modules/bitcoind.js
|
|
||||||
# $ PYTHON=/usr/bin/python2.7 make gyp
|
|
||||||
# ^ move this to readme
|
|
||||||
# NOTE: rename this to bitcoind.o so we can statically link to it
|
|
||||||
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind',
|
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind',
|
||||||
'-L/usr/bin/bitcoind',
|
'-L/usr/bin/bitcoind',
|
||||||
# '-L/usr/lib/bitcoind.o',
|
# NOTE: Rename this to bitcoind.o so we can statically link to it.
|
||||||
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind.o',
|
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind.o',
|
||||||
# statically link leveldb:
|
# '-L/usr/lib/bitcoind.o',
|
||||||
|
# statically link leveldb - shouldn't be necessary, but build fails without it:
|
||||||
'-L/home/user/bitcoin/src/leveldb/libleveldb.a',
|
'-L/home/user/bitcoin/src/leveldb/libleveldb.a',
|
||||||
|
# bdb - should already be done:
|
||||||
|
# '-L/usr/lib/libdb-5.3.so',
|
||||||
|
# '-L/usr/lib/libdb_cxx-5.3.so',
|
||||||
|
# with aur package, we can use: /usr/lib/libdb-4.8.so
|
||||||
# standard libs:
|
# standard libs:
|
||||||
'-L/usr/lib',
|
'-L/usr/lib',
|
||||||
'-L/usr/local/lib'
|
'-L/usr/local/lib'
|
||||||
|
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user