-
Notifications
You must be signed in to change notification settings - Fork 440
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
Confusion with oudated installation instructions - can't find paho-mqtt3a #504
Comments
Sorry for the confusion, but... did you actually try the instructions? They do work.
Similarly,
Try the current recommended way of building both the libraries together. This builds the Paho C library from a Git submodule in the C++ workspace:
Yeah, this has been evolving quickly with the last few releases. It would probably be better if I just show the new, recommended way to build the library, and move the detailed instructions to another "for more information" document. |
Hi, sorry about the confusion regarding tags. I thought checkout worked exclusively for branches. My bad. However, I tried doing it exactly as described in the README, and I get the same error. Is this issue related to this PR? eclipse-paho/paho.mqtt.c#1495 |
I managed to get things working with the following steps:
|
I've been working in the v1.4.x branch this week, and haven't seen this problem, which is odd since you seem to be working in Linux. (Windows always causes headaches). I'm going to keep this open until I can get to the bottom of the problem. But I suspect that I may have kept the develop branch of the C lib checked when I was testing the v1.4.1 release the other day. I've been writing the new v1.5 against the develop branch and may not have reverted it back when I went to v1.4. But I'll verify that and fix it as needed. |
Still haven't been able to reproduce this. I mostly have variations of fairly recent Linux Mint and Ubuntu on my dev machines. What platform are you using? Your tools & libs are a little old (~5yrs) but well within the known versions that work. |
I'm on Ubuntu 18.04 |
Ubuntu 18.04 should work fine. I don't have a version of it on a current development machine, but 20.04 and 22.04 are similar with some slightly newer tools... though that really shouldn't matter. To test, I've been trying a fresh download, build, and install in the Note that I didn't want to pollute my dev machine with an installed system copy of the libs in
|
I also compiled it in Ubuntu 18.04 and had the same problem, The following is the log output
|
I found the problem, in cmake 3.13,a new feature was added: |
I am not expecting a fix just for me, but as it turns out I'm cross compiling with a rather outdated SDK that only has cmake 3.12.2, so I appear to be experiencing this same issue. I coincidentally stumbled onto this today, but for some reason I was able to build this 2 months ago (or thereabouts). EDIT: I was able to work around my particular issue by installing the C library manually to my SDK sysroot, and then specifying that path when configuring the CPP library (-DCMAKE_MODULE_PATH=/path/to/SDK/sysroot/usr/lib). Anyway, I appreciate the effort on the project! |
I suppose something was added to the v1.4.x line in the last few months that broke the build for CMake versions < 3.13? I'll have a look and see if I can figure out a work-around without reintroducing the problem that I was attempting to fix. I'd like to keep the v1.4.x releases working with older build tools for people who can't (or don't want to) upgrade their toools. The next version, v1.5, is going to jump to some newer tools. It will require a C++17 compiler and a version of CMake that supports C++17. I thought that was v3.12, so either way, I need the workaround, unless I just say v1.5 needs CMake v3.13. |
BTW, I did confirm the problem with CMake v3.12. I built v3.12 and installed it on one of my dev machines (Mint 20/Ubuntu 20.04).
Then I used that version to configure the build:
So I'll see what I can do to fix it. |
Also... earlier versions of this library (< v1.1 c2019) had instructions for upgrading cmake, for back when Ubuntu 14 & 16 were still shipping with CMake v2.x. Basically, it said to rename the installed, old executable with the specific version number, like Nowadays I would think to install multiple, specific, versions to That might help if anyone want to try an upgrade. If things don't work as hoped, you can always go back the original installed version. |
Installing Paho C
The shell script and README instructions both say to checkout v1.3.13 from the C library. This branch does not exist.
Installing Paho C++
The README (in 2 places) says to checkout v1.4.0. This branch also does not exist, but I can reasonably assume in this case to use v1.4.x.
Further Confusion
These two README sections are almost identical. I think they could probably be merged into one.
Attempting to Install
When I follow the installation instructions (with branch v1.4.x) I get this output:
It looks like something is going wrong with paho-mqtt3a. I'm not sure what I'm doing wrong. Any help is appreciated. Thanks.
The text was updated successfully, but these errors were encountered: