-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreal Crashing when trying to run the MQTT plugin example on Mac OS #25
Comments
Hey @AmirJavedMyWhoosh, currently the native MQTT libraries that this plugin is using under the hood have some compatibility issues with newer macOS versions. |
I was having the same problem on Apple Silicon. Following @tustanivsky's thought, I updated the mosquitto library to the latest version (2.0.18). However, I got the same crash. I finally figured out what the problem is: Unreal (I use 4.27.2) is using the x86_64 library of mosquitto (through Rosetta), located in Plugins/MqttUtilities/Source/ThirdParty/Mac/mosquittopp/libraries/mosquittopp.dylib. When initialising (mosqpp::lib_init), the library tries to load the depending libraries, libssl and libcrypto, which fails, leading to the crash. It fails to load libssl and libcrypto, because only the ARM version of those libraries were installed on my system. These are my steps to fix it:
Note that it might not be necessary to update libmosquitto and just to install openssl (but then you need an older version of openssl, I think v1) - I didn't try that out. |
I am trying to run the MQTT example on the Mac os Ventura 13.0, with Unreal Engine v, 4.27.2.
The Editor is crashing as soon as I am clicking the connect button and there is an error with loading the library of mosqpp.
I have tried loading the library at runtime and compiling the source MQTT libraries but It didn't work, I am adding the screenshot of the function path where it's crashing.
Image link: https://user-images.githubusercontent.com/117156744/199192519-b51c360f-89ab-44d3-9096-41d9963ce43d.png
Crashing on: mosqpp::lib_init();
Also, let me know if there is any specific change that I need to do for this plugin to make it work with IOS and MAC.
The text was updated successfully, but these errors were encountered: