From: Peter Seiderer <ps.report@gmx.net>
To: Scott Bartolett <SBartolett@thorlabs.com>
Cc: "buildroot@busybox.net" <buildroot@busybox.net>
Subject: Re: [Buildroot] BR2_PACKAGE_QT5BASE_MYSQL error
Date: Thu, 22 Jul 2021 19:59:11 +0200 [thread overview]
Message-ID: <20210722195911.6cd864df@gmx.net> (raw)
In-Reply-To: <SJ0PR08MB6542F0679D01DEF2541E4B61B8E39@SJ0PR08MB6542.namprd08.prod.outlook.com>
Hello Scott,
On Wed, 21 Jul 2021 21:21:47 +0000, Scott Bartolett <SBartolett@thorlabs.com> wrote:
> Hi all,
>
> I'm getting the following error when I enable the Qt5 MySQL Plugin - BR2_PACKAGE_QT5BASE_MYSQL.
>
> ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed.
> make[1]: *** [package/pkg-generic.mk:240: /home/vytran/buildroot-2021.05/output/build/qt5base-5.15.2/.stamp_configured] Error 3
> make: *** [Makefile:84: _all] Error 2
>
>
> I have the following:
>
> BR2_PACKAGE_MYSQL = y
> BR2_PACKAGE_HAS_MYSQL = y
> BR2_PACKAGE_PROVIDES_MYSQL = mariadb
> BR2_PACKAGE_QT5BASE_MYSQL = y
>
> When I disable BR2_PACKAGE_QT5BASE_MYSQL, it builds ok and MySQL works fine. But my Qt application cannot find and drivers. I assume I need the Qt5 MySQL Plugin for that.
From the qt5base configure step:
Trying source 0 (type mysqlConfig) of library mysql ...
+ .../host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mysql_config --version
> .../host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mysql_config: line 100: \
.../host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mariadb_config: cannot execute binary file: Exec format error
And:
$ file host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mariadb_config
host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mariadb_config: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 5.10.0, with debug_info, not stripped
Seems the mariadb_config executable (used from the mysql_config script) is
cross-compiled for the target instead compiled nativ for the host...
Your can work-around/fix it by (after qt5base failure, adjust pathes for your need,
e.g. mariabdb-10.3.28, etc):
$ gcc -I ./build/mariadb-10.3.30/libmariadb/include -o host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/mariadb_config build/mariadb-10.3.30/libmariadb/mariadb_config/mariadb_config.c
$ rm -rf build/qt5base-5.15.2
And restart the build...
Regards,
Peter
>
> I'm using Buildroot 2021.05.
> Regards,
> Scott
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
prev parent reply other threads:[~2021-07-22 17:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 21:21 [Buildroot] BR2_PACKAGE_QT5BASE_MYSQL error Scott Bartolett
2021-07-22 17:59 ` Peter Seiderer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210722195911.6cd864df@gmx.net \
--to=ps.report@gmx.net \
--cc=SBartolett@thorlabs.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox