Linux compiling:
- Install compiling tools.
- Download db-4.8.30.NC. Extract. Compile it.
Short example ("/home/veter" is my homedir):
$ cd db-4.8.30.NC/build_unix
$ ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/veter/dbbin/
$ make
$ make install
- Install additional tools:
$ sudo apt-get install libboost-all-dev
$ sudo apt-get install libgmp-dev
$ sudo apt-get install libczmq-dev
- Compile DTC:
$ ./autogen.sh
$ ./configure --with-gui=yes LDFLAGS="-L/home/veter/dbbin/lib/" CXXFLAGS="-O3 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wno-unused-parameter -Wno-strict-aliasing" CFLAGS="-O3" CPPFLAGS="-fPIC -I/home/veter/dbbin/include/" LIBS="-lgmp -lboost_timer -levent_pthreads -lzmq -lczmq -lprotobuf"
$ make
In case protobuf version error you need to regenerate protocol.pb.h and protocol.pb.cpp files from protocol.proto.
$ cd ./src/madpool
$ protoc --cpp_out=. protocol.proto
$ mv ./protocol.pb.cc ./protocol.pb.cpp
$ cd ../..
I successful compile for Ubuntu using this instruction
