• RuntimesBugs
  • Unreal Engine 5.1.1 SpinePlugin build error

Im having issues with installing the SpinePlugin into Unreal Engine 5.1.1 when trying to rebuild the project.

I followed everything that was on the official documentation on how to install the spine plugin to unreal engine and I tried redoing it multiple times just to see if I did something wrong or if I missed something but it still printed the same error message in the log.

I downloaded the newest spine-runtimes-4.1 from github and followed all the instructions. Im using VS 2022.

C4456 declaration of 'attachment' hides previous declaration. File: SkeletonBinary.cpp. Line: 1259.

Is there a way to fix this? Thanks!

Related Discussions
...
Зміна заголовка на «Unreal Engine 5.1.1 SpinePlugin build error» від CumliDudel.

Sorry, it looks like Epic added more "warnings as errors" compiler flags. I've opened an issue here which you can follow:
EsotericSoftware/spine-runtimes2251

This has been fixed in the 4.1 and 4.2-beta runtime branches.

So if I update to the newest 4.1 will it work? Also thanks for the fast reply!

  • Змінено

Tried redownloading and I got more errors than before. Here is the error list:

Warning	C4996	'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\Json.cpp	271	
Warning	C4996	'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\Json.cpp	283	
Warning	C4996	'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\SkeletonBinary.cpp	366	
Warning	C4996	'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\SkeletonBinary.cpp	368	
Warning	C4996	'FArchiveState::UE4Ver': Use UEVer instead which returns the version as a FPackageFileVersion. See the @FPackageFileVersion documentation for further details Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SpineAtlasAsset.cpp	65	
Error	C2039	'setRendererObject': is not a member of 'spine::AtlasPage'	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SpineAtlasAsset.cpp	112	
Warning	C4996	'FArchiveState::UE4Ver': Use UEVer instead which returns the version as a FPackageFileVersion. See the @FPackageFileVersion documentation for further details Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SpineSkeletonDataAsset.cpp	78	
Error	C2039	'getRendererObject': is not a member of 'spine::RegionAttachment'	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SpineSkeletonRendererComponent.cpp	221	
Error	C2039	'getRendererObject': is not a member of 'spine::MeshAttachment'	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SpineSkeletonRendererComponent.cpp	238	
Error	C2039	'getRendererObject': is not a member of 'spine::RegionAttachment'	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SSpineWidget.cpp	279	
Error	C2039	'getRendererObject': is not a member of 'spine::MeshAttachment'	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Private\SSpineWidget.cpp	289	
Warning	C4996	'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\Atlas.cpp	259	
Warning	C4996	'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	CatIsland	D:\Programy\unrealengine5projects\CatIsland\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\src\spine\Extension.cpp	109	
Warning		#include AssetRegistry/AssetRegistryModule.h instead of AssetRegistryModule.h	CatIsland	D:\UE_5.1\Engine\Source\Runtime\AssetRegistry\Public\AssetRegistryModule.h	6	
Error	MSB3073	The command "D:\UE_5.1\Engine\Build\BatchFiles\Rebuild.bat CatIslandEditor Win64 Development -Project="D:\Programy\unrealengine5projects\CatIsland\CatIsland.uproject" -WaitMutex -FromMsBuild" exited with code -1.	CatIsland	D:\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets	50	
  • Mario відповіли на це.

    CumliDudel apologies! I have forgotten to push a commit that fixes this issue. Please update one more time from either the 4.1 or 4.2-beta branches.