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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why can i not Inclue a thirdparty?

When I try to add a folder in ThirdParty folder like this : alt text

alt text

alt text

alt text

--------------------------------------------MyTestThirdParty.build.cs-----------------------------------

 using UnrealBuildTool;  
 using System.IO;  
  
  public class MyTestThirdParty : ModuleRules
 
   {
 
         public MyTestThirdParty(TargetInfo Target)
 
         {
 
              //表示第三方库
 
             Type= ModuleType.External;
 
              //第三方库新模块根目录目录路径你可以通过其他方式来获取路径比如get { return Path.GetFullPath(Path.Combine(ModuleDirectory,"../../ThirdParty/"));}
 
             string MyPath= UEBuildConfiguration.UEThirdPartySourceDirectory +"MyTestThirdParty/";
 
             //包含的头文件路径,因为编译的库里面都是链接过的编译单元,可以认为编译单元是不包含头文件的,所以在之后的使用时还需要获取到头文件的声明信息
 
             PublicIncludePaths.Add(MyPath +"include/");
 
  
 
             if(Target.Platform== UnrealTargetPlatform.Win64)
 
             {
 
               //第三方静态库的路径
 
                PublicLibraryPaths.Add(MyPath+"lib/");
 
               //第三方静态库的名称
 
                PublicAdditionalLibraries.Add("libtest.lib");
 
         }
 
      }
 
 }


and When I create a project with c++ , err: alt text

what should i do to include a thirdparty correctly??? thank you all very much~~~

Product Version: UE 4.19
Tags:
fold.png (8.2 kB)
inclue.png (8.6 kB)
thirdparty.png (46.5 kB)
more ▼

asked Jun 26 '18 at 02:27 AM in C++ Programming

avatar image

HuangMM
6 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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