Bifrost-Technologies / Solana-Unreal-SDK

A complete Unreal plugin and toolkit for building blockchain games on Solana with Unreal Engine 5.
MIT License
68 stars 21 forks source link

Unreal 5.4.2 error in Visual Studio #3

Open udevmain opened 2 months ago

udevmain commented 2 months ago

Error C2129 static function "bool UnrealSOLNETFramework::Object::SetText(UObject ,const char ,const char *)" declared, but not defined RaceOnLife E:\Projects\RaceOnLife\Plugins\SolanaSDK\Source\UnrealSOLNET\Public\UnrealSOLNET_Framework.h 176

Error C2129 static function "size_t UnrealSOLNET::Utility::Strlen(const char *)" declared, but not defined RaceOnLife E:\Projects\RaceOnLife\Plugins\SolanaSDK\Source\UnrealSOLNET\Public\UnrealSOLNET.h 287

I installed the plugin in the project folder to see how the plugin works in the examples that are in the Content folder, but when I try to run the project through Visual Studio, I get the errors above. There were even more errors before that, but I fixed them by adding #include "UnrealSOLNET.h" in the errored files, and I do not know what to do with these.

BifrostTitan commented 2 months ago

Try this: Install the plugin from the marketplace.

Navigate to the marketplace plugins in the engine folder and copy the source folder to your project folder. Copy this folder. D:\UE_5.4\Engine\Plugins\Marketplace\SolanaSDK\Source

Paste it in your project's plugin folder for that specific plugin. C:....\Unreal Projects\SolanaSDK_Showcase\Plugins\Solana SDK\

The directory path needs to be updated to support the engine's marketplace directory. I will update the plugin soon to support it

When everything is working you should see this debug message in the viewport while playing image