Page 1 of 1

Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 14:46
by KCoppinsIventis
Hi there,

I am trying to package a project using the Unreal Build Tool (UBT) on a linux machine to produce a linux build. Packaging throws these errors when compiling:
Plugins/NoesisGUI/Source/NoesisRuntime/Private/NoesisInstance.cpp:60:10: fatal error: 'Input/HitTestGrid.h' file not found
Plugins/NoesisGUI/Source/NoesisEditor/Private/NoesisEditorPrivatePCH.h:13:10: fatal error: 'HAL/PlatformFilemanager.h' file not found
I do not get these errors when packing on my Windows machine for a windows build. Here is my module definition where NoesisRuntime and Noesis modules are included:
public class UIModule : ModuleRules
{
    public UIModule(ReadOnlyTargetRules Target) : base(Target)
    {
        PrivatePCHHeaderFile = "UIModule.h";

        PublicDependencyModuleNames.AddRange(new string[] { 
            "Core", 
            "CoreUObject", 
            "Engine", 
            "InputCore", 
            "Slate",
            "SlateCore",
            "UMG"
        });

        PrivateDependencyModuleNames.AddRange(new string[] {
            "Noesis",
            "NoesisRuntime"
        });
    }
}
I tried adding Slate and SlateCore to the module as the Unreal docs say that the HitTestGrid.h is part of the SlateCore module but this still hasn't resolved my build. Any help on this issue is much appreciated!

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 15:03
by hcpizzi
Hi,

The correct capitalization is
"Input/HittestGrid.h
. Notice the lower case t in test. I'll correct it on our side.

Thanks for reporting!

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 15:15
by KCoppinsIventis
Hi,

The correct capitalization is
"Input/HittestGrid.h
. Notice the lower case t in test. I'll correct it on our side.

Thanks for reporting!
Ah I see, is this a linux only include or something? Odd it didnt get raised when building on my windows machine.

When will that change be released? Or can I change it locally myself?

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 15:45
by hcpizzi
Windows file system is not case sensitive, but Linux is.

We're planning on releasing version 3.2.4 soon, but for now you can make the change locally to be able to continue moving on.

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 15:50
by KCoppinsIventis
Also please note the incorrect capitalization with HAL/PlatformFileManager.h - manager with a capital M. This was changed with UE5.0 onwards

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 16:27
by KCoppinsIventis
Found another place here:
Plugins/NoesisGUI/Source/NoesisEditor/Private/NoesisXamlFactory.cpp:18:10: fatal error: 'HAL/PlatformFilemanager.h' file not found

Re: Fatal error: 'Input/HitTestGrid.h' file not found when packaging using the UBT for Linux

Posted: 15 Apr 2024, 16:29
by hcpizzi
Thanks! Fixed that one as well.