[odb-users] libodb-mysql with MariaDB

Boris Kolpackov boris at codesynthesis.com
Thu Mar 1 09:55:31 EST 2018


Lukas Obermann <obermann.lukas at gmail.com> writes:

> I know that MariaDB is supported, but how do I actually compile the
> runtime with it? I search around google and the mailing list but I
> do not see anything. It always tries to link with libmysqlclient_r.

2.4.0 was released when MariaDB was pretending to be libmysqlclient_r.
Lately it's been moving away from this practice though most distributions
still provide the compatibility symlinks (sometimes as a separate package).

If you feel adventurous, you can try the latest snapshot with build2[1].
It is capable of building against both runtimes natively (and the
repository even contains runtimes themselves[2] so you can actually
build things in a sane manner if you are, say, on Windows).

If you want to give it a try, these are the rough steps:

1. Get the latest staged build2 toolchain[3] (introduction[4]).

2. Fetch libodb and libodb-mysql, in libodb-mysql/odb/mysql/buildfile
   change the 'client_lib' setting (this hack is temporary until we
   have proper support for configurations).

[1] https://stage.build2.org/?q=odb
[2] https://stage.build2.org/?q=mysql
[3] https://stage.build2.org/0/
[4] https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml

Boris



More information about the odb-users mailing list