mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #3378
0014a7cc
README.md: Updated OpenBSD build instructions (ston1th)
This commit is contained in:
commit
a03d34f4e1
35
README.md
35
README.md
@ -373,7 +373,7 @@ To build: `env CC=egcc CXX=eg++ CPP=ecpp DEVELOPER_LOCAL_TOOLS=1 BOOST_ROOT=/pat
|
|||||||
|
|
||||||
#### OpenBSD >= 6.2
|
#### OpenBSD >= 6.2
|
||||||
|
|
||||||
You will need to add a few packages to your system. Choose version 4 for db. `pkg_add db cmake miniupnpc zeromq`.
|
You will need to add a few packages to your system. `pkg_add cmake miniupnpc zeromq libiconv`.
|
||||||
|
|
||||||
The doxygen and graphviz packages are optional and require the xbase set.
|
The doxygen and graphviz packages are optional and require the xbase set.
|
||||||
|
|
||||||
@ -396,16 +396,24 @@ ftp -o boost_1_64_0.tar.bz2 https://netcologne.dl.sourceforge.net/project/boost/
|
|||||||
echo "7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332 boost_1_64_0.tar.bz2" | sha256 -c
|
echo "7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332 boost_1_64_0.tar.bz2" | sha256 -c
|
||||||
tar xfj boost_1_64_0.tar.bz2
|
tar xfj boost_1_64_0.tar.bz2
|
||||||
|
|
||||||
# Fetch a boost patch, required for OpenBSD
|
# Fetch and apply boost patches, required for OpenBSD
|
||||||
ftp -o boost.patch https://raw.githubusercontent.com/openbsd/ports/bee9e6df517077a7269ff0dfd57995f5c6a10379/devel/boost/patches/patch-boost_test_impl_execution_monitor_ipp
|
ftp -o boost_test_impl_execution_monitor_ipp.patch https://raw.githubusercontent.com/openbsd/ports/bee9e6df517077a7269ff0dfd57995f5c6a10379/devel/boost/patches/patch-boost_test_impl_execution_monitor_ipp
|
||||||
|
ftp -o boost_config_platform_bsd_hpp.patch https://raw.githubusercontent.com/openbsd/ports/90658284fb786f5a60dd9d6e8d14500c167bdaa0/devel/boost/patches/patch-boost_config_platform_bsd_hpp
|
||||||
|
|
||||||
|
# MUST output: (SHA256) boost_config_platform_bsd_hpp.patch: OK
|
||||||
|
echo "1f5e59d1154f16ee1e0cc169395f30d5e7d22a5bd9f86358f738b0ccaea5e51d boost_config_platform_bsd_hpp.patch" | sha256 -c
|
||||||
|
# MUST output: (SHA256) boost_test_impl_execution_monitor_ipp.patch: OK
|
||||||
|
echo "30cec182a1437d40c3e0bd9a866ab5ddc1400a56185b7e671bb3782634ed0206 boost_test_impl_execution_monitor_ipp.patch" | sha256 -c
|
||||||
|
|
||||||
cd boost_1_64_0
|
cd boost_1_64_0
|
||||||
patch -p0 < ../boost.patch
|
patch -p0 < ../boost_test_impl_execution_monitor_ipp.patch
|
||||||
|
patch -p0 < ../boost_config_platform_bsd_hpp.patch
|
||||||
|
|
||||||
# Start building boost
|
# Start building boost
|
||||||
echo 'using clang : : c++ : <cxxflags>"-fvisibility=hidden -fPIC" <linkflags>"" <archiver>"ar" <striper>"strip" <ranlib>"ranlib" <rc>"" : ;' > user-config.jam
|
echo 'using clang : : c++ : <cxxflags>"-fvisibility=hidden -fPIC" <linkflags>"" <archiver>"ar" <striper>"strip" <ranlib>"ranlib" <rc>"" : ;' > user-config.jam
|
||||||
./bootstrap.sh --without-icu --with-libraries=chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization --with-toolset=clang
|
./bootstrap.sh --without-icu --with-libraries=chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization,locale --with-toolset=clang
|
||||||
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"
|
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" -sICONV_PATH=/usr/local
|
||||||
doas ./b2 -d0 runtime-link=shared threadapi=pthread threading=multi link=static variant=release --layout=tagged --build-type=complete --user-config=user-config.jam -sNO_BZIP2=1 --prefix=/usr/local install
|
doas ./b2 -d0 runtime-link=shared threadapi=pthread threading=multi link=static variant=release --layout=tagged --build-type=complete --user-config=user-config.jam -sNO_BZIP2=1 -sICONV_PATH=/usr/local --prefix=/usr/local install
|
||||||
```
|
```
|
||||||
|
|
||||||
Build cppzmq
|
Build cppzmq
|
||||||
@ -415,22 +423,19 @@ Build the cppzmq bindings.
|
|||||||
We assume you are compiling with a non-root user and you have `doas` enabled.
|
We assume you are compiling with a non-root user and you have `doas` enabled.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Create a library link so cmake is able to find it
|
|
||||||
doas ln -s /usr/local/lib/libzmq.so.4.1 /usr/local/lib/libzmq.so
|
|
||||||
|
|
||||||
# Create cppzmq building directory
|
# Create cppzmq building directory
|
||||||
mkdir ~/cppzmq
|
mkdir ~/cppzmq
|
||||||
cd ~/cppzmq
|
cd ~/cppzmq
|
||||||
|
|
||||||
# Fetch cppzmq source
|
# Fetch cppzmq source
|
||||||
ftp -o cppzmq-4.2.2.tar.gz https://github.com/zeromq/cppzmq/archive/v4.2.2.tar.gz
|
ftp -o cppzmq-4.2.3.tar.gz https://github.com/zeromq/cppzmq/archive/v4.2.3.tar.gz
|
||||||
|
|
||||||
# MUST output: (SHA256) cppzmq-4.2.2.tar.gz: OK
|
# MUST output: (SHA256) cppzmq-4.2.3.tar.gz: OK
|
||||||
echo "3ef50070ac5877c06c6bb25091028465020e181bbfd08f110294ed6bc419737d cppzmq-4.2.2.tar.gz" | sha256 -c
|
echo "3e6b57bf49115f4ae893b1ff7848ead7267013087dc7be1ab27636a97144d373 cppzmq-4.2.3.tar.gz" | sha256 -c
|
||||||
tar xfz cppzmq-4.2.2.tar.gz
|
tar xfz cppzmq-4.2.3.tar.gz
|
||||||
|
|
||||||
# Start building cppzmq
|
# Start building cppzmq
|
||||||
cd cppzmq-4.2.2
|
cd cppzmq-4.2.3
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
Loading…
Reference in New Issue
Block a user