Can't Build My Project C++ and Blueprint (BluePrintFunction)

valeriorobert
Tue, 23 Aug 2022 16:58:32 +0000
C++

Hi, I have a Custom BlueprintFunction in UE4.27 (not created by me) that I have to import to UE5.

The Project won’t compile/build. The Custom BlueprintFunction doesn’t show up.

The Function from the various tutorial showed up.

I follow a lot of tutorials and see a lot of resources, which I think could be an error from the C++ file. Maybe the old function isn’t compatible with UE5.

Can anyone look at my files and help me?

If need any other files just ask <3

These are the original files from UE4

WIDGETSFunctionLibrary.cpp (1.6 KB)
WIDGETSFunctionLibrary.h (772 Bytes)

These are the CustomFunction created by me

MyBlueprintFunctionLibrary.h (788 Bytes)
MyBlueprintFunctionLibrary.cpp (1.6 KB)

And finally, this is the error from Unreal Build

>
> File C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Intermediate\Build\Win64\UnrealEditor\Development\ProvaLibrary\MyBlueprintFunctionLibrary.cpp.obj was modified or is new
> File C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Intermediate\Build\Win64\UnrealEditor\Development\ProvaLibrary\MyClass.cpp.obj was modified or is new
> File C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Intermediate\Build\Win64\UnrealEditor\Development\ProvaLibrary\ProvaLibrary.cpp.obj was modified or is new
> File C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Intermediate\Build\Win64\UnrealEditor\Development\ProvaLibrary\MyBlueprintFunctionLibrary.gen.cpp.obj was modified or is new
> File C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Intermediate\Build\Win64\UnrealEditor\Development\ProvaLibrary\ProvaLibrary.init.gen.cpp.obj was modified or is new
> Building patch from 5 file(s) for Live coding module C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Binaries\Win64\UnrealEditor-ProvaLibrary.dll
>    Creazione della libreria C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Binaries\Win64\UnrealEditor-ProvaLibrary.patch_0.lib e dell'oggetto C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Binaries\Win64\UnrealEditor-ProvaLibrary.patch_0.exp
> MyBlueprintFunctionLibrary.cpp.obj : error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) public: __cdecl FWidgetRenderer::FWidgetRenderer(bool,bool)" (__imp_??0FWidgetRenderer@@QEAA@_N0@Z) non risolto nella funzione "private: static class UTextureRenderTarget2D * __cdecl UMyBlueprintFunctionLibrary::WidgetToRenderTarget(class UTextureRenderTarget2D *,class UWidget *,struct UE::Math::TVector2<double>)" (?WidgetToRenderTarget@UMyBlueprintFunctionLibrary@@CAPEAVUTextureRenderTarget2D@@PEAV2@PEAVUWidget@@U?$TVector2@N@Math@UE@@@Z)
> MyBlueprintFunctionLibrary.cpp.obj : error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) public: virtual __cdecl FWidgetRenderer::~FWidgetRenderer(void)" (__imp_??1FWidgetRenderer@@UEAA@XZ) non risolto nella funzione "public: virtual void * __cdecl FWidgetRenderer::`scalar deleting destructor'(unsigned int)" (??_GFWidgetRenderer@@UEAAPEAXI@Z)
> MyBlueprintFunctionLibrary.cpp.obj : error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) public: void __cdecl FWidgetRenderer::DrawWidget(class UTextureRenderTarget2D *,class TSharedRef<class SWidget,1> const &,struct UE::Math::TVector2<double>,float,bool)" (__imp_?DrawWidget@FWidgetRenderer@@QEAAXPEAVUTextureRenderTarget2D@@AEBV?$TSharedRef@VSWidget@@$00@@U?$TVector2@N@Math@UE@@M_N@Z) non risolto nella funzione "private: static class UTextureRenderTarget2D * __cdecl UMyBlueprintFunctionLibrary::WidgetToRenderTarget(class UTextureRenderTarget2D *,class UWidget *,struct UE::Math::TVector2<double>)" (?WidgetToRenderTarget@UMyBlueprintFunctionLibrary@@CAPEAVUTextureRenderTarget2D@@PEAV2@PEAVUWidget@@U?$TVector2@N@Math@UE@@@Z)
> MyBlueprintFunctionLibrary.cpp.obj : error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) public: class TSharedRef<class SWidget,1> __cdecl UWidget::TakeWidget(void)" (__imp_?TakeWidget@UWidget@@QEAA?AV?$TSharedRef@VSWidget@@$00@@XZ) non risolto nella funzione "private: static class UTextureRenderTarget2D * __cdecl UMyBlueprintFunctionLibrary::WidgetToRenderTarget(class UTextureRenderTarget2D *,class UWidget *,struct UE::Math::TVector2<double>)" (?WidgetToRenderTarget@UMyBlueprintFunctionLibrary@@CAPEAVUTextureRenderTarget2D@@PEAV2@PEAVUWidget@@U?$TVector2@N@Math@UE@@@Z)
> MyBlueprintFunctionLibrary.cpp.obj : error LNK2001: simbolo esterno "public: virtual void __cdecl FDeferredCleanupInterface::FinishCleanup(void)" (?FinishCleanup@FDeferredCleanupInterface@@UEAAXXZ) non risolto
> MyBlueprintFunctionLibrary.gen.cpp.obj : error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UWidget_NoRegister(void)" (__imp_?Z_Construct_UClass_UWidget_NoRegister@@YAPEAVUClass@@XZ) non risolto nella funzione "void __cdecl `dynamic initializer for 'public: static struct UECodeGen_Private::FObjectPropertyParams const Z_Construct_UFunction_UMyBlueprintFunctionLibrary_ExportWidgetsToDisk_Statics::NewProp_Widgets_Inner''(void)" (??__E?NewProp_Widgets_Inner@Z_Construct_UFunction_UMyBlueprintFunctionLibrary_ExportWidgetsToDisk_Statics@@2UFObjectPropertyParams@UECodeGen_Private@@B@@YAXXZ)
> C:\Users\valer\Documents\Unreal Projects\ProvaLibrary\Binaries\Win64\UnrealEditor-ProvaLibrary.patch_0.exe : fatal error LNK1120: 6 esterni non risolti
> Failed to link patch (0.000s) (Exit code: 0x460)
> ---------- Finished (0.000s) ----------

Sorry but I m unable to get the error completely in ENG.

Ps: I m Using UE5.0.3 and Visual Studio 2022

2022-08-23T16:56:00Z UTC

3 posts - 2 participants