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

私はIntel Edisonに取り組んでいます。

4

1 に答える 1

0

次のリンクによると、リリースされたバージョンの libwebsockets を使用する必要があります。そうしないと、Mosquitto のコンパイルが失敗します。

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

于 2015-11-09T08:27:24.293 に答える