sshoecraft / jbdtool

JBD BMS Linux utility
BSD 3-Clause "New" or "Revised" License
50 stars 10 forks source link

seeking for MQTT Client - compile failure #2

Closed VictorBucha closed 3 years ago

VictorBucha commented 3 years ago

Greetings,

Despite having mosquitto latest version on my RPi4, I can't compile:

gcc -MT main.o -MMD -MP -MF .deps/main.d -Wall -g -DDEBUG=1 -DMQTT -DBLUETOOTH -c -o main.o main.c In file included from main.c:31: mqtt.h:6:10: fatal error: MQTTClient.h: No such file or directory

include

      ^~~~~~~~~~~~~~

compilation terminated. make: *** [/home/pi/jbdtool/Makefile:82: main.o] Error 1

root@raspberrypi:/home/pi/jbdtool# apt install mosquitto Reading package lists... Done Building dependency tree Reading state information... Done mosquitto is already the newest version (1.5.7-1+deb10u1).

foxriver76 commented 3 years ago

I also had to install Paho MQTT additionally to just installing mosquitto - https://www.eclipse.org/paho/index.php?page=clients/c/index.php

sshoecraft commented 3 years ago

thank you for that reminder ... I changed the README to state it requires the paho.mqtt.c library vs mosquitto.