cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
343 stars 77 forks source link

Support compiling on FreeBSD #137

Closed fsmv closed 2 years ago

fsmv commented 2 years ago

This compiled for me on FreeBSD 13.1. I ran:

qmake-qt5
gmake

The options are very similar to Linux, just needed to change the endian.h path to the other option.

cculianu commented 2 years ago

Oh wow! Great work! I don't have a freebsd install handy to try it out but I take your word for it. At any rate it can do no harm since all changes are self-contained in the freebsd {} sections so worst case it can do no harm.

Merged!

fsmv commented 2 years ago

Thanks! I've been running it on my FreeBSD server for a while now so it works great.

Actually I just tested again and we could also add QMAKE_CXXFLAGS += -std=c++1z if you'd like to make it more strict. I'm not sure why I thought it broke the build before (maybe I forgot to run make clean) but it works for me now, and it works without it too.

fsmv commented 2 years ago

Oh and the FreeBSD packages are:

sudo pkg install llvm qt5-core qt5-network qt5-qmake libzmq4 rocksdb

cculianu commented 2 years ago

Thanks! I've been running it on my FreeBSD server for a while now so it works great.

Actually I just tested again and we could also add QMAKE_CXXFLAGS += -std=c++1z if you'd like to make it more strict. I'm not sure why I thought it broke the build before (maybe I forgot to run make clean) but it works for me now, and it works without it too.

Ok.. done!

Oh and the FreeBSD packages are:

sudo pkg install llvm qt5-core qt5-network qt5-qmake libzmq4 rocksdb

Hmm.. where could we indicate this? Would you want to compose a doc/freebsd-howto-build.md or somesuch? Or add a section to the Readme for this?