1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.55k stars 784 forks source link

Cannot compile OpenMQTTGateway 0.8 #307

Closed arnold-maderthaner closed 5 years ago

arnold-maderthaner commented 5 years ago

I tried to follow the wiki entry but I got stuck with the following:

Invalid library found in /Users/arnoldmaderthaner/Documents/Sketchbooks/hardware/espressif/arduino-esp32/libraries/AzureIoT: /Users/arnoldmaderthaner/Documents/Sketchbooks/hardware/espressif/arduino-esp32/libraries/AzureIoT

OpenMQTTGateway:60:26: error: PubSubClient.h: No such file or directory compilation terminated. exit status 1 PubSubClient.h: No such file or directory

how can I fix that ?

Thanks !

1technophile commented 5 years ago

Hello,

You should have missing libraries, did you copied: OpenMQTTGateway/lib to "sketchbook folder"/libraries ?

arnie580 commented 5 years ago

Hi, I am having a similar issue, I think to be honest I've just put the files in the wrong place but can't work out the right place!

I've copied the contents from OpenMQTTGateway/lib to C:\Users\arnie\Documents\Arduino\libraries\OpenMQTTGateway\lib

but this doesn't seem to be working. Using ESP32. Up to this point everything has gone as expected.

arnie580 commented 5 years ago

Think I've worked this out, the contents of OpenMQTTGateway/lib needs to be copied to the libraries folder rather than the actual full folder structures?

1technophile commented 5 years ago

yes, copy the content of OpenMQTTGateway/lib to C:\Users\arnie\Documents\Arduino\libraries

1technophile commented 5 years ago

I close this issue, if you canno't succeed in your compilation don't hesitate to go to the forum

keteflips commented 5 years ago

Just copy PubSubClient.h from:

.../libraries/pubsubclient/src//home/keteflips/sketchbook/libraries/pubsubclient/src/PubSubClient.h

to

.../libraries/pubsubclient/src//home/keteflips/sketchbook/libraries/pubsubclient/PubSubClient.h