This script will help you to fix libscamera errors during compilation, just follow the steps to apply the patch