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"

Html5 compile doesn't see included folders, Win64 does

I'm using Assimp and MongoDB libraries, and when I compile for HTML5, it doesn't find the headers in the include folders, even though I have it setup properly in build.cs and it works in Win64. What gives?

Build.cs:

 using System.IO;
 using UnrealBuildTool;
 
 public class ArtGallery : ModuleRules
 {
     public ArtGallery(ReadOnlyTargetRules Target) : base(Target)
     {
         PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
     
         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent" });
 
         PrivateDependencyModuleNames.AddRange(new string[] {  });
 
         if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
         {
             PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/Assimp/include"));
             PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/Assimp/bin/assimp.lib"));
         }
 
         if (Target.Platform == UnrealTargetPlatform.Win64)
         {
             PublicIncludePaths.Add("G:/Program Files/Boost/boost_1_65_1");
             PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongocxx/include/mongocxx/v_noabi"));
             PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongocxx/include/bsoncxx/v_noabi"));
             PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongoc/include/libmongoc-1.0"));
             PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongoc/include/libbson-1.0"));
             PublicLibraryPaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongoc/lib"));
             PublicLibraryPaths.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongocxx/lib"));
             PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongocxx/lib/mongocxx.lib"));
             PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongocxx/lib/bsoncxx.lib"));
             PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongoc/lib/mongoc-static-1.0.lib"));
             PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "../../ThirdParty/MongoDB/mongoc/lib/bson-1.0.lib"));
         }
 
         // Uncomment if you are using Slate UI
         // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
 
         // Uncomment if you are using online features
         // PrivateDependencyModuleNames.Add("OnlineSubsystem");
 
         // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
     }
 }
 

Example error:

 2>EXEC : warning : K:/Unreal Projects/ArtGallery/Source/ArtGallery/ProceduralEntity.h:6:10: fatal error: 'assimp/Importer.hpp' file not found
Product Version: UE 4.18
Tags:
more ▼

asked Jun 06 '18 at 01:30 AM in C++ Programming

avatar image

Rael55
1 1 2

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

1 answer: sort voted first

I'm dumb.. the if statements are only including on Win platforms, duh.

more ▼

answered Jun 07 '18 at 03:46 PM

avatar image

Rael55
1 1 2

(comments are locked)
10|2000 characters needed characters left
Your answer
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