Building on OSX - isghe/raiblocks GitHub Wiki
Required source
- Boost 1.59 extracted to [boost.src]
- Googletest 1.7 extracted to [gtest.src]
- cryptopp extracted to [cryptopp.src]
- cpp-netlib extracted to [cppnetlib.src]
- RaiBlocks source in [rai.src]
- Libressl source in to [libressl.src]
- nghttp2 source in to [nghttp2.src]
Build cmake
- Inside [cmake.build]
- Run "[cmake.src]/configure --prefix=[cmake]"
- Run "make"
- Run "make install"
Build Boost
- Inside [boost.src]
- Run "./bootstrap.sh
- Run "./b2 --prefix=[boost] --build-dir=[boost.build] link=static install"
Build Googletest
- Inside directory [gtest.build]
- Run "[gtest.src]/configure"
- Run "make"
Build cryptopp
- Inside directory [cryptopp.src]
- Run "make"
- Run "make install PREFIX=[cryptopp]"
Build Libressl
- Inside directory [libressl.src]
- Run "./autogen.sh"
- Inside directory [libressl.src]
- Run "cmake -G"Ninja" -DCMAKE_INSTALL_PREFIX=[libressl]
- Run "ninja install"
Build nghttp2
- Remove context::sslv3/sslv3_client/sslv3_server cases from boost/asio/ssl/impl/context.ipp
- Inside directory [nghttp2.src]
- autoreconf -i
- automake
- autoconf
- Inside directory [nghttp2.make]
- [nghttp2.src]/configure OPENSSL_LIBS="-L[libressl]/lib/ -lssl -ltls -lcrypto" OPENSSL_CFLAGS="-I[libressl]/include" LIBEVENT_OPENSSL_LIBS="-L[libressl]/lib/ -lssl -ltls -lcrypto -levent -levent_openssl" LIBEVENT_OPENSSL_CFLAGS="-I[libressl]/include" --enable-asio-lib --with-boost=[boost] --prefix=[nghttp2] --disable-app --disable-examples
- make install
Cppnetlib source only
- Set CPPNETLIB_INCLUDE_DIRS=[cppnetlib.src]
Building Qt
- In [qt.build] execute [qt.src]/configure -shared -opensource -nomake examples -nomake tests -confirm-license -prefix [qt]
- make
- make install
Build RaiBlocks
- Inside directory [rai.build]
- Run
../cmake-3.0.1/bin/cmake -G "Unix Makefiles" -D GTEST_INCLUDE_DIR:PATH=../gtest-1.7.0.src/include -D GTEST_LIBRARY:FILEPATH=/Users/colin/Desktop/gtest-1.7.0.build/lib/.libs/libgtest.a -D GTEST_MAIN_LIBRARY:FILEPATH=/Users/colin/Desktop/gtest-1.7.0.build/lib/.libs/libgtest_main.a -D CMAKE_MODULE_PATH:PATH=../rai.src -D cppnetlib_DIR:PATH=../cpp-netlib-0.11.0-final.src -D CRYPTOPP_ROOT_DIR:PATH=../cryptopp562 -D BOOST_ROOT=../boost_1_56 -D Qt5_DIR=../../Qt/5.3/clang_64/lib/cmake/Qt5 ../rai.src
Building a package