Package Details: mingw-w64-qt5-base-static 5.7.0-8

Git Clone URL: https://aur.archlinux.org/mingw-w64-qt5-base-static.git (read-only)
Package Base: mingw-w64-qt5-base-static
Description: A cross-platform application and UI framework (mingw-w64)
Upstream URL: https://www.qt.io/
Licenses: custom, GPL3, LGPL3, FDL
Groups: mingw-w64-qt, mingw-w64-qt5
Submitter: ant32
Maintainer: Martchus
Last Packager: Martchus
Votes: 6
Popularity: 0.565531
First Submitted: 2013-08-28 23:57
Last Updated: 2016-09-18 17:30

Required by (50)

Sources (24)

  • https://download.qt.io/official_releases/qt/5.7/5.7.0/submodules/qtbase-opensource-src-5.7.0.tar.xz
  • qt5-add-angle-and-dynamic-support.patch
  • qt5-allow-usage-of-static-qt-with-cmake.patch
  • qt5-customize-extensions-for-static-build.patch
  • qt5-disable-default-lib-include-detection.patch
  • qt5-dont-add-resource-files-to-qmake-libs.patch
  • qt5-dont-build-host-libs-static.patch
  • qt5-enable-rpath-for-host-tools.patch
  • qt5-fix-implib-ext.patch
  • qt5-fix-linking-against-static-dbus.patch
  • qt5-fix-linking-against-static-pcre.patch
  • qt5-fix-opengl-to-many-sections.patch
  • qt5-fix-static-psql-mysql.patch
  • qt5-fixes-from-mxe.patch
  • qt5-merge-static-and-shared-library-trees.patch
  • qt5-prevent-debug-library-names-in-pkgconfig-files.patch
  • qt5-rename-qtmain-to-qt5main.patch
  • qt5-use-correct-pkg-config-static-flags.patch
  • qt5-use-external-angle-library.patch
  • qt5-use-pkgconfig-for-harfbuzz.patch
  • qt5-use-system-zlib-in-host-libs.patch
  • qt5-use-win32-g++-mkspecs-profile.patch
  • qt5-win32-static-cmake-link-ws2_32-and--static.patch
  • qt5-workaround-pkgconfig-install-issue.patch

Pinned Comments

Martchus commented on 2016-07-10 19:47

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.7.0-mingw-w64

There also exist a binary repository: https://martchus.no-ip.biz/repo/arch/ownstuff

For general discussion and issues not only concerning this variant please use the comment section of the package mingw-w64-qt5-base.

Latest Comments

Martchus commented on 2016-07-27 22:17

The static variant of mingw-w64-qt5-base currently doesn't work.
- Linking with CMake is not possible. It always uses the shared version and there is not way to change that (eg. by setting a variable before calling find_package). In addition the transitive dependencies (which are required when linking against a static library) wouldn't be added automatically and plugins aren't detected.
- I'm unable to build static versions of the further Qt modules which are not part of the base repository. (The errors are undefined reference to `_imp___ZNK10QQmlEngine7baseUrlEv' and similar, so adding all required dependencies doesn't seem to work.)
- As consequence of the last point not all Qt modules are available.

The first point could be fixed by using the patches from MSYS2. However, those patches must be adjusted because MSYS2 installs static Qt in a separate prefix but the version here installs everything in one prefix. Maybe it would be easier to use separate prefixes here, too. What do you think?

Not sure how to fix the problem with the additional Qt modules. Are you able to build static versions of them?

Martchus commented on 2016-07-10 19:47

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.7.0-mingw-w64

There also exist a binary repository: https://martchus.no-ip.biz/repo/arch/ownstuff

For general discussion and issues not only concerning this variant please use the comment section of the package mingw-w64-qt5-base.

ant32 commented on 2015-09-03 12:37

I'll try do that this week. All that should need to be done is add -static to the main qt5 package but I didn't test it yet.

ethon commented on 2015-09-03 08:17

Any chance for an update to 5.5?

ant32 commented on 2015-03-11 16:35

Thank you @codestation. Should be fixed now.

codestation commented on 2015-03-11 04:04

This new revision has file conflicts with mingw-w64-qt5-base-opengl with prl files.

ant32 commented on 2015-02-15 03:12

It builds fine fore me. Could you send me your installed list of mingw packages?
pacman -Q | grep mingw

pha-qu commented on 2015-02-13 21:54

** Warning ** Fails at mingw-w64-gettext because of a missing header file. That's the end of the road, also applies to Qt5 base devel version too!!

configure:21556: i686-w64-mingw32-gcc -std=gnu99 -o conftest.exe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -I/usr/i686-w64-mingw32/include -Wl,--disable-auto-import conftest.c >&5
conftest.c:119:21: fatal error: libintl.h: No such file or directory

It's actually libgnuintl.h that is pulled - needs fixing

ant32 commented on 2014-12-15 04:18

I now made this build without opengl or angle. I was now able to build basic gui apps when I modified two lines in /usr/i686-w64-mingw32/lib/qt/mkspecs/win32-g++/qmake.conf

QMAKE_LIBS_GUI = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -ljpeg -lpng -lqtharfbuzzng

QMAKE_LIBS_QT_ENTRY = -lmingw32 /usr/i686-w64-mingw32/lib/qt/plugins/platforms/libqwindows.a -lqt5main

You also need to add these two lines to main.cpp

#include <QtPlugin>
Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);

I read somewhere that building qt5 statically with angle wasn't possible for some reason (I believe if the circular reference was solved it would be possible).
OpenGL would probably work but there is a large object bug that needs to be fixed for 64 bit (32bit works fine I think).

ant32 commented on 2014-08-17 20:16

I think the problem comes from linking order and that qt5Gui and Qt5Widgets both link to GLESv2. Manually fixing the linking was the only way I found a while back and I should have documented it but didn't. I tried for a while now but didn't get it to work. http://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking/

I spent some time getting things to work but didn't get it. Hopefully I have time in the near future

All comments