Compiling and installing mariadb-connector-c

S. Srinivasan <shsrvn@...>


I'm having issues compiling mariadb-connector-c in yocto (BSP-Yocto-i.MX6-PD20.1.0). The following is my recipe:

SUMMARY = "MariadbConnector"
SECTION = "base"
DESCRIPTION = "This recipe is for installing MariadbConnector"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
file://win/packaging/license.rtf;md5=d84792abbbf7478e48e648c9caf8107b \
SRC_URI =;name=source
SRC_URI[source.md5sum] = "bd8090528becf9a788f78ed14bb90764"
SRC_URI[source.sha256sum] = "29993f4ae4c975662724978792d1a503b9ee760fbb194d321a754253cbe60aad"

S = "${WORKDIR}/mariadb-connector-c-3.3.1-src"

DEPENDS = "zlib openssl gnutls krb5 curl zstd"

inherit cmake

do_configure() {
cd ${WORKDIR}/build/
cmake ../mariadb-connector-c-3.3.1-src -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr

do_compile() {
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake --build .

Here is the link to the log file:

I'm new to yocto, so please let me know if I must provide more details! Additionally, I managed to successfully compile and install mariadb-connector-c on the host Ubuntu 18.04.6 LTS system.


Join { to automatically receive all group messages.