Linking new version of OpenSSL for packaged project
I have an external library that requires openssl version 1.1.0. I am adding the library to the Project.Build.cs along with openssl lib/dll files:
When I run the project in editor everything works fine, but when I try to package and run it I get some errors. While looking at log files I noticed that I am getting this error:
But I also spotted that UE is adding the link to the OpenSSL (older version) itself:
What is the correct way to link my third party library with the new version of OpenSLL in packaged mode? Note - I am not directly including openssl headers in unreal files.
Any help is greatly appreciated.
asked Dec 25 '17 at 03:10 AM in C++ Programming
To get external libraries compiled into UE4 you need to put them inside a third-party plugin. You can't just include them in your project. Good news is, once this is done you'll be able to plug it into anything -- and maybe make it available for others in a compact/clean way.
Bad news: the plugin system isn't well-documented. Good news: I have a plugin that contains the ZeroMQ library so it could be used as an example project. Actually, this is pretty cool because I put that up on Github and no one has ever used it!! :)
It's here: https://github.com/Jin-Vyral/ZMQUE
Let me know if you have any questions or problems. The main thing I had to do was convert the API calls because the ZMQ DLL and UE4 had different ideas about what "short" meant. Hopefully, you won't have that problem.
Follow this question
Once you sign in you will be able to subscribe for any updates here