njh / k8055mqtt

Self contained MQTT client for controlling the the Velleman K8055 / VM110 Board
GNU General Public License v3.0
3 stars 3 forks source link

configure: error: Misssing mosquitto client library #6

Open bob-walpole opened 2 years ago

bob-walpole commented 2 years ago

Hi, The ./configure process currently fails on current version of Raspberry Pi

checking pkg-config is at least version 0.9.0... yes
checking for libusb-1.0 >= 1.0.8... yes
checking for mosquitto_lib_init in -lmosquitto... no
configure: error: Misssing mosquitto client library

$ sudo apt install mosquitto-clients
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mosquitto-clients is already the newest version (2.0.11-1).

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Any suggestions to fix this issue please ?????

njh commented 2 years ago

Hi,

I have not touched this project for quite a long time time. It might need updating to use newer Mosquitto library.

But to install the libmosquitto library and header files, to build k8055mqtt, you need to run:

apt install libmosquitto-dev

The mosquitto-clients package just contains the mosquitto_pub and mosquitto_sub command line tools.

nick.

bob-walpole commented 2 years ago

Thankyou Nick, that fixed the problem. Also note my Velleman card P8055-1 had a USB PID of 5503, the k8055.c file only looked for a PID of 5500, so it needed a change All working nicely now, Thanks, Bob