How To link library in Build.cs correctly?
I have an external C++ library that I bind to my UE project in my Build.cs file like so:
which works. However I have not been able to use a relative path here. I tried anything I could think of but I always get a "lib not found" error, the absolute path is the only thing that works for me.
How can I link relative? To what basedirectory do I have to construct the relative path?
asked Sep 18 '17 at 03:59 AM in C++ Programming
Hi Wallenstein isnt hard at all, I am using this: string ThirdParty = Path.GetFullPath(Path.Combine(ModuleDirectory, "../../ThirdParty/"));
the ModuleDirectory variable leads you to where is your .uplugin file, from there I have my libs, inside a folder called ThirdParty, and I am using System.IO in order to manage my strings, In addition you can print the string with Console.writeline() in c#
Follow this question
Once you sign in you will be able to subscribe for any updates here