mordentral / VRExpansionPlugin

A UE4-5 VR framework
https://www.vreue4.com
MIT License
522 stars 109 forks source link

Build failed. #25

Closed ssshammi closed 2 years ago

ssshammi commented 2 years ago

HI My build fails because of the VRExpansionPlugin, it seems that the PhysX is depricated is there a way to exclude this from code?

[2022.05.27-14.23.40:599][727]UATHelper: Packaging (Windows (64-bit)): C:\Learning Projects\Games\vr-loneliness-demo\SharedHome\Plugins\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(28): warning C4996: 'AWheeledVehicle': PhysX is deprecated. Use the AWheeledVehiclePawn from the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): C:\Learning Projects\Games\vr-loneliness-demo\SharedHome\Plugins\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): C:\Learning Projects\Games\vr-loneliness-demo\SharedHome\Plugins\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): C:\Learning Projects\Games\vr-loneliness-demo\SharedHome\Plugins\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(140): warning C4996: 'UWheeledVehicleMovementComponent::SetOverrideController': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBaseUtility.h(546): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(143): note: see reference to function template instantiation 'bool UObjectBaseUtility::IsA<To>(void) const' being compiled [2022.05.27-14.23.40:600][727]UATHelper: Packaging (Windows (64-bit)): with [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): [ [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): To=UWheeledVehicleMovementComponent [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): ] [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(142): note: while compiling class template member function 'To *TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast(UObject *)' [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): with [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): [ [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): To=UWheeledVehicleMovementComponent, [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): From=UPawnMovementComponent [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): ] [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): note: see reference to function template instantiation 'To *TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast(UObject *)' being compiled [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): with [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): [ [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): To=UWheeledVehicleMovementComponent, [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): From=UPawnMovementComponent [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): ] [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): note: see reference to class template instantiation 'TCastImpl<From,To,ECastType::UObjectToUObject>' being compiled [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): with [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): [ [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): From=UPawnMovementComponent, [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): To=UWheeledVehicleMovementComponent [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): ] [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): C:\Learning Projects\Games\vr-loneliness-demo\SharedHome\Plugins\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): note: see reference to function template instantiation 'To *Cast<UWheeledVehicleMovementComponent,UPawnMovementComponent>(From *)' being compiled [2022.05.27-14.23.40:601][727]UATHelper: Packaging (Windows (64-bit)): with [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): [ [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): To=UWheeledVehicleMovementComponent, [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): From=UPawnMovementComponent [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): ] [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBaseUtility.h(546): warning C4996: 'UWheeledVehicleMovementComponent::StaticClass': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2022.05.27-14.23.40:602][727]UATHelper: Packaging (Windows (64-bit)): [16/21] Module.VRExpansionPlugin.1_of_4.cpp

mordentral commented 2 years ago

That is a warning that pops up in 4.27 as Epic originally intended for chaos to be default in 4.27 but had to revert it. They never removed the deprecation warnings.

If that is the 4.27 chaos physics version of the engine, you need the 4.27-chaos branch of this plugin, though I generally would suggest just not using that engine version as its not stable.

If you are trying to build on UE5, then you have the wrong version of the plugin and a ton more errors than that should show up, you need the UE5 version.