x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to include library in engine source?

Hi, I want to use the Magnification API from microsoft in engine source not project source so I need to include magnification.h but I think I also need the .lib and .dll files. I added Magnification folder in Source/ThirdParty and I added Magnification.build.cs with the following code

 using UnrealBuildTool;
 
 public class Magnification : ModuleRules
 {
     public Magnification(ReadOnlyTargetRules Target) : base(Target)
 
     {
         Type = ModuleType.External;
 
         string MagnificationPath = Target.UEThirdPartySourceDirectory + "Magnification/Magnification";
 
         string MagnificationIncludePath = MagnificationPath;
         PublicSystemIncludePaths.Add(MagnificationIncludePath + "Win64"); // PublicSystemIncludePaths is for "stable" headers that don't change
 
         string MagnificationLibPath = MagnificationPath;
         if (Target.Platform == UnrealTargetPlatform.Win64)
         {
             MagnificationLibPath += "Win64";
             PublicLibraryPaths.Add(MagnificationLibPath);
 
             PublicAdditionalLibraries.Add("magnification.lib");
 
             PublicDelayLoadDLLs.Add("Magnification.dll");
         }
         else if (Target.Platform == UnrealTargetPlatform.Win32)
         {
             MagnificationLibPath += "Win64";
             PublicLibraryPaths.Add(MagnificationLibPath);
 
             PublicAdditionalLibraries.Add("magnification.lib");
 
             PublicDelayLoadDLLs.Add("Magnification.dll");
         }
     }
 }`

The problem is that I get unresolved external symbol errors.

I have these files:
Engine\Source\ThirdParty\Magnification\Magnification.build.cs
Engine\Source\ThirdParty\Magnification\Magnification\Win64\magnification.h
Engine\Source\ThirdParty\Magnification\Magnification\Win64\Magnification.dll
Engine\Source\ThirdParty\Magnification\Magnification\Win64\magnification.lib

Thankyou.

Product Version: UE 4.20
Tags:
more ▼

asked Oct 29 '18 at 04:08 PM in C++ Programming

avatar image

BestWarrior
34 2 3 6

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question