Building Sai on BSDsThis is what I found as an experieced linux user when setting
up lws + sai on NetBSD for arch64 Big Endian ( https://mail-index.netbsd.org/port-arm/2020/12/03/msg007117.html PackagingNetBSD has a system 'pkgsrc' that is equivlent to package source
and binary builds. Normally, you can install binary packages from
a central repository for your arch, as you would expect. This
looks like https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/ But arch64BE is too new to have the package repo populated yet... the base install comes with basic build tools like cvs, gcc and make, everything else has to be built from the source package, which is a day of build time on an RPi3. However it's doable and there and enough pieces there. Pkgsrc is not a simple build wrapper, it understands recursive package deps and can sub-build those automatically. So building large projects is not a matter of having to chase everything down and build by hand, it knows how to do it for you for toplevel projects with many deps. Bootstrapping pkgsrc1) Prepare pkgsrcAs root, follow the advice here for quickstart/bootstrap 2) Build pkgsrc packges from sourceThen, where x/y is the package category and name for these packages The base install has a very simplified vi, you may also want
to build 3) symlink to executablesSome packages are referred to by well-known paths
like 4) Set up CA bundle abd openssl cnfThe base OS doesn't have a trusted C bundle for openssl, additionlly install the rootcert bundle: The openssl it comes with expects a config file in order to
create certs, as needed by lws configuration. Create
After that there are enough pieces to fetch from git and build lws and sai-builder as you would expect. 5) Build lws + sailws requires the additional cmake flag There is no sudo, I dealt with make install by having a root and user console session open in parallel on the same build dir. 6) Set up initCopy Edit |