Build Paho MQTT-SN gateway in MSYS2

Viewed 23

I am facing what I think is a configuration issue. I would like to build Paho MQTTSN gateway in Msys2 to make it run on Windows. What I do is :

  • I clone the repository, and I put it in /c/msys64/home/ folder
  • I add /c/msys64/mingw64/bin to $PATH because cmake cannot locate gcc otherwise.
  • I run ./build.sh udp command. Here is the output :
$ ./build.sh udp
Start building MQTT-SN Gateway  udp
-- CMake version: 3.23.2
-- CMake system name: Windows
-- Timestamp is 2022-09-06T11:17:49Z
-- VERSION : 1.5.1
-- SENSORNET: udp
-- Definitions:
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/paho.mqtt-sn
make: *** No rule to make target 'MQTTSNPacket'.  Stop.
make: *** No rule to make target 'MQTT-SNGateway'.  Stop.
make: *** No rule to make target 'MQTT-SNLogmonitor'.  Stop.

I tried to play around with cmake -G. I tried "MSYS Makefiles", but didn't had any chances. I am still a bit confused with cmake, does someone have an idea? By the way, paho is building fine on Ubuntu. Thank you very much for your help

0 Answers
Related