0

我已经根据README中的说明成功构建了 libwebsockets 。当我尝试在启用 websockets 的 情况下构建 mosquitto 1.4.2(基于此处找到的说明)时,出现以下错误。

/usr/lib/gcc/i586-poky-linux/4.8.2/../../../../i586-poky-linux/bin/ld: cannot find -lwebsockets
collect2: error: ld returned 1 exit status

有问题的行是BROKER_LIBS:=$(BROKER_LIBS) -lwebsockets,在config.mk。我已经尝试了以下两种方法,并为其提供了.so文件的完整路径:

BROKER_LIBS:=$(BROKER_LIBS) -l~/libwebsockets/build/lib/libwebsockets.so
BROKER_LIBS:=$(BROKER_LIBS) -l/home/root/libwebsockets/build/lib/libwebsockets.so

我正在研究英特尔爱迪生。

4

1 回答 1

0

根据以下链接,您必须使用已发布的 libwebsockets 版本。否则 Mosquitto 编译会失败。

http://mosquitto.org/2015/05/mosquitto-and-current-unreleased-libwebsockets-branch/

于 2015-11-09T08:27:24.293 回答