undefined reference to symbol 'jpeg_mem_src@@LIBJPEG_8.0

When I cross compile TX2 with nsight and Tegra_Multimedia_API on the host, I get an error "undefined reference to symbol 'jpeg_mem_src@@LIBJPEG_8.0“. Why is this happening?

We don’t support cross compile of MM API samples.

Please not make multiple posts for the same issue.
[url]https://devtalk.nvidia.com/default/topic/1035575/jetson-tx2/-multimedia-api-development-environment-in-nsight-eclipse/post/5261006/#5261006[/url]
[url]https://devtalk.nvidia.com/default/topic/1035576/jetson-tx1/tx1-multimedia-api-development-environment-in-nsight-eclipse/post/5261004/#5261004[/url]