'Install arm64 packages on A amd64 machine

I have A Raspberry Pi 3 device, the arch is arm64. And I have a ubuntu computer, the arch is amd64. I am doing the cross compile. I want to do the cross compile my code on the ubuntu and then copy the executables to the Raspberry to execute. My software depends opencv, ffmpeg...etc. I Have tried the MultiArch solution. When I try to download ffmpeg:arm64, the apt show me this error. this Picture

So I tried to download the first dependency libavcodec58, but the result is: this picture

and When I tried to install the dependency glibc, the result is here: this picture

The Apt will remove all the libraries from my current system. So could anyone can help me about this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source