Hello!
I cloned the cesium-unreal repo, cloned with submodules and built cesium-native and put include/ and lib/ folders to the cesium-unreal/Source/ThirdParty (lib/ folder to the ThirdParty/Linux-x64).
When I try to build my project form Visual Code i cannot do this due to this error:
[1/17] Compile Module.CesiumRuntime.12.cpp
In file included from /home/stc/Documents/unreal-projects/unreal3dserver/Intermediate/Build/Linux/x64/unreal3dserver/Debug/CesiumRuntime/Module.CesiumRuntime.12.cpp:2:
In file included from /home/stc/Documents/unreal-projects/unreal3dserver/Plugins/cesium-unreal/Source/CesiumRuntime/Private/UnrealMetadataConversions.cpp:3:
/home/stc/Documents/unreal-projects/unreal3dserver/Plugins/cesium-unreal/Source/CesiumRuntime/Public/UnrealMetadataConversions.h:5:10: fatal error: 'CesiumGltf/PropertyTypeTraits.h' file not found
#include "CesiumGltf/PropertyTypeTraits.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And few more similar errors due problems with path search.
I checked CesiumRuntime.Build.cs inside Source/CesiumRuntime and here I found this include (there are few same ones):
new string[] {
Path.Combine(ModuleDirectory, "../ThirdParty/include")
}
And the main thing here - relative path with “ModuleDirectory” and “…/ThirdParty”. As far as I understood, ModuleDirectory is located inside Module, e.g. “Source/CesiumRuntime/” - is the module directory. That’s why folder “ThirdParty” should be on the same level as other ModuleDirectory, so I have.
So, I cannot understand where is my mistake and why I keep getting those errors if looks like that my cesium folder structure is ok.
To be more clear here is the abstract scheme of folders:
Plugins/cesium-unreal/Source__
|_CesiumEditor
|_CesiumRuntime
|_ThirdParty
|_include
|_*includes*
|_lib
|_Linux-x64
|_*libs*