Download

Solution for ld.lld DatasmithRuntime

Hi. If you ever get this when trying to package to Android:

UATHelper: Packaging (Android (ASTC)): ld.lld: error: undefined symbol: DatasmithRuntime::GetTextureData(char16_t const*, DatasmithRuntime::EDSResizeTextureMode, unsigned int, bool, DatasmithRuntime::FTextureData&)
UATHelper: Packaging (Android (ASTC)): >>> referenced by Module.DatasmithRuntime.cpp
UATHelper: Packaging (Android (ASTC)): >>> D:/Program Files/Epic Games/UE_4.26/Engine/Plugins/Experimental/Enterprise/DatasmithRuntime/Intermediate/Build/Android/UE4/Development/DatasmithRuntime/Module.DatasmithRuntime.cppa8.o:(DatasmithRuntime::FSceneImporter::LoadTexture(unsigned int))
UATHelper: Packaging (Android (ASTC)): clang++: error: linker command failed with exit code 1 (use -v to see invocation)
PackagingResults: Error: undefined symbol: DatasmithRuntime::GetTextureData(char16_t const*, DatasmithRuntime::EDSResizeTextureMode, unsigned int, bool, DatasmithRuntime::FTextureData&)
PackagingResults: Error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (Android (ASTC)): Took 5,6276194s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool failed. See log for more details. (C:\Users\Jacob Allgayer\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_4.26\UBT-Foz-Android-Development.txt)
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error

Disable the plugin “Datasmith Runtime”. Took me awhile to find out the cause. Just sharing for anyone who falls for the same problem.