From c965bf4a7c105e385a940eb38c07dc5b052287d0 Mon Sep 17 00:00:00 2001 From: me0wmix Date: Thu, 21 Jan 2016 11:34:02 -0700 Subject: [PATCH] Added/corrected OpenBSD build instructions. --- CMakeLists.txt | 3 +-- README.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ccc7197..809ab35ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,8 +139,7 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "DragonFly.*|FreeBSD") set(FREEBSD TRUE) endif() -# Check if we're on OpenBSD. Compile with gcc 4.9 from packages. -# Use "env CC=egcc CXX=eg++ CPP=ecpp make release-static-64" or similar. +# Check if we're on OpenBSD. See the README.md for build instructions. if(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*") set(OPENBSD TRUE) endif() diff --git a/README.md b/README.md index ecd57e596..b1eceb390 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,16 @@ The project can be built from scratch by following instructions for Unix and Lin We expect to add Monero into the ports tree in the near future, which will aid in managing installations using ports or packages. +### On OpenBSD: + +This has been tested on OpenBSD 5.8. + +You will need to add a few packages to your system. "pkg_add db cmake gcc gcc-libs miniupnpc gtest doxygen graphviz". + +The Boost package has a bug that will prevent librpc.a from building correctly. In order to fix this, you will have to Build boost yourself from scratch. Follow the directions here (under "Building Boost"): https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md You will have to add the serialize, datetime, and regex modules when building as they are needed by Monero. + +To build: "env CC=egcc CXX=eg++ CPP=ecpp DEVELOPER_LOCAL_TOOLS=1 BOOST_ROOT=/path/to/the/boost/you/built make" (You may optionally build it statically by using the correct target.) + ## Building Documentation Monero developer documentation uses Doxygen, and is currently a work-in-progress.