How to include the new CryptoPP lib in 4.11?

DavidNSilva
Wed, 13 Apr 2016 12:12:53 +0000
Community & Industry Discussion

I am currently porting one of my projects to 4.11. I was already using a staticly linked cryptoPP library, but since it is now include in the engined I removed mine and tried to include the built-in.

On my Build.cs I added

    PublicDependencyModuleNames.AddRange(new string[] { "CryptoPP" });

          if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
          {
            AddThirdPartyPrivateStaticDependencies(Target,"CryptoPP");
         }

    PublicIncludePathModuleNames.Add("CryptoPP");

It seems to import it however when I try to include it on any .h file of mine like this

#include “CryptoPP/5.6.2/include/rsa.h”

I get a VS compiler errors:

cannot open source file “CryptoPP/5.6.2/include/rsa.h” (…)

(#include “rsa.h” results in the same error)

What am I doing wrong? Thanks.

8 posts - 1 participant