Giter Club home page Giter Club logo

Comments (4)

shadowmint avatar shadowmint commented on June 26, 2024

Sorry, I'm not sure what you mean.

There's no significant difference between linking to a windows static .lib and a mac/linux static .a file; you just need to pass in a reference to the object, as per:

https://github.com/shadowmint/ue4-static-plugin/blob/master/Source/TestPlugin/TestPlugin.Build.cs#L114

What header files are you looking for?

If you need to refer to an external set of headers, you use:

https://github.com/shadowmint/ue4-static-plugin/blob/master/Source/TestPlugin/TestPlugin.Build.cs#L80

Broadly speaking, LoadLibrary does all the things you need to link to an external static library, regardless of it's source.

If you have external (eg. win api) dependencies, you'll have to link to them dynamically, by calling PublicAdditionalLibraries on each dependency manually; there's no real shortcut for this if you're linking static code.

...so, can you clarify exactly what your question is?

from ue4-static-plugin.

GuilhermeStrice avatar GuilhermeStrice commented on June 26, 2024

I am trying to link the SFML network module and its depedent on 2 windows static libraries (ws2_32.lib and winmm.lib)

from ue4-static-plugin.

GuilhermeStrice avatar GuilhermeStrice commented on June 26, 2024

And im getting errors

this is my code

if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\SFML-2.3.2\lib\sfml-system-s.lib");
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\SFML-2.3.2\lib\sfml-network-s.lib");
PublicAdditionalLibraries.Add(@"D:\RenegadeLine\netLink-master\build\out\Release\netLink.lib");

        PublicIncludePaths.Add(@"D:\RenegadeLine\netLink-master\include");
        PublicIncludePaths.Add(@"D:\RenegadeLine\SFML-2.3.2\include");

        Definitions.Add("WITH_SFML_BINDING=1");
        Definitions.Add("WITH_NETLINK_BINDING=1");
    }

These are the errors
http://prntscr.com/9wcoim

from ue4-static-plugin.

whatisgravity avatar whatisgravity commented on June 26, 2024

I think ideally you want to provide the source code to the libs rather than provide the compiled libs. The example is providing source code to the libs they are using and then compiling them during build time if I understand correctly.

Edit: I think I'm wrong. Sorry about that.

from ue4-static-plugin.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.