Lyra Game does not compile with unresolved external symbol error

Hi, i downloaded lyra game from epic games, try to build it from rider and got this error:
unresolved external symbol “__declspec(dllimport) public: virtual bool __cdecl FGameplayAbilityTargetData_SingleTargetHit::NetSerialize(class FArchive &,class UPackageMap *,bool &)” (_imp?NetSerialize@FGameplayAbilityTargetData_SingleTargetHit@@UEAA_NAEAVFArchive@@PEAVUPackageMap@@AEA_N@Z) referenced in function “public: virtual bool __cdecl FLyraGameplayAbilityTargetData_SingleTargetHit::NetSerialize(class FArchive &,class UPackageMap *,bool &)” (?NetSerialize@FLyraGameplayAbilityTargetData_SingleTargetHit@@UEAA_NAEAVFArchive@@PEAVUPackageMap@@AEA_N@Z)

I didn’t change anything in the code, I just tried to compile the project. I reinstalled it several times and it didn’t help.

1 Like

Up, same here in 5.4. I can’t find a solution for this. Clean Lyra’s sample and build directly.

Add “GameplayAbilities” to your build.cs file depenencies and rebuild. You need the module “GameplayAbilities” as stated in the documentation

FLyraGameplayAbilityTargetData_SingleTargetHit

You also need to enable the GameplayAbilities plugin

Example uproject file with the plugin enabled:

{
	"FileVersion": 3,
	"EngineAssociation": "5.4",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "LoadTest2",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
				"Engine"
			]
		}
	],
	"Plugins": [
		{
			"Name": "ModelingToolsEditorMode",
			"Enabled": true,
			"TargetAllowList": [
				"Editor"
			]
		},
		{
			"Name": "GameplayAbilities",
			"Enabled": true
		}
	]
}

Just in case you can’t launch the engine and enable it from the ui