From e0c4d40899f5fdfe3f409ee29477dbe2cb6a17bb Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 24 Feb 2016 23:55:00 -0500 Subject: [PATCH] doc: add install notes --- .gitignore | 2 ++ INSTALL.md | 29 +++++++++++++++++++++++++++++ Makefile | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 INSTALL.md diff --git a/.gitignore b/.gitignore index e518d9a33..7cb75098f 100644 --- a/.gitignore +++ b/.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 diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 000000000..66df76311 --- /dev/null +++ b/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 +``` diff --git a/Makefile b/Makefile index 1ca4f1c69..e43dd558f 100644 --- a/Makefile +++ b/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