Added/corrected OpenBSD build instructions.

This commit is contained in:
me0wmix 2016-01-21 11:34:02 -07:00
parent 28f95eb001
commit c965bf4a7c
2 changed files with 11 additions and 2 deletions

View file

@ -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()

View file

@ -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.