-
When I try to build the library on Windows with the options ASYNC_MQTT_BUILD_EXAMPLES and ASYNC_MQTT_USE_TLS it fails with many errors. I load the library in vscode and build with CMake selecting VS2022 amd64 as kit. Is building possible in Windows? Then I tried to build on Linux. With the same options, building does start but needs a lot of memory. Building fails after a long time (10 minutes?) due to a memory shortage. Just before quitting, it's using all 14 GB (6 GB RAM and 8 GB swap). Is this normal behaviour? I use cmake and gcc 12 in Linux. Please let me know if more information is needed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
For msvc, I guess that you need to find OpenSSL using cmake. Linux case, for example compiling
You can check memory consumption like this. In example, there are two subdirectories.
They are examples for https://redboltz.github.io/async_mqtt/doc/latest/separate.html It requires a log of memories. If you don't need this mode, you can just skip it. |
Beta Was this translation helpful? Give feedback.
For msvc, I guess that you need to find OpenSSL using cmake.
https://cmake.org/cmake/help/v3.25/module/FindOpenSSL.html
Linux case, for example compiling
cl_cpp17_mqtt_pub
, memory consumption is about 1.2GB.