Package Details: qt4 4.8.7-36

Git Clone URL: https://aur.archlinux.org/qt4.git (read-only, click to copy)
Package Base: qt4
Description: A cross-platform application and UI framework
Upstream URL: https://www.qt.io
Licenses: GPL-3.0-only, LGPL-3.0-only, GFDL-1.3-only
Conflicts: qt
Replaces: qt
Submitter: arojas
Maintainer: DodoGTA
Last Packager: DodoGTA
Votes: 79
Popularity: 0.31
First Submitted: 2019-05-01 11:51 (UTC)
Last Updated: 2024-06-26 19:25 (UTC)

Sources (22)

Pinned Comments

eschwartz commented on 2019-05-09 13:24 (UTC)

@semeion,

qt4 was expelled from the official repositories due to https://lists.archlinux.org/pipermail/arch-dev-public/2019-April/029560.html

It will not be restored, because software needs to stop using qt4. It's fine for people to still use it via the AUR if they have old software that is not ported, but the proper solution is to get that software ported to qt5.

"It takes a long time to compile" is not a reason to move it to community.

@xuanruiqi,

Only Developers and Trusted Users have access to pkgbuild.com, and we will not be uploading qt4 there. If we wanted qt4, we would upload it to community, but we don't -- we have managed to move every package still being actively maintained in the official repos, over to qt5, and we want to stay that way.

...

Again, the proper long-term solution is to get software ported over to qt5.

dviktor commented on 2019-05-05 17:49 (UTC) (edited on 2019-05-15 19:02 (UTC) by dviktor)

For those who have problems with ‘std::tr1’ has not been declared error: build in clean chroot with extra-x86_64-build script.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 18 Next › Last »

valandil commented on 2021-06-09 16:57 (UTC)

Build in a clean chroot. I can build fine.

synthead commented on 2021-06-09 04:05 (UTC)

Getting this error:

messagemodel.cpp: In function ‘int calcMergeScore(const DataModel*, const DataModel*)’:
messagemodel.cpp:186:61: error: ordered comparison of pointer with integer zero (‘MessageItem*’ and ‘int’)
  186 |                 if (c->findMessage(m->text(), m->comment()) >= 0)
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[3]: *** [Makefile:8639: .obj/release-shared/messagemodel.o] Error 1

de-vries commented on 2021-06-07 10:39 (UTC) (edited on 2021-06-07 11:21 (UTC) by de-vries)

Need this patch for GCC11.

Warning: this also fixes a bug, because that check never worked as intended. If that is not desired, just remove the if but keep the body, because the condition was always true with gcc < 11. (See https://godbolt.org/z/n6Wxsz9Mj if you need convincing.)

As patch for the PKGBUILD repo:

From 5d5556df8f8f3483fa7b9f5dcae33a17da3d7954 Mon Sep 17 00:00:00 2001
From: Maarten de Vries <maarten@de-vri.es>
Date: Mon, 7 Jun 2021 13:15:11 +0200
Subject: [PATCH] Fix compilation with GCC11.

---
 PKGBUILD        |  6 +++++-
 qt4-gcc11.patch | 11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 qt4-gcc11.patch

diff --git a/PKGBUILD b/PKGBUILD
index 27b2236..8f03b6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,7 +37,7 @@ source=("https://ftp.desolve.ru/ftp/viktor/qt4/${_pkgfqn}.tar.gz"
         'disable-sslv3.patch'
         'l-qclipboard_fix_recursive.patch'
         'l-qclipboard_delay.patch'
-        'qt4-gcc6.patch' 'qt4-gcc8.patch' 'qt4-gcc9.patch' 'qt4-glibc-2.25.patch' 'qt4-icu59.patch' 'qt4-openssl-1.1.patch')
+        'qt4-gcc6.patch' 'qt4-gcc8.patch' 'qt4-gcc9.patch' 'qt4-gcc11.patch' 'qt4-glibc-2.25.patch' 'qt4-icu59.patch' 'qt4-openssl-1.1.patch')
 sha256sums=('e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0'
             '157eb47865f0b43e4717819783823c569127a2e9fc48309982ca0f2b753517a1'
             'd63f22858174489068c30a12b9115d1b4e23ade00c31c117513212e9a225c1ce'
@@ -55,6 +55,7 @@ sha256sums=('e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0'
             '51da49e41edac66559d3ec8dd0a152995a51a53e5d1f63f09fa089a8af7e3112'
             '0497411e54a0461f76ffa204236f5146a2ed0d272ae66afcfabd74090459208b'
             '8d6104d7bc3b050ec87e82b9df245154cd1d80e03eb3bbe633084d6b3c079d5e'
+            '1a6468bfbd4080bdf46bad88fdfcd2c90de7d16c187670c5c4559363d1f129aa'
             'e6555f4a681227447e94e9f14e11626d50b7e5108aad06088311e87063bc0347'
             '61d6bf45649c728dec5f8d22be5b496ed9d40f52c2c70102696d07133cd1750d'
             'ff3ddb5428cd2ff243558dc0c75b35f470077e9204bbc989ddcba04c866c1b68')
@@ -102,6 +103,9 @@ prepare() {
   # Fix build with GCC9
   patch -Np0 -i "$srcdir"/qt4-gcc9.patch

+  # Fix build with GCC11
+  patch -Np0 -i "$srcdir"/qt4-gcc11.patch
+
   # Fix build of Qt4 applications with glibc 2.25 (Fedora)
   patch -p1 -i "$srcdir"/qt4-glibc-2.25.patch

diff --git a/qt4-gcc11.patch b/qt4-gcc11.patch
new file mode 100644
index 0000000..fb04a2a
--- /dev/null
+++ b/qt4-gcc11.patch
@@ -0,0 +1,11 @@
+--- tools/linguist/linguist/messagemodel.cpp   2021-06-07 12:18:43.713434493 +0200
++++ tools/linguist/linguist/messagemodel.cpp   2021-06-07 12:24:24.828016548 +0200
+@@ -183,7 +183,7 @@
+         if (ContextItem *c = one->findContext(oc->context())) {
+             for (int j = 0; j < oc->messageCount(); ++j) {
+                 MessageItem *m = oc->messageItem(j);
+-                if (c->findMessage(m->text(), m->comment()) >= 0)
++                if (c->findMessage(m->text(), m->comment()))
+                     ++inBoth;
+             }
+         }
-- 
2.32.0

Or, qt4-gcc11.patch separate:

--- tools/linguist/linguist/messagemodel.cpp    2021-06-07 12:18:43.713434493 +0200
+++ tools/linguist/linguist/messagemodel.cpp    2021-06-07 12:24:24.828016548 +0200
@@ -183,7 +183,7 @@
         if (ContextItem *c = one->findContext(oc->context())) {
             for (int j = 0; j < oc->messageCount(); ++j) {
                 MessageItem *m = oc->messageItem(j);
-                if (c->findMessage(m->text(), m->comment()) >= 0)
+                if (c->findMessage(m->text(), m->comment()))
                     ++inBoth;
             }
         }

valandil commented on 2021-02-07 19:15 (UTC)

@jerome2016: build in a clean chroot, see the pinned comments.

jerome2016 commented on 2021-02-07 10:44 (UTC) (edited on 2021-02-07 10:48 (UTC) by jerome2016)

can not update due to error:

make[2]: [Makefile.WebKit:1213 : .obj/release-static/YarrPattern.o] Erreur 1 make[2]: [Makefile.WebKit:1785 : .obj/release-static/DateMath.o] Erreur 1 make[2] : on quitte le répertoire « /home/jerome/.cache/paru/clone/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/JavaScriptCore » make[1]: [Makefile.WebKit:43 : sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Erreur 2 make[1]: Wait for unfinished tasks.... make[1] : quite directory « /home/jerome/.cache/paru/clone/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source » make: *** [Makefile:747 : sub-webkit-make_default-ordered] Erreur 2

And i can see up there: ./wtf/HashSet.h:191:26: erreur: impossible to convert « ((WTF::HashSet<void*>)this)->WTF::HashSet<void*>::m_impl.WTF::HashTable<void*, void*, WTF::IdentityExtractor\<void*>, WTF::PtrHash\<void*>, WTF::HashTraits\<void*>, WTF::HashTraits\<void*> >::add(( & value)) » de « pair<WTF::HashTableIterator\<void*, void*, WTF::IdentityExtractor\<void*>, WTF::PtrHash\<void*>, WTF::HashTraits\<void*>, WTF::HashTraits\<void*> >,[...]> » to « pair<WTF::HashTableConstIteratorAdapter\<WTF::HashTable\<void*, void*, WTF::IdentityExtractor\<void*>, WTF::PtrHash\<void*>, WTF::HashTraits\<void*>, WTF::HashTraits\<void*> >, void*>,[...]> » 191 | return m_impl.add(value); | ~~~~~~~~~~^~~~~~~ | | | pair<WTF::HashTableIterator\<void*, void*, WTF::IdentityExtractor\<void*>, WTF::PtrHash\<void*>, WTF::HashTraits\<void*>, WTF::HashTraits\<void*> >,[...]> In the file include from yarr/YarrPattern.cpp:31:

valandil commented on 2021-02-05 11:31 (UTC)

@tom, I can't reproduce. Make sure to build in a chroot,as mentioned in the pinned comments above.

tom commented on 2021-02-04 17:15 (UTC)

 |     ^~~~

compiling kernel/qdesktopwidget.cpp compiling kernel/qguiplatformplugin.cpp In Datei, eingebunden von /usr/include/gtk-2.0/gdk/gdkcairo.h:28, von /usr/include/gtk-2.0/gdk/gdk.h:33, von /usr/include/gtk-2.0/gtk/gtk.h:32, von ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:69, von ../../include/QtGui/private/qgtkstyle_p.h:1, von kernel/qguiplatformplugin.cpp:63: /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37:10: schwerwiegender Fehler: gdk-pixbuf/gdk-pixbuf.h: Datei oder Verzeichnis nicht gefunden 37 | #include <gdk-pixbuf/gdk-pixbuf.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~ Kompilierung beendet. make[1]: [Makefile:65032: .obj/release-shared/qguiplatformplugin.o] Fehler 1 make[1]: Verzeichnis „/home/.../.cache/yay/qt4/src/qt-everywhere-opensource-src-4.8.7/src/gui“ wird verlassen make: [Makefile:422: sub-gui-make_default-ordered] Fehler 2 ==> FEHLER: Ein Fehler geschah in build(). Breche ab... error making: qt4

dviktor commented on 2021-01-23 16:40 (UTC)

@gammy just a temporary lag