Cross-compiling and MariaDB

Hi all,

I’m developing a C++ application for the BeagleBone Black on a Debian (Linux debian-9-2-1-64 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux) machine with foreign-architecture armhf.

The application need access to the BBB’s MariaDB. For this, I need to install the armhf headers and libs on the amd64 machine, resulting in this messages:

`
paul@debian-9-2-1-64:~$ dpkg --print-foreign-architectures
armhf
paul@debian-9-2-1-64:~$ sudo apt-get install mysql-server:armhf
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mysql-server:armhf : Depends: default-mysql-server:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.
paul@debian-9-2-1-64:~$ sudo apt-get install mysql-client:armhf
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mysql-client:armhf : Depends: default-mysql-client:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.
`

So my question is how to install these files so that development can continue?

Thanks,
Paul