Undefined reference to `jpeg_set_hardware_acceleration_parameters_enc'

When I compiled the 02_video_dec_cuda of MMAPI, the following error was reported. What libraries do I need to include to compile?

Hi,
Which Jetpack release do you use? Do you use Xavier NX module with SD card? It seems like the SDK components are not installed completely.