And is your build of mingw-w64-mariadb-connector-c different compared to the build in my binary repository? Can you build Qt 5 using the build from my binary repository? Can you build Qt 6 with MySQL support?
Search Criteria
Package Details: mingw-w64-qt5-base 5.15.16+kde+r130-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/mingw-w64-qt5-base.git (read-only, click to copy) |
---|---|
Package Base: | mingw-w64-qt5-base |
Description: | A cross-platform application and UI framework, native OpenGL backend (mingw-w64) |
Upstream URL: | https://www.qt.io/ |
Licenses: | custom, GPL3, LGPL3, FDL |
Groups: | mingw-w64-qt5 |
Submitter: | Martchus |
Maintainer: | Martchus |
Last Packager: | Martchus |
Votes: | 21 |
Popularity: | 0.023133 |
First Submitted: | 2016-08-30 21:28 (UTC) |
Last Updated: | 2024-11-25 20:54 (UTC) |
Dependencies (19)
- mingw-w64-crt (llvm-mingw-w64-toolchain-ucrt-binAUR, llvm-mingw-w64-toolchain-msvcrt-binAUR)
- mingw-w64-dbusAUR
- mingw-w64-harfbuzzAUR
- mingw-w64-libjpeg-turboAUR (mingw-w64-libjpegAUR)
- mingw-w64-libpngAUR
- mingw-w64-opensslAUR
- mingw-w64-pcre2AUR
- mingw-w64-sqliteAUR
- mingw-w64-zlibAUR
- git (git-gitAUR, git-glAUR) (make)
- mingw-w64-environmentAUR (llvm-mingw-w64-environmentAUR) (make)
- mingw-w64-gcc (mingw-w64-gcc132AUR, llvm-mingw-w64-toolchain-ucrt-binAUR, llvm-mingw-w64-toolchain-msvcrt-binAUR) (make)
- mingw-w64-mariadb-connector-cAUR (make)
- mingw-w64-pkg-configAUR (llvm-mingw-w64-pkg-configAUR) (make)
- mingw-w64-postgresqlAUR (make)
- mingw-w64-vulkan-headersAUR (make)
- mingw-w64-mariadb-connector-cAUR (optional) – MySQL support
- mingw-w64-mesaAUR (mingw-w64-mesa-gitAUR) (optional) – use LLVMpipe software rasterizer for Qt Quick
- mingw-w64-postgresqlAUR (optional) – PostgreSQL support
Required by (45)
- mingw-w64-attica
- mingw-w64-karchive
- mingw-w64-kcodecs
- mingw-w64-kconfig
- mingw-w64-kcoreaddons
- mingw-w64-kdsoap
- mingw-w64-kguiaddons
- mingw-w64-kimageformats
- mingw-w64-kitemviews
- mingw-w64-kwidgetsaddons
- mingw-w64-opencc-gui-git
- mingw-w64-passwordmanager
- mingw-w64-qca-qt5
- mingw-w64-qca-qt5 (make)
- mingw-w64-qca-qt6 (make)
- mingw-w64-qcustomplot-qt5
- mingw-w64-qscintilla-qt5
- mingw-w64-qt5-activeqt
- mingw-w64-qt5-base-static
- mingw-w64-qt5-charts
- Show 25 more...
Sources (33)
- 0001-Adjust-win32-g-profile-for-cross-compilation-with-mi.patch
- 0002-Ensure-GLdouble-is-defined-when-using-dynamic-OpenGL.patch
- 0003-Fix-too-many-sections-assemler-error-in-OpenGL-facto.patch
- 0004-Make-sure-.pc-files-are-installed-correctly.patch
- 0005-Don-t-add-resource-files-to-LIBS-parameter.patch
- 0006-Prevent-debug-library-names-in-pkg-config-files.patch
- 0007-Fix-linking-against-shared-static-libpng.patch
- 0008-Fix-linking-against-static-D-Bus.patch
- 0009-Don-t-try-to-use-debug-version-of-D-Bus-library.patch
- 0010-Fix-linking-against-static-freetype2.patch
- 0011-Fix-linking-against-static-harfbuzz.patch
- 0012-Fix-linking-against-static-pcre.patch
- 0013-Fix-linking-against-shared-static-MariaDB.patch
- 0014-Fix-linking-against-shared-static-PostgreSQL.patch
- 0015-Rename-qtmain-to-qt5main.patch
- 0016-Enable-rpath-for-build-tools.patch
- 0017-Use-system-zlib-for-build-tools.patch
- 0018-Merge-shared-and-static-library-trees.patch
- 0019-Use-.dll.a-as-import-lib-extension.patch
- 0020-Pull-dependencies-of-static-libraries-in-CMake-modul.patch
- 0021-Allow-usage-of-static-version-with-CMake.patch
- 0022-Adjust-linker-flags-for-static-build-with-cmake-ming.patch
- 0023-Use-correct-pkg-config-static-flag.patch
- 0024-Fix-macro-invoking-moc-rcc-and-uic.patch
- 0025-Ignore-errors-about-missing-feature-static.patch
- 0026-Enable-and-fix-use-of-iconv.patch
- 0027-Ignore-failing-pkg-config-test.patch
- 0028-Prevent-qmake-from-messing-static-lib-dependencies.patch
- 0029-Hardcode-linker-flags-for-platform-plugins.patch
- 0030-Fix-linking-against-static-plugins-with-qmake.patch
- 0031-Prevent-Cannot-find-feature-windows_vulkan_sdk.patch
- 0032-Fix-crashes-in-rasterization-code-using-setjmp.patch
- git+https://invent.kde.org/qt/qt/qtbase#commit=2529f7f0c2333d437089c775c9c30f624d1fd5bc
Martchus commented on 2024-11-04 19:40 (UTC) (edited on 2024-11-04 19:42 (UTC) by Martchus)
jahway603 commented on 2024-10-31 19:41 (UTC) (edited on 2024-10-31 19:42 (UTC) by jahway603)
It is strange that it cannot find any of those libraries. What version of mingw-w64-mariadb-connector-c do you try to build against? It definitely needs to be the latest that is on the AUR. What libraries does the connector package contain in your case? You can compare this with the version from my binary repository.
I am trying to build against mingw-w64-mariadb-connector-c 3.3.10-2, which is the latest on the AUR. The link to that package is https://aur.archlinux.org/packages/mingw-w64-mariadb-connector-c
Martchus commented on 2024-10-31 14:59 (UTC)
I think the relevant part is:
> i686-w64-mingw32-g++ -c -pipe -fpch-preprocess -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fcf-protection -w -mthreads -DUNICODE -D_UNICODE -DMINGW_HAS_SECURE_API=1 -I. -I/usr/i686-w64-mingw32/include/freetype2 -I/usr/i686-w64-mingw32/include/dbus-1.0 -I/usr/i686-w64-mingw32/lib/dbus-1.0/include -I/usr/i686-w64-mingw32/include/harfbuzz -I/usr/i686-w64-mingw32/include/glib-2.0 -I/usr/i686-w64-mingw32/lib/glib-2.0/include -I/usr/i686-w64-mingw32/include/mariadb -I/home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/qtbase/mkspecs/win32-g++ -o main.o main.cpp
> i686-w64-mingw32-g++ -Wl,-O1,--sort-common,--as-needed -fstack-protector -Wl,-subsystem,console -mthreads -o mysql.exe main.o -lmariadb.dll.a
> /usr/lib/gcc/i686-w64-mingw32/13.1.0/../../../../i686-w64-mingw32/bin/ld: cannot find -lmariadb.dll.a: No such file or directory
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:69: mysql.exe] Error 1
=> source failed verification.
Trying source 8 (type inline) of library mysql ...
+ cd /home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/build-i686-w64-mingw32/config.tests/mysql && /home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/build-i686-w64-mingw32/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'INCLUDEPATH += /usr/i686-w64-mingw32/include/freetype2 /usr/i686-w64-mingw32/include/dbus-1.0 /usr/i686-w64-mingw32/lib/dbus-1.0/include /usr/i686-w64-mingw32/include/harfbuzz /usr/i686-w64-mingw32/include/glib-2.0 /usr/i686-w64-mingw32/lib/glib-2.0/include /usr/i686-w64-mingw32/include/mariadb' -early "CONFIG += cross_compile" 'QMAKE_USE += mysql' 'QMAKE_LIBS_MYSQL = -llibmysql' /home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/build-i686-w64-mingw32/config.tests/mysql
+ cd /home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/build-i686-w64-mingw32/config.tests/mysql && MAKEFLAGS= /sbin/make clean && MAKEFLAGS= /sbin/make
> rm -f main.o
> i686-w64-mingw32-g++ -c -pipe -fpch-preprocess -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fcf-protection -w -mthreads -DUNICODE -D_UNICODE -DMINGW_HAS_SECURE_API=1 -I. -I/usr/i686-w64-mingw32/include/freetype2 -I/usr/i686-w64-mingw32/include/dbus-1.0 -I/usr/i686-w64-mingw32/lib/dbus-1.0/include -I/usr/i686-w64-mingw32/include/harfbuzz -I/usr/i686-w64-mingw32/include/glib-2.0 -I/usr/i686-w64-mingw32/lib/glib-2.0/include -I/usr/i686-w64-mingw32/include/mariadb -I/home/medicine/.cache/paru/clone/mingw-w64-qt5-base/src/qtbase/mkspecs/win32-g++ -o main.o main.cpp
> i686-w64-mingw32-g++ -Wl,-O1,--sort-common,--as-needed -fstack-protector -Wl,-subsystem,console -mthreads -o mysql.exe main.o -llibmysql
> /usr/lib/gcc/i686-w64-mingw32/13.1.0/../../../../i686-w64-mingw32/bin/ld: cannot find -llibmysql: No such file or directory
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:69: mysql.exe] Error 1
=> source failed verification.
Trying source 9 (type inline) of library mysql ...
=> source failed condition '!config.win32'.
Trying source 10 (type inline) of library mysql ...
=> source failed condition '!config.win32'.
test config.qtbase_sqldrivers.libraries.mysql FAILED
It is strange that it cannot find any of those libraries. What version of mingw-w64-mariadb-connector-c do you try to build against? It definitely needs to be the latest that is on the AUR. What libraries does the connector package contain in your case? You can compare this with the version from my binary repository.
jahway603 commented on 2024-10-31 14:38 (UTC)
@Martchus I sent you an email with a link to the entire log. Please let me know if I can provide you with any other information to help me get this package to work.
Martchus commented on 2024-10-30 10:29 (UTC)
@jahway603 Nice that you're interested in mingw-w64 packages but please refrain from adding the same comment on multiple packages that are basically about the same problem. This is spamming our inboxes. Since you've now come here I assume you have already managed to resolve the cyclic dependency loop between some of those packages by building *-bootstrap
packages first.
About the sqlite related built error: Please share the exact build error you've got. The final message that the build pre-condition failed is not helpful enough, I need to know why it failed. This is probably somewhere hidden in the very verbose output qmake is generating at the beginning. There are many red herrings as some checks are actually expected to fail so maybe just upload the entire logs somewhere.
jahway603 commented on 2024-10-30 03:47 (UTC)
This is failing to build with this as the error before it fails:
ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed.
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'mingw-w64-qt5-base-5.15.15+kde+r127-1':
error: packages failed to build: mingw-w64-qt5-base-5.15.15+kde+r127-1
Any suggestions on how to get past this error and to get this package to build successfully?
Martchus commented on 2023-06-07 19:48 (UTC)
Who flagged this package (or wants to flag it): The KDE patch branch doesn't seem rebased yet and the regular qt5-base package has not been updated as well. Since this package is using the KDE patch branch I'm going to wait for them to rebase. You generally don't need to flag the package as I'm subscribed to relevant Qt mailing lists anyways.
Martchus commented on 2022-04-26 10:31 (UTC)
I can update to the latest commit in the KDE-fork this evening. If your commit isn't contained by it I'll add it to my custom patchset. We're already at 32 patches so adding one more is certainly possible :-)
xantares commented on 2022-04-25 15:49 (UTC)
hi,
could this fix be backported as well ?
https://github.com/qt/qtbase/commit/87973325f1b99f2b25a5a0224e623803872ce2ef
Pinned Comments
Martchus commented on 2023-06-07 19:48 (UTC)
Who flagged this package (or wants to flag it): The KDE patch branch doesn't seem rebased yet and the regular qt5-base package has not been updated as well. Since this package is using the KDE patch branch I'm going to wait for them to rebase. You generally don't need to flag the package as I'm subscribed to relevant Qt mailing lists anyways.
Martchus commented on 2021-04-14 10:08 (UTC)
I've been updating this package and some further modules to use patches from KDE's fork. This is in accordance with the native Qt packages. As far as I know KDE's fork is not tagging releases. However, I will not pick up every single new commit on their branch but only update the package when it is worth it. Only flag the package as out-of-date if there are patches on their branch which are generally very important.
Martchus commented on 2020-09-13 11:42 (UTC)
Notes regarding 5.15.1 update
mingw-w64-qt5-base-static
but alsomingw-w64-qt5-svg-static
,mingw-w64-qt5-declarative-static
and so on. The static version is still sharing files with the shared version and as such depends on the shared packages. However, this change allows to avoid building all the static libraries if only shared libraries are required. If you've so far used static libraries from further Qt modules be sure to install the additional*-static
packages.5.x
. Let's see whether further updates for the5.x
branch will be made available by the community. If the regularqt5-base
packages picks up such commits I could update this package here as well.Martchus commented on 2018-05-29 08:29 (UTC) (edited on 2020-01-31 13:46 (UTC) by Martchus)
Before upgrading, be sure to remove the old version of the package from your system. Preferably, build the package in a clean chroot using makechrootpkg.
Also, please read the other comments and issues on GitHub for known bugs and limitations.
There also exist a binary repository: https://martchus.no-ip.biz/repo/arch/ownstuff, https://wiki.archlinux.org/index.php/Unofficial_user_repositories#ownstuff
Martchus commented on 2018-03-11 20:19 (UTC) (edited on 2020-09-13 11:45 (UTC) by Martchus)
@theone74 It is currently not possible to use the MariaDB plugin with the static version of Qt because mariadb-connector-c comes with its own pthread implementation which has conflicting symbols with the pthread library Qt uses. Since some PostgreSQL update the same is true for the PostgreSQL plugin.
So you have to disable the plugin. When using CMake, plugins are not be automatically added so you should not run into the issue by default. When using qmake you need to disable the plugin manually, eg. you can add the following arguments to enable only the plugins which actually work:
(https://github.com/Martchus/PKGBUILDs/blob/master/qt5-tools/mingw-w64-static/PKGBUILD#L45)
Martchus commented on 2016-07-10 19:47 (UTC) (edited on 2020-01-31 13:47 (UTC) by Martchus)
All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
Patches for this package are managed at: https://github.com/Martchus/qtbase/tree/5.11.0-mingw-w64
if you like to contribute to patches, read this: https://github.com/Martchus/PKGBUILDs/#contributing-to-patches
If you would like to contribute, here is a list of known bugs and things needing improvement:
Also note the comments about the different variants inside the PKGBUILD itself.