I will try to help you find out why the cross compilation tools aren't letting you compile code that includes mysql.

Please correct me if I'm wrong, you are trying to execute the command above on the root user, right?

Could you please let us know step by step what you did (from installing the SDK to installing mysql and mraa) and the steps to replicate the issue? We would like to see if we can replicate this behavior.

I was testing the steps you provided us but on a Linux 64 bit machine (I don't have access to a 32 bit one). I received a different issue but one that could in fact be related, the issue I received was that mysql could not be found. I would like to ask you in which path you stored your code and in if you tried executing the command with sudo.

Could you please enter the command mysql_config --libs? What's the output of that command?

Could you please try compiling the code but this time including the output of the previous command with $(mysql_config --lib)? Does it also throw an error? Could you please post a screenshot of the compilation?

Also, have you tried compiling this code on directly on Edison? If so, what happens?

I'm sorry, but I don't understand what you mean by "...Intel probably would have tried to compile in Edison. It was an error…”Could you please explain us what you meant with this?

Also, were you able to compile your code including the mysql libraries with $(mysql_config --lib)? If so, what happened?Could you please also let us know if you tried your code directly on Edison? If so, does it have any issues?

I have not tested the code directly on Edison (as I have not installed the other dependencies of the code), nevertheless, when I built the environment for cross compiling I did test if the code would compile with GCC and it did without issues.

However, it would be interesting to see if you can do this as well and in case you have installed the dependent packages on your board, to check if the code runs correctly on Edison.