-
Notifications
You must be signed in to change notification settings - Fork 445
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
Build with PAHO_WITH_MQTT_C is broken #469
Comments
I can reproduce this error.
But even with this error message, i can still compile the library by running |
Yes, apologies. I should have marked the |
Hello , the build error is persistent and the cmake cant be completed -ThinkPad-T16-Gen-1:~/paho.mqtt.cpp$ cmake -Bbuild -H. -DPAHO_WITH_MQTT_C=ON -DPAHO_BUILD_STATIC=ON -DPAHO_BUILD_DOCUMENTATION=ON -DPAHO_BUILD_SAMPLES=ON
does not contain a CMakeLists.txt file. CMake Error at CMakeLists.txt:64 (add_library): CMake Error at CMakeLists.txt:66 (add_library): -- Configuring incomplete, errors occurred! |
I was waiting for an update to the Paho C library to get the build issues cleaned up, but there hasn't been a release there in a while, so I reworked the build to just work with the existing C v3.1.13. I think this should all be fixed in master now, though I still need to test on Windows and MacOS. Let me know if you still see a problem. |
I believe (hope) this is fixed. If not, please re-open. |
git clone --recurse-submodules https://github.com/eclipse/paho.mqtt.cpp.git cd paho.mqtt.cpp/ cmake -Bbuild -H. -DPAHO_WITH_MQTT_C=ON -DPAHO_BUILD_STATIC=ON -DPAHO_BUILD_DOCUMENTATION=OFF -DPAHO_BUILD_SAMPLES=OFF
yields:
Which is definitely a bug in CmakeLists since that line should look like this:
But even after fixing the line, the build still fails with:
The text was updated successfully, but these errors were encountered: