Browse Source

doc: add install notes

ppa-0.6.1
Braydon Fuller 9 years ago
parent
commit
e0c4d40899
  1. 2
      .gitignore
  2. 29
      INSTALL.md
  3. 2
      Makefile

2
.gitignore

@ -6,6 +6,8 @@
*.pb
TAGS
ccan/tools/configurator/configurator
ccan/ccan/cdump/tools/cdump-enumstr
libsecp256k1.a
libsecp256k1.la
gen_*
daemon/lightning-cli

29
INSTALL.md

@ -0,0 +1,29 @@
Build on Ubuntu 15.10
---------------------
Build protobuf-c dependency (>= 1.1.0):
```
sudo apt-get install libprotoc-dev
git clone https://github.com/protobuf-c/protobuf-c.git
cd protobuf-c
./autogen.sh
./configure
make
make install
cd ../
```
Clone lightning and initialize submodules:
```
git clone https://github.com/ElementsProject/lightning.git
cd lighting
git submodule init
git submodule update
```
Build lightning:
```
make
export LD_LIBRARY_PATH=/usr/local/lib
./daemon/lightningd
```

2
Makefile

@ -204,7 +204,7 @@ CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations
CDEBUGFLAGS := -g -fstack-protector
CFLAGS := $(CWARNFLAGS) $(CDEBUGFLAGS) -I $(CCANDIR) -I secp256k1/include/ -I . $(FEATURES)
LDLIBS := -lcrypto -lprotobuf-c
LDLIBS := -lcrypto -lprotobuf-c -lgmp
$(PROGRAMS): CFLAGS+=-I.
default: $(PROGRAMS) daemon-all

Loading…
Cancel
Save