Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] How to build Eclipse Paho MQTT project in C


I tried to include the Paho Embedded C library you recommended.

But it is the same problem, I can't build the project (see attached picture).

I copied the files from MQTTPacket/src into my workspace as well as the test.c

The error message is that the compiler can't find the file "sys/socket.h"

How can I deal with that? Using external libraries is a new area for me. I've never done this before.

Should I try to search for the file "sys/socket.h" in google and then try to copie the file into my workspace?

I know, it it weird that I copied the files just in the "Source" folder of my project. But When I copied it into "lib", the compiler could not even find files from the lib folder...It is frustrating...

I hope anyone can share his experiences with me.

Best regards


Von: paho-dev-bounces@xxxxxxxxxxx <paho-dev-bounces@xxxxxxxxxxx> im Auftrag von Neufeld, Vladislav <v.neufeld@xxxxxxxxxxx>
Gesendet: Mittwoch, 3. Juni 2020 19:55:37
An: paho-dev@xxxxxxxxxxx
Betreff: Re: [paho-dev] How to build Eclipse Paho MQTT project in C


oh I see, this library is just for devices who are working with an OS. I will try the embeeded version of the paho library. Thank you!

I'm just wondering because I thought MQTT was designed for ressource limited devices... thus, I thought, every library would work with an microcontroller

Yes, I read that it is also possible to run MQTT with the lwIP and RTOS. MQTT is included in the lwIP library.

But It seems more complex as a beginner to work with an RTOS, thus I wanted to try a library which works without RTOS.

Do you know what the benefits of implementing MQTT together with an RTOS rather than using a "normal" library like paho are?


Von: paho-dev-bounces@xxxxxxxxxxx <paho-dev-bounces@xxxxxxxxxxx> im Auftrag von Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
Gesendet: Mittwoch, 3. Juni 2020 19:28:58
An: paho-dev@xxxxxxxxxxx
Betreff: Re: [paho-dev] How to build Eclipse Paho MQTT project in C


if you're not running Linux (or Windows or MacOS), that library is probably not going to work for you.   You will need something more skinny like:   If you are running Linux, then the easiest way to build will be to clone with git, then use the supplied Makefile or use CMake.

If you're running FreeRTOS, I think that these days it comes with an MQTT client?


On 03/06/2020 16:23, Neufeld, Vladislav wrote:

Dear Ladies and Gents,

I'm working with the FT900 Microcontroller and I would like to import the MQTT Paho library into eclipse in order to let the microcontroller communicate via MQTT.

Here is the link where you can find the library:

I tried to create a new project and copy the "src" file into "lib" of the new project. Then I took one of the example applications into the "Sources" folder in eclipse but I could not build them.

Then I tried to download the C client for windows from this link:

Attached there is a picture of the folder. I tried to copy the files into a new ecplise project but again I could not build the example apllication.

Is it possible to use the Eclipse Paho MQTT library with the FT900 microcontroller?

Could you please help me how to import the library properly?

Best regards


paho-dev mailing list
To unsubscribe from this list, visit

Back to the top