Skip to content

Build Asio (non-boost) On NetBSD

Asio Fossil Mirror From Github

Build Asio (non-boost) On NetBSD

1. Install Required tools/libs

$ su -
# pkgin install bmake boost-headers boost-libs autoconf automake

2. Create xjail filesystem (Suggest)

$ su -
# mkdir /xjail

3. Clone asio code

$ git clone --depth=1 https://github.com/chriskohlhoff/asio asio
$ cd asio

4. Build asio c++ network library

$ ./autogen.sh
$ ./configure --prefix=/xjail/local --with-boost=/usr/pkg/include --enable-boost-coroutine
$ bmake LDFLAGS="${LDFLAGS} -L/usr/pkg/lib"
$ su -
# bmake install
  • asio has been installed to /xjail/local/include now. Asio is header-only library.
  • Q: Why not use pkgsrc or pkgin/pkg_add asio?
    A: It lacks some critical features.

 

 

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options

Submitted comments will be subject to moderation before being displayed.