eclipse-paho / paho.mqtt.cpp

Other
1.03k stars 438 forks source link

paho.mqtt.cpp looks for PahoMqttC, but the package named - eclipse-paho-mqtt-c. #459

Closed shabelson closed 11 months ago

shabelson commented 11 months ago

Hi All I am trying to build the repo. but keeps getting - package not found - error. checking the src/CMakeLists - it searches for PahoMqttC BUT The paho.Mqtt.C lib in the submodule is named eclipse-paho-mqtt-c and targets names are different.

What am I missing?

fpagliughi commented 11 months ago

Yes the CMake build for this C++ library was created before the Paho C project switched to CMake. So we have our own CMake find for the C lib in cmake/FindPahoMqttC.cmake, in which we used the target PahoMqttC.

This should still work, but it needs to be fixed at some point to simplify the build and avoid the confusion. There's already a ticket for that: https://github.com/eclipse/paho.mqtt.cpp/issues/416

I should also note that I'm currently actively working on a release and pushing things up to master a lot quicker than normal. So the repo may be a little unstable for the next few weeks, and that may contribute to some broken builds.

fpagliughi commented 11 months ago

Closing this. Track through #416