Package Details: lib32-qt4 4.8.7-14

Git Clone URL: https://aur.archlinux.org/lib32-qt4.git (read-only)
Package Base: lib32-qt4
Description: A cross-platform application and UI framework (32-bit)
Upstream URL: http://www.qt.io
Licenses: custom, GPL3, LGPL, FDL
Conflicts: lib32-qt
Replaces: lib32-qt<=4.8.4
Submitter: arojas
Maintainer: WoefulDerelict
Last Packager: WoefulDerelict
Votes: 51
Popularity: 0.452679
First Submitted: 2017-02-09 20:36
Last Updated: 2018-07-10 17:40

Sources (13)

Pinned Comments

WoefulDerelict commented on 2017-03-07 19:07

This package often requires special care to build. If building this with makepkg fails it will be necessary to construct the package in a clean chroot. Using an AUR helper is not recommended; however, aurutils does provide the option to build in the clean chroot.

The process of building this package in a clean chroot is rendered exceptionally simple with the help of scripts in the devtools package and can be completed via the following steps. These summarize the information provided by the Arch Linux DeveloperWiki and assume familiarity with git or the process of downloading a snapshot from the AUR and extracting the archive. Please refer to this article for more information about the devtools scripts and building in the clean chroot: [https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot]

Prerequisites: This process uses scripts in devtools to simplify the procedure: please install this package before beginning. The lib32-libmng package is required and must be built or downloaded from the Arch Linux Archive [https://wiki.archlinux.org/index.php/Arch_Linux_Archive]. QT 4 depends on this package and it is no longer found in the binary repositories.

  1. Clone the lib32-qt4 repository or extract the snapshot archive into a clean working directory.

  2. Enter the directory containing the package source. (PKGBUILD and patches.)

  3. Execute the following command, supplying the location of lib32-libmng: multilib-build -- -I /<somewhere>/lib32-libmng-2.0.3-1-x86_64.pkg.tar.xz

  4. Execute pacman with the -U flag to install the resulting package: just as one would with any other local package. Note: lib32-libmng would need to be installed in a similar fashion if it isn't already present on your system.

WoefulDerelict commented on 2017-02-25 15:52

The QT 4 build system is prone to some odd behaviour: especially if the qtwebkit package is installed. [https://bbs.archlinux.org/viewtopic.php?id=132416] [https://bugreports.qt.io/browse/QTBUG-20236]

If your build fails with the following [error: expected class-name before ‘{’ token] when compiling please build in a clean chroot.

If your build fails with error messages about skipping incompatible files and being unable to find a specific file in a compatible format, especially while linking, you will need to build in a clean container to avoid issues.

Building this package in a clean chroot or other form of container will prevent unexpected issues.

All build errors will be ignored unless the build was performed inside a clean, properly configured container. For more information about building in a clean chroot see this article: [https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot]

Big thanks to int [at] arcor [dot] de for doing the legwork to track down the relevant issue reports and sending them my way.

The archlinuxgr repository contains a binary copy of this package courtesy of ranger.

[archlinuxgr] Server = http://archlinuxgr.tiven.org/archlinux/$arch

WoefulDerelict commented on 2017-02-18 22:10

gun26: Thanks very much for the feedback, it will help in tracking this down to some degree. As I understand it you were able to build this with pkgrel 7 before the dependencies were expanded and the configure options changed at pkgrel 8? Did you try to build this after lisu_ml bumped the pkgrel or after I adopted it and reworked it? Both?

Unfortunately I'm not sure I can help with skype and lib32-qt4 other than getting it to build again. Have you investigated the segfault with the older binary package to see what is going on?

gun26 commented on 2017-02-18 21:58

@WoefulDerelict it fails here too. There are no errors in patching that I can see. And I _always_ clear the src and pkg subdirectories before building anything from AUR. Your previous -7 version built fine. -8 does not. However, even using a successfully built lib32-qt4-7 I can't get the old skype not to segfault any more, so I may have to give up on it and lib32-qt4 and put up with the dreadful "skypeforlinux" alpha from now on. :-(

WoefulDerelict commented on 2017-02-18 21:32

It is unfortunate that this isn't building for you aunali1 and billypilgrim; however, I can not reproduce this error on my workstation or in test environments. The posted snippit isn't terribly enlightening but it leads me to suspect something went awry while patching the sources and you're both attempting to build broken code.

Could you share the process you're using to build this? What command did you use and how did you fetch the updated resources? If you could capture the entire build output, host it via your favourite text paste bin and share the URL one would have a much better chance of diagnosing the issue.

I would suggest attempting to rebuild this with makepkg -C to ensure there isn't anything lingering in $srcdir breaking the build. Starting with a completely clean build space would be the best option as I suspect you're both bumping into some cruft that is causing this to fail.

billypilgrim commented on 2017-02-18 20:36

It's still failing for me with the same message as @aunall1

aunali1 commented on 2017-02-18 19:53

Build still fails for me :(

moc openpagesmanager.h
helpviewer_qwv.cpp:161:1: error: expected class-name before ‘{’ token
{
^
helpviewer_qwv.cpp:166:13: error: ‘QWebPage’ does not name a type
virtual QWebPage *createWindow(QWebPage::WebWindowType);
^~~~~~~~
helpviewer_qwv.cpp:167:32: error: ‘WebAction’ has not been declared
virtual void triggerAction(WebAction action, bool checked = false);
^~~~~~~~~
helpviewer_qwv.cpp:169:42: error: ‘QWebFrame’ has not been declared
virtual bool acceptNavigationRequest(QWebFrame *frame,
^~~~~~~~~
helpviewer_qwv.cpp:170:41: error: ‘NavigationType’ has not been declared
const QNetworkRequest &request, NavigationType type);
^~~~~~~~~~~~~~
helpviewer_qwv.cpp: In constructor ‘HelpPage::HelpPage(QObject*)’:
helpviewer_qwv.cpp:182:7: error: class ‘HelpPage’ does not have any field named ‘QWebPage’
: QWebPage(parent)
^~~~~~~~
helpviewer_qwv.cpp: At global scope:
helpviewer_qwv.cpp:190:1: error: ‘QWebPage’ does not name a type
QWebPage *HelpPage::createWindow(QWebPage::WebWindowType)
^~~~~~~~
helpviewer_qwv.cpp:200:30: error: variable or field ‘triggerAction’ declared void
void HelpPage::triggerAction(WebAction action, bool checked)
^~~~~~~~~
helpviewer_qwv.cpp:200:30: error: ‘WebAction’ was not declared in this scope
helpviewer_qwv.cpp:200:48: error: expected primary-expression before ‘bool’
void HelpPage::triggerAction(WebAction action, bool checked)
^~~~
moc openpagesswitcher.h
rcc assistant.qrc
rcc assistant_images.qrc
compiling .moc/release-shared/moc_fontpanel.cpp
compiling helpenginewrapper.cpp
compiling .moc/release-shared/moc_aboutdialog.cpp
compiling .moc/release-shared/moc_bookmarkdialog.cpp
openpagesswitcher.cpp: In member function ‘virtual bool OpenPagesSwitcher::eventFilter(QObject*, QEvent*)’:
openpagesswitcher.cpp:157:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (key == Qt::Key_Tab && (ke->modifiers() == modifier))
~~~~~~~~~~~~~~~~^~~~~~~~~~~
compiling .moc/release-shared/moc_bookmarkfiltermodel.cpp
make[4]: *** [Makefile:14146: .obj/release-shared/helpviewer_qwv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/tmp/yaourt-tmp-aunali/aur-lib32-qt4/src/qt-everywhere-opensource-src-4.8.7/tools/assistant/tools/assistant'
make[3]: *** [Makefile:42: sub-assistant-make_default-ordered] Error 2
make[3]: Leaving directory '/tmp/yaourt-tmp-aunali/aur-lib32-qt4/src/qt-everywhere-opensource-src-4.8.7/tools/assistant/tools'
make[2]: *** [Makefile:113: sub-tools-make_default-ordered] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-aunali/aur-lib32-qt4/src/qt-everywhere-opensource-src-4.8.7/tools/assistant'
make[1]: *** [Makefile:52: sub-assistant-make_default-ordered] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-aunali/aur-lib32-qt4/src/qt-everywhere-opensource-src-4.8.7/tools'
make: *** [Makefile:891: sub-tools-make_default-ordered] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build lib32-qt4.
==> Restart building lib32-qt4 ? [y/N]
==> ----------------------------------
==>

WoefulDerelict commented on 2017-02-18 19:36

I've rebased this on the PKGBUILD used for qt4 in [Extra]. Clang is not longer used to build this which will hopefully remedy build issues users were experiencing. Issues raised in [FS#47301 [https://bugs.archlinux.org/task/47301]] have been properly addressed.

lisu_ml commented on 2017-02-18 14:29

Sorry, but I have no time to take care of the package anymore.

billypilgrim commented on 2017-02-18 10:42

I'm getting a build error with the new version of the package:
<inline asm>:2:10: note: instantiated into assembly here
cmpxchgl %rbx,_ZZL12unifiedTimervE16this__StaticVar_(%rip)
^~~~~
1 error generated.
make[1]: *** [Makefile:7552: .obj/release-shared/qvariantanimation.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [Makefile:7392: .obj/release-shared/qabstractanimation.o] Error 1
make[1]: Leaving directory '/tmp/makepkg/lib32-qt4/src/qt-everywhere-opensource-src-4.8.7/src/corelib'
make: *** [Makefile:205: sub-corelib-make_default-ordered] Error 2
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build lib32-qt4 package(s)

jmartl109 commented on 2017-02-17 18:51

I'm getting
clang-3.9: error: unknown argument: '-fvar-tracking-assignments'
make: *** [Makefile:257: project.o] Error 1

lisu_ml commented on 2017-02-17 14:09

@lightdot and @sl1pkn07: Both changes are part of the newest release. Could you please give it a try and let me know if both issues are gone now?