[Buildroot] Cross-compile mariadb-connector-c for MySQL use
sampsonats at gmail.com
Tue Jun 2 19:47:34 UTC 2020
I want to cross-compile mariadb-connector-c to link with the Poco library
to create a MySQL client.
Everything was working with mariadb-connector-c version 2.3.7. I need to
update to 3.1.8 for compatibility with MySQL version 8. When I changed the
mariadb-connector-c buildroot target to 3.1.8, the build failed because
mariadb-connector-c had more dependencies.
It seems like mariadb-connector-c depends on the mariadb server to be
built. If I build the server, mariadb-connector-c is happy. The problem
is, the mariadb server is installed on the target and there is no room for
I tried putting:
> MARIADB_INSTALL_TARGET = NO
in the mariadb server .mk file but it still was installed.
If I don't select mariadb server, I get these errors and lots more similar:
> in function `ma_tls_set_error':
> openssl.c:(.text+0x28): undefined reference to `ERR_get_error'
> openssl.c:(.text+0x64): undefined reference to `ERR_reason_error_string'
*buildroot version 2020.05*
1. Is there a better way to approach this?
2. How do I let mariadb server be built but *not *installed in the target?
3. Should I be able to use the Poco library built into buildroot? It seems
like there should be an option in Poco to build the mariadb-connector-c
library and just work.
4. Is anyone else in the world besides me trying to do this?
I've been working on this for over two weeks now. I sure would appreciate
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot