BPQ Home   BPQ32 Home

Building LinBPQ from source.

I provide binaries for Linux on 32 and 64 bit ARM and Intel x86 processors but if you want to run on other Unix like operating systems you can build it from source. You will need to install some dependencies and download the source. The instructions below are for a Debian like system using apt as its package manager - you may need to alter the command for other systems.

To download dependencies run:

sudo apt install build-essential git libminiupnpc-dev libconfig-dev libpcap-dev zlib1g-dev  libcap2-bin libjansson-dev libpaho-mqtt-dev

Some distributions may not include libpaho-mqtt-dev. This is used for the MQTT reporting interface. If you don't need that you can build without MQTT support. If you do you can build libpaho-mqtt-dev from source:

git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
cmake -Bbuild -H. -DPAHO_ENABLE_TESTING=OFF -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=OFF -DPAHO_HIGH_PERFORMANCE=ON -DCMAKE_INSTALL_PREFIX=../install
cd build
cmake --build . --target install

You need to copy libpaho-mqtt3a.a to your lib directory.
The commands below work on my ARM and Intel systems but you may need to change if your lib is in a different place.

sudo cp ./install/lib/libpaho-mqtt3a.a /usr/lib/arm-linux-gnueabihf 
or
sudo cp ./install/lib/libpaho-mqtt3a.a /usr/lib/i386-linux-gnu/

To download the LinBPQ source run:

git clone https://github.com/g8bpq/linbpq.git
cd linbpq

To build with MQTT support enter:

make

To build without MQTT support enter:

make nomqtt

This should create linbpq in the current directory.

John Wiseman G8BPQ
April 2025