How do I enable WITH_RUNTIME_PHYSICS_COOKING

Some functions in UBodySetup() are set to only be compiled in WITH_EDITOR || WITH_RUNTIME_PHYSICS_COOKING. How do I compile the engine with this feature enabled for packaged builds?

I found some configuration settings in Engine/Source/Programs/UnrealBuildTool/UEBuild[platform].cs:

	public override void ValidateUEBuildConfiguration()
...
    UEBuildConfiguration.bRuntimePhysicsCooking = true;

but it doesn’t appear to work for Android, which is the device I’m targeting. After a clean build, I get this error during linking:

UnrealEngine\Engine\Source\Runtime\Engine\Private\PhysicsEngine/PhysLevel.cpp:357: error: undefined reference to 'PxCreateCooking(unsigned int, physx::PxFoundation&, physx::PxCookingParams const&)'

Hi ryani,

Thank you for taking the time to report this issue and we appreciate your patience while awaiting a response. In order to assist you in an effective manner, we would like to see if you are still having a problem with getting the RUN_WITH_RUNTIME_PHYSICS_COOKING feature to work with Android using engine version 4.9.2…

If so, please provide some simple steps, screenshots, or any other relevant pieces of information to help us reproduce the issue on our end and we will investigate the problem.

Thank you for your feedback and cooperation,

.

Hi ryani,

Since we have not heard back from you, we are closing this post for tracking purposes. If you are still having a problem with getting the RUN_WITH_RUNTIME_PHYSICS_COOKING feature to work with Android using engine version 4.9.2, you can respond to this post with the requested information and we will continue to investigate.

Thanks,

.