Download

Plugin with dynamic library(.so) Qt Plugins

Hi, guys
I need to connect qt code to my unreal engine plugin
On windows I build my code as static lib and connected them thought *.Build.cs
also connected qt static libs for windows
and everything worked
That is my code(temp version)



bool IsLibrarySupported = false;
        string modulePath = Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name));
        string PlatformString;
        if ((target.Platform == UnrealTargetPlatform.Win64) || (target.Platform == UnrealTargetPlatform.Win32))
        {
            PlatformString = (target.Platform == UnrealTargetPlatform.Win64) ? "Win64" : "Win32";
        }
        else
        {
            PlatformString = "Android";
        }
        string LibrariesPath = Path.Combine(modulePath, "..", "..", "QtProject", "Lib", PlatformString);
        IsLibrarySupported = true;
        if ((target.Platform == UnrealTargetPlatform.Win64) || (target.Platform == UnrealTargetPlatform.Win32))
        {
            
           
            // Qt dependency libraries
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "Qt5Core.lib"));
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "Qt5Gui.lib"));
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "Qt5Widgets.lib"));

            // VaQuoleLib
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "QtLib.lib"));
        }
        else
        {
            Definitions.Add("WITH_Android=1");
            Console.WriteLine("HI GUYS"); 
            // Qt dependency libraries
            /*PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libQt5Core.so"));
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libQt5Gui.so"));
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libQt5Widgets.so"));*/

            // VaQuoleLib
            PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libQtLib.a"));
        }

        if (IsLibrarySupported)
        {
            PublicIncludePaths.Add(Path.Combine(modulePath, "..", "..", "QtProject" , "Include"));
        }


But now I need to compile it on android(android_armv7)
I have build my project as static lib(.a)
But the thing is that qt do not give static lib for android.
And app crash when I uncommencement *so libs include.
How to connect tham. I have found no documentation at all. How PublicAdditionalLibraries works?
and how to connect libs on ios?
Thanks for the answer