Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Building from source, plugin does not Compile Correctly - UE 5.4 #48

Open
kapsy122021 opened this issue Oct 8, 2024 · 3 comments

Comments

@kapsy122021
Copy link

Hello, I am trying to compile this plugin for use in UE 5.4 and I keep getting this error when building through windows powershell:

_[9/19] Compile [x64] MqttUtilitiesBPL.cpp (0:05.26 at +0:00)
C:\Users\20036153\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\CoreUObject\Public\UObject\ScriptInterface.h(27) : error C4702: unreachable code
inlined at C:\Users\20036153\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\CoreUObject\Public\UObject\ScriptInterface.h(151)
inlined at C:\Users\20036153\Documents\GitHub\UnrealEngine\Downloads\HostProject\Plugins\MqttUtilities\Source\MqttUtilities\Private\MqttUtilitiesBPL.cpp(40) <call to TScriptInterface::TScriptInterface>
while compiling UMqttUtilitiesBPL::CreateMqttClient

Error executing C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe (tool returned code: 2)_

For what it's worth, this is my first time having to build a plugin externally since it did not work after following the steps provided(Though it did work with UE 5.2, 5.0 and 4.27 for me). Any suggestions on how to resolve this?

MQTTissue

@kapsy122021
Copy link
Author

For the time being I have migrated back to UE 5.3 and everything works well, though I still am not sure what's going on for 5.4

@kumaran-a11
Copy link

I have the same issue

@lteleha
Copy link

lteleha commented Nov 26, 2024

Found a temp solution here and was able to build the plugin:
https://forums.unrealengine.com/t/plugin-build-fails-only-on-ue5-4/1853592/12

screenshot of solution
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants