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

Git Clone URL: (read-only)
Package Base: mingw-w64-qt5-base-static
Description: A cross-platform application and UI framework (mingw-w64)
Upstream URL:
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
  • 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

Latest Comments

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.

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).

xantares commented on 2014-06-22 15:15

ok, fixed

All comments