Hi @edouard_charvet,
To solve this problem, you could try to update your OpenCV version to the newest version for NXP OpenCV (4.6.0), also you can try to update the cmake search paths in the cmake script identifying the changes between those versions and check that al the libraries are present in the new OpenCV.
You can use this link to review the difference between new and older version:
GitHub - nxp-imx/opencv-imx: i.MX OpenCV
I hope this information will be helpful.
Have a great day!
Best regards, Brian.