Skip to content

Include Fixes in CUBluprintLibrary.cpp for issues encountered on UE_5.5 Windows 11 Build#448

Merged
getnamo merged 1 commit intogetnamo:mainfrom
bapin93:bugfix/CUBlueprintLibrary-5.5-build
Jan 23, 2025
Merged

Include Fixes in CUBluprintLibrary.cpp for issues encountered on UE_5.5 Windows 11 Build#448
getnamo merged 1 commit intogetnamo:mainfrom
bapin93:bugfix/CUBlueprintLibrary-5.5-build

Conversation

@bapin93
Copy link
Copy Markdown
Contributor

@bapin93 bapin93 commented Jan 23, 2025

Moved Version.h include above ENGINE_MAJOR_VERSION macro usage and added includes for MemoryReader.h and MemoryWriter.h

Build Command:
RunUAT.bat BuildPlugin -plugin="D:\SocketIOClient-v2.9.0-UE5.5\Plugins\SocketIOClient\SocketIOClient.uplugin -package="D:\temp\SocketIOClient"

Errors Encountered:

[6/26] Compile [x64] CUBlueprintLibrary.cpp
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(13): error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
D:\UnrealEngine\5.5\Engine\Source\Runtime\Engine\Public\OpusAudioInfo.h(11): warning C4996: OpusAudioInfo.h has moved to its own module OpusAudioDecoder. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(583): error C2065: 'FMemoryWriter': undeclared identifier
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(583): error C2146: syntax error: missing ';' before identifier 'MemoryWriter'
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(583): error C3861: 'MemoryWriter': identifier not found
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(584): error C2065: 'MemoryWriter': undeclared identifier
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(596): error C2065: 'FMemoryReader': undeclared identifier
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(596): error C2146: syntax error: missing ';' before identifier 'MemoryReader'
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(596): error C3861: 'MemoryReader': identifier not found
D:\temp\SocketIOClient\HostProject\Plugins\SocketIOClient\Source\CoreUtility\Private\CUBlueprintLibrary.cpp(599): error C2065: 'MemoryReader': undeclared identifier

After applying the fixes in this PR, the build succeeds.

…ded includes for MemoryReader.h and MemoryWriter.h
@getnamo getnamo merged commit a4d1d35 into getnamo:main Jan 23, 2025
getnamo added a commit that referenced this pull request Jan 23, 2025
@getnamo
Copy link
Copy Markdown
Owner

getnamo commented Jan 23, 2025

Looks good, merged. Thanks for spotting and adding Win11 fixes (Win 10 here so wouldn't have seen them)

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

Successfully merging this pull request may close these issues.

2 participants