I’m trying to create a new plugin to hold some reusable C++ functions across projects, and I’m having a really hard time doing so.
In the Plugin Library I’m clicking “Add”, selecting a Blank plugin, and then picking a directory and name… and then I’m getting an error:
Failed to compile plugin source code. See output log for more information.
The output log shows:
Running C:/UE_5.1/Engine/Build/BatchFiles/Build.bat MyProject2Editor Development Win64 -Project="D:/MyProject2/MyProject2.uproject" -Progress -NoHotReloadFromIDE
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" MyProject2Editor Development Win64 -Project="D:/MyProject2/MyProject2.uproject" -Progress -NoHotReloadFromIDE
Log file: C:\Users\User\AppData\Local\UnrealBuildTool\Log.txt
Invalidating makefile for MyProject2Editor (UnrealMyProjectPlugin.Build.cs modified)
@progress push 5%
@progress pop
Building MyProject2Editor...
Using Visual Studio 2022 14.33.31631 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (12 physical cores, 24 logical cores)
Executing up to 12 processes, one per physical core
Requested 1.5 GB free memory per action, 14.37 GB available: limiting max parallel actions to 9
Building 6 actions with 6 processes...
[1/6] Resource Default.rc2
[2/6] Link UnrealEditor-SitaraUtilities.dll
LINK : fatal error LNK1104: cannot open file 'D:\MyProject2\Plugins\SitaraUtilities\Binaries\Win64\UnrealEditor-SitaraUtilities.dll'
[3/6] Compile UnrealMyProjectPlugin.cpp
[4/6] Link UnrealEditor-UnrealMyProjectPlugin.lib
Creating library D:\MyProject2\Plugins\UnrealMyProjectPlugin\Intermediate\Build\Win64\UnrealEditor\Development\UnrealMyProjectPlugin\UnrealEditor-UnrealMyProjectPlugin.lib and object D:\MyProject2\Plugins\UnrealMyProjectPlugin\Intermediate\Build\Win64\UnrealEditor\Development\UnrealMyProjectPlugin\UnrealEditor-UnrealMyProjectPlugin.exp
[5/6] Link UnrealEditor-UnrealMyProjectPlugin.dll
Creating library D:\MyProject2\Plugins\UnrealMyProjectPlugin\Intermediate\Build\Win64\UnrealEditor\Development\UnrealMyProjectPlugin\UnrealEditor-UnrealMyProjectPlugin.suppressed.lib and object D:\MyProject2\Plugins\UnrealMyProjectPlugin\Intermediate\Build\Win64\UnrealEditor\Development\UnrealMyProjectPlugin\UnrealEditor-UnrealMyProjectPlugin.suppressed.exp
[6/6] WriteMetadata MyProject2Editor.target cancelled
LogSlate: Window 'Unable to create plugin' being destroyed
Message dialog closed, result: Ok, title: Unable to create plugin, text: Failed to compile plugin source code. See output log for more information.
LogSlate: Window 'New Plugin' being destroyed
LogSlate: Window 'New Plugin' being destroyed
I’ve tried opening a brand new project and creating a plugin, and I get this error, so I really have no idea what else I should be doing. I’m running Unreal 5.1.1 – are there any known issues with this?