Unable to debug build error

I’m in a world of pain trying to get the latest Spine 2D release to build in 4.22.


Task "Exec"
    "D:\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" PoppyAndBuddy419Editor Win64 Development -Project="I:\PoppyAndBuddy 4.22\PoppyAndBuddy419.uproject" -WaitMutex -FromMsBuild
    Using 'git status' to determine working set for adaptive non-unity build (I:\PoppyAndBuddy 4.22).
    Parsing headers for PoppyAndBuddy419Editor
      Running UnrealHeaderTool "I:\PoppyAndBuddy 4.22\PoppyAndBuddy419.uproject" "I:\PoppyAndBuddy 4.22\Intermediate\Build\Win64\PoppyAndBuddy419Editor\Development\PoppyAndBuddy419Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
    Reflection code generated for PoppyAndBuddy419Editor in 7.5130502 seconds
    Using Visual Studio 2017 14.16.27023 toolchain (G:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
    Building 2 actions with 12 processes...
      [1/2] UE4Editor-SpineEditorPlugin.dll
         Creating library I:\PoppyAndBuddy 4.22\Plugins\SpinePlugin\Intermediate\Build\Win64\UE4Editor\Development\SpineEditorPlugin\UE4Editor-SpineEditorPlugin.suppressed.lib and object I:\PoppyAndBuddy 4.22\Plugins\SpinePlugin\Intermediate\Build\Win64\UE4Editor\Development\SpineEditorPlugin\UE4Editor-SpineEditorPlugin.suppressed.exp
    LINK : error LNK2001: unresolved external symbol IMPLEMENT_MODULE_SpineEditorPlugin
    I:\PoppyAndBuddy 4.22\Plugins\SpinePlugin\Binaries\Win64\UE4Editor-SpineEditorPlugin.dll : fatal error LNK1120: 1 unresolved externals
    G:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""D:\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" PoppyAndBuddy419Editor Win64 Development -Project="I:\PoppyAndBuddy 4.22\PoppyAndBuddy419.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
  Done executing task "Exec" -- FAILED.

I’m pretty confused as to what’s going on. As near as I can tell some module isn’t being built so the next module is failing. Then it spits out a generic failure with a misleading note about permissions.

Edit: if I clean the solution and rebuild I get this error instead:


      [39/40] UE4Editor-SpinePlugin.dll
         Creating library I:\PoppyAndBuddy 4.22\Plugins\SpinePlugin\Intermediate\Build\Win64\UE4Editor\Development\SpinePlugin\UE4Editor-SpinePlugin.suppressed.lib and object I:\PoppyAndBuddy 4.22\Plugins\SpinePlugin\Intermediate\Build\Win64\UE4Editor\Development\SpinePlugin\UE4Editor-SpinePlugin.suppressed.exp
    G:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(49,5): error MSB3073: The command ""D:\Epic Games\UE_4.22\Engine\Build\BatchFiles\Rebuild.bat" PoppyAndBuddy419Editor Win64 Development -Project="I:\PoppyAndBuddy 4.22\PoppyAndBuddy419.uproject" -WaitMutex -FromMsBuild" exited with code -1.


It’s not a permissions issue though - I’ve verified that the permissions are fine.

Do you have latest VS2017 + latest toolchain pack installed?

Sure do. I even reinstalled it. I also tried VS2019, made sure all the right SDKs were installed, etc.

I’m having this same issue. Was this ever resolved anywhere??

If you want to use module A’s class in module B
Need to add A_API to the class of module A