Download

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:


 

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

 

Example error:


 

  1. 2>EXEC : warning : K:/Unreal Projects/ArtGallery/Source/ArtGallery/ProceduralEntity.h:6:10: fatal error: 'assimp/Importer.hpp' file not found

 

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