[Libwebsockets] Problem with running the mqtt minimal example

Fabien Piriou fabien at piriou.biz
Thu Nov 26 18:56:27 CET 2020

Hi all,

I have some problems with building the minimal-mqtt-example (last github 
version) on ubuntu 20.04

Running "cmake ." gives :

-- Performing Test HAS_LWS_ROLE_MQTT
-- Performing Test HAS_LWS_ROLE_MQTT - Failed
CMake Error at 
/usr/local/lib/cmake/libwebsockets/LwsCheckRequirements.cmake:50 (message):
   This project requires lws must have been configured with LWS_ROLE_MQTT
Call Stack (most recent call first):
   CMakeLists.txt:12 (require_lws_config)

I tried to modify the conf lines in lws_config.h, but the rebuild fails 

Can you help ?

Many thanks,


More information about the Libwebsockets mailing list