-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[package] paho-mqtt-cpp/1.1: build fails with error "Could NOT find PahoMqttC (missing: PAHO_MQTT_C_LIBRARIES)" #3760
Comments
I am having the same issue when compiling on armv8 Conan Profile: [settings] I am able to work around the issue by doing the following: run the following command
In my conanfile.txt I need to specify a specific version of the recipe
It now compiles. Something has changed in the latest recipe that breaks the build. |
I am working on a pull request for this issue. It appears that the recipe for paho-mqtt-c/1.3.5 was changed to generated eclipse-paho-mqtt-c instead of PahoMqttC and the cmake files was being incorrectly generated for paho-mqtt-cpp/1.1. |
Hi guys, any idea when I could start using this version please? paho-mqtt-cpp/1.2.0 I still get: |
Similar problem here: |
Package and Environment Details (include every applicable attribute)
Conan profile
Investigation
Step 1. Check helper cmake file
Link:
https://github.com/eclipse/paho.mqtt.cpp, branch: v1.1
In file cmake/FindPahoMqttC.cmake:
Step 2. Check paho-mqtt-c build
In ~/.conan/data/paho-mqtt-c/.../package/.../lib:
libpaho-mqtt3as.a # Pay attention - no '-static' suffix
Step 3. Check out the latest changes
Commit:
a79d9f7
Step 4. Compare CMake files for paho-mqtt-c v1.3.1/v1.3.5
v1.3.1
https://github.com/eclipse/paho.mqtt.c/blob/d34c51214f4172f2e12bb17532c9f44f72a57dd4/src/CMakeLists.txt#L164
v1.3.5
https://github.com/eclipse/paho.mqtt.c/blob/153dfd3a4a1d510697c5d55e169fa158db16e04a/src/CMakeLists.txt#L244
CMakeLists.txt (v1.3.5) contains the following instructions:
So, paho-mqtt-cpp v1.1 search for the paho-mqtt-c library which name contains '-static' suffix, but the new version of paho-mqtt-c (v1.3.5) doesn't append that suffix.
Quick fix (for lib clients)
# In ~/.conan/data/paho-mqtt-c/.../package/.../lib cp libpaho-mqtt3as.a libpaho-mqtt3as-static.a
Run Conan again.
Steps to reproduce (Include if Applicable)
Just launch Conan install from CMake:
The text was updated successfully, but these errors were encountered: