[Solved] load DLLs in Plugins
I'm developing a plugin based on a project I already have. I'm trying to import it as a ThirdParty library. I've successfully created the plugin, imported the library and linked .lib and .dll, created an ActorComponent that uses the library.
Now the problem: the project I have is composed by 2 DLLs. But at runtime the Editor is able to load the module but just one of the DLLs (always the same). I tried to move the missing DLL in the Editor directory as well (where UE4Editor.exe is) but nothing. The project compiles, the game starts, but it crashes as I try to access to the library. The whole system worked in previous versions of my library.
I tried to load these libraries into another C++ project (a normal VS application) and it works, so I guess that the libraries are good.
Is there a way to understand why ue4 is not able to load that dll?
A plugin contains an ActorComponent that uses a library. The Build.cs for the plugin is
The plugin (PhaserPlugin) depends on PhaserLibrary (added in the PublicDependencyModuleNames). It uses my system, Phaser that depends on Boost and a parser I wrote for Emma XML. The related Build.cs is:
Of course, all the paths have been checked
I was missing other libraries, but the system didn't say nothing.
answered May 08 '17 at 03:11 PM
Dario Di Mauro
Follow this question
Once you sign in you will be able to subscribe for any updates here