gpt4 book ai didi

makefile - 尝试编译 paho mqtt cpp 示例时找不到 -lpaho-mqttpp3

转载 作者:行者123 更新时间:2023-12-04 19:44:13 24 4
gpt4 key购买 nike

根据标题,我在运行位于
org.ecliplse.paho.mqtt.cpp/src/samples

我了解 C++ 库需要正确安装 C 库。为此,我遵循了文档
在/usr/local/lib 我可以找到

libpaho-mqtt3a.so
libpaho-mqtt3a.so.1
libpaho-mqtt3a.so.1.0
libpaho-mqtt3as.so
libpaho-mqtt3as.so.1
libpaho-mqtt3as.so.1.0
libpaho-mqtt3c.so
libpaho-mqtt3c.so.1
libpaho-mqtt3c.so.1.0
libpaho-mqtt3cs.so
libpaho-mqtt3cs.so.1
libpaho-mqtt3cs.so.1.0

我在安装 C 库时遗漏了什么吗? lpaho-mqttpp3应该在那个阶段生产吗?

请帮忙

最佳答案

Google Groups 收到此答复

Yes, apologies, we're currently working on the build system for the C++ library. All the libraries that you see in the /usr/local/lib are the Paho C libraries. The C++ library produces a single library, libpaho-mqttpp, when you build from the top-level cpp workspace. That's the file that is missing.

The GitHub 'develop' branch is in flux at the moment, as we proceed to a 1.0 release of the C++ library, but has a number of updates that might be helpful, particularly a "make install" build target. To get this, clone the latest GitHub repo and then checkout the 'develop' branch:


$ git clone https://github.com/eclipse/paho.mqtt.cpp.git
$ cd paho.mqtt.cpp
$ git checkout develop

$ make
$ sudo make install
$ make samples

That get you going for now. Look for a stable 'master' in a few weeks time.

Frank Pagliughi

关于makefile - 尝试编译 paho mqtt cpp 示例时找不到 -lpaho-mqttpp3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39150826/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com