Today after try to compile my game as shipped for distribution using the Purpleprint 2 - Kit plugin, my plugin got functions for all types and one of that are the functions for FVector4, the problem:
Can compile fine for the editor without reports in VS and looks like compile too for x64 games, but no compile for x32 games: Error:
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: source\ppklibrary\core\PPKLibraryMath.h(119): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: source\ppklibrary\core\PPKLibraryMath.h(123): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: PPKLibrary.generated.cpp
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: source\ppklibrary\core\PPKLibraryMath.h(119): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: source\ppklibrary\core\PPKLibraryMath.h(123): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core\PPKLibraryMath.cpp(143): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core\PPKLibraryMath.cpp(152): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: source\ppklibrary\core\PPKLibraryTools.h(280): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core/PPKLibraryMath.h(119): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core/PPKLibraryMath.h(123): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core\PPKLibraryTools.cpp(764): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: Source\PPKLibrary\Core/PPKLibraryTools.h(280): error C2719: 'Vec4Value': formal parameter with requested alignment of 16 won't be aligned
Source Code of Plugin (With reference to one of the errors function):
/** Returns the euler like FVector4 value */
UFUNCTION( BlueprintCallable, meta = ( DisplayName = "Convert 180 To 360 Rotation" ), Category = "PP2KLibrary|Math|Vector4" )
static FVector4 V4MakeFullFromHalfRot( const FVector4 Vec4Value );
FVector4 UPPKLibraryMath::V4MakeFullFromHalfRot( const FVector4 Vec4Value ) {
FVector4 value;
value.X = Vec4Value.X < 0.0f ? Vec4Value.X + 360.0f : Vec4Value.X;
value.Y = Vec4Value.Y < 0.0f ? Vec4Value.Y + 360.0f : Vec4Value.Y;
value.Z = Vec4Value.Z < 0.0f ? Vec4Value.Z + 360.0f : Vec4Value.Z;
value.W = Vec4Value.W < 0.0f ? Vec4Value.W + 360.0f : Vec4Value.W;
return value;
}