Packaging Ue4 Several Problems (Windows)

Hi there,
i finally got things working and want to release my little piece of “art”. But as always: Problems!
It’s an C++ based Game, i tried to build it with Shipping Configuration in Visual Studio, got a that Error (same for x64):

1>  Performing 1 actions (4 in parallel)
1>  [1/1] Link ProjektMacijo-Win32-Shipping.exe
1>LINK : fatal error LNK1181: cannot open input file 'HACD.lib'

I have no idea why HACD_64.lib / HACD.lib even gets loaded, here my my Game.Build.cs:

 PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "RenderCore", "ShaderCore", "RHI", "XmlParser"});

PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

And for more info: my .uproject:

{
	"FileVersion": 3,
	"EngineAssociation": "4.10",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "ProjektMacijo",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
				"Engine",
				"AnimGraph",
				"UMG"
			]
		}
	]
}

I found lots of posts, but i couldn’t figure it out myself / with that help. (deleting binaries, intermediate, rebuilding…)

Anyhow, i figured trying this: Releasing Documentation
Went as expected:
Here is the Project Launcher Log. I tried to build with packaging, without, with AUT and without… Same error always.

I really could use some help on this one, i got 5 Days until “release” / Public Showing at my University.
Would appreciate any hints / ideas!

Greetings

Edit: Pretty sure the problem is still the HACD, tried packaging and output says somewhat the same, as the rest with more info why AUT crashes:

MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: LINK : fatal error LNK1181: cannot open input file 'HACD.lib'

Not really surprising but i had hope only VS is screwed up or something… no idea

Tried it with a standard, empty project, worked fine. That’s sort of good news.

Hello ,

It seems like the issue is coming from your AdditionalDependencies that you’re adding into the .uproject. In particular, it seems like it’s either AnimGraph or UMG. I’m not familiar with adding dependencies this way but the error message you’re getting is the same as when you try to include “UnrealEd” as a public module. The reason it happens for UnrealEd is because UnrealEd is Editor only and cannot be included in packaged games. As you’re getting the same error, it could be for the same reason. Are these dependencies crucially necessary (specifically the ones in your .uproject) to your project? If not, try removing them to see if the issue resolves itself.

Well that solved it… all the love and thanks to you!
[REDACTED] hate it, i didn’t add those dependencys in my .uproject and expected them to be no problem. Once again i got traited by good will and lazyness…