0

I have successfully built libwebsockets based on instructions found in the README. When I try to build mosquitto 1.4.2 (based on instructions found here) with websockets enabled, I get the following error.

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

The problematic line is BROKER_LIBS:=$(BROKER_LIBS) -lwebsockets, in config.mk. I've tried both of the following, giving it the full path to the .so file:

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

I'm working on an Intel Edison.

Shay
  • 237
  • 1
  • 5
  • 12

1 Answers1

0

According to the following link you have to use a released version of libwebsockets. Otherwise the Mosquitto compiling would fail.

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

Dhanushka Dolapihilla
  • 1,115
  • 3
  • 17
  • 34