Package Details: mingw-w64-qt5-base-static 5.13.2-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, GPL3, LGPL3, FDL
Groups: mingw-w64-qt5
Submitter: ant32
Maintainer: Martchus
Last Packager: Martchus
Votes: 10
Popularity: 0.000001
First Submitted: 2013-08-28 23:57
Last Updated: 2019-11-12 16:31

Required by (63)

Sources (33)

Pinned Comments

Martchus commented on 2017-01-10 21:24

Notes about using static Qt with CMake:

* Checkout the notes about the static version in the PKGBUILD itself
* Seems like find_package(Qt5Core) is still required when building static version. I think this is not really a problem, one just has to know it.
* Here is a simple example: https://github.com/oggio88/Qt-CMake-HelloWorld/compare/master...Martchus:mingw-w64-static
* I also included a commits showing how to link statically against against Qt plugins and dependencies of Qt itself.

Note about using static Qt with qmake:
* Use https://github.com/Martchus/qtbase/commit/acc61ef7833f685b1f66c9b99086ccfc1e6aa20f to fix inclusion of static plugins (patch will be included on next update, meanwhile it can also be applied manually after the mingw-w64-qt5-base package has been installed)
* Add `CONFIG+=no_smart_library_merge` to qmake arguments to prevent qmake from messing linker flags for freetype2/harfbuzz (which have dependency cycle).

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

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Martchus commented on 2016-12-28 13:15

@woggioni I can check. So auto moc works only if you use find_package(Qt5Core) in addition to find_package(StaticQt5Core)? Any error messages or simple app to reproduce? Did it work with previous versions of the package? Do you use CMake wrapper provided by mingw-w64-cmake package?

woggioni commented on 2016-12-28 11:27

When using only static version of qt with CMake, automoc does not work

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