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

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, FDL, GPL3, LGPL
Groups: mingw-w64-qt, mingw-w64-qt5
Submitter: ant32
Maintainer: Martchus
Last Packager: Martchus
Votes: 5
Popularity: 0.000000
First Submitted: 2013-08-28 23:57
Last Updated: 2016-06-22 19:49

Required by (0)

Sources (17)

  • add-angle-support.patch
  • fix-opengl-to-many-sections.patch
  • fix-static-psql-mysql.patch
  • https://download.qt.io/official_releases/qt/5.7/5.7.0/submodules/qtbase-opensource-src-5.7.0.tar.xz
  • 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-static-dbus-detection.patch
  • qt5-prevent-debug-library-names-in-pkgconfig-files.patch
  • qt5-qtbase-fix-linking-against-static-pcre.patch
  • qt5-rename-qtmain-to-qt5main.patch
  • qt5-use-system-zlib-in-host-libs.patch
  • qt5-use-win32-g++-mkspecs-profile.patch
  • qt5-workaround-pkgconfig-install-issue.patch
  • qtbase-1-fixes.patch
  • use-external-angle-library.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
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-10 19:47

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
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

codestation commented on 2014-08-17 18:42

Tried to compile a static build from a sample project on QtCreator, got this linker error:

/usr/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x62a): undefined reference to `__imp_glGetIntegerv'
/usr/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x2d4f): undefined reference to `__imp_glFlush'
/usr/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld: /usr/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/lib/../lib/libQt5Gui.a(qopenglcontext.o): bad reloc address 0x0 in section `.pdata$_ZNK22QPlatformOpenGLContext9isSharingEv'
collect2: error: ld returned 1 exit status

Not sure why this package depends on OpenGL. Tried to install mingw-w64-qt5-base-opengl to see if the error goes away but the package is outdated (my project depends on 5.3).

All comments