Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I already do following things:

# layman -a qt
# cat /etc/portage/package.accept_keywords
=x11-libs/qt-core-5.9999 **
=x11-libs/qt-network-5.9999 **
=x11-libs/qt-dbus-5.9999 **
=x11-libs/qt-declarative-5.9999 **
=x11-libs/qt-demo-5.9999 **
=x11-libs/qt-gui-5.9999 **
=x11-libs/qt-multimedia-5.9999 **
=x11-libs/qt-opengl-5.9999 **
=x11-libs/qt-phonon-5.9999 **
=x11-libs/qt-qt3support-5.9999 **
=x11-libs/qt-script-5.9999 **
=x11-libs/qt-sql-5.9999 **
=x11-libs/qt-svg-5.9999 **
=x11-libs/qt-test-5.9999 **
=x11-libs/qt-webkit-5.9999 **
=x11-libs/qt-xmlpatterns-5.9999 **
=x11-libs/qt-widgets-5.9999 **
=x11-libs/qt-jsbackend-5.9999 **
=x11-libs/qt-xml-5.9999 **

And what next?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

A year and a half late, but if could be of use for anyone. There are two sets:

emerge -av @qt5-essentials @qt5-addons

for the qt overlay, ofc

share|improve this answer
Yes, this is what is exactly expected for those dais. –  proofit404 Apr 21 at 5:49

As with any other package, you need to "emerge" the ones you want.

This seems rather easy to me, so maybe you're not quite asking what you actually mean?

share|improve this answer
What package I need to emerge? There is no qt-meta for 5.9999 version. Emerge Qt module by module is an ugly way I think. –  proofit404 Nov 19 '12 at 6:33
You emerge the modules you want. That's how it works. –  Nikos C. Nov 19 '12 at 6:38
Thanks, I understand now. –  proofit404 Nov 19 '12 at 6:53
@NikosC. You know, Qt5 is not in portage yet, don't you? –  vertoe Jun 2 '13 at 17:55
@donschoe In the question it is mentioned that he did layman -a qt, so he has the qt overlay active, which does provide the Qt5 ebuilds. –  Nikos C. Jun 2 '13 at 21:35

Qt5 will not be in standard portage tree unless this meta-issue #454132 is solved. This is because the changes between Qt4 and Qt5 are huge and would break a lot of dependencies.

Until Qt5 enters the portage tree you will have to download it from qt-project.org and compile it on your own as explained in the official documentation:

Extract the archive:

gunzip qt-everywhere-opensource-src-5.0.2.tar.gz        # uncompress the archive
tar xvf qt-everywhere-opensource-src-5.0.2.tar          # unpack it

Configure the libraries:

cd qt-everywhere-opensource-src-5.0.2

Build the libraries:

make install

Add Qt5 to your environment:


That's it.

share|improve this answer
This is incorrect now, and was incorrect when you posted it. The qt overlay has had packages for Qt 5 prior to April. The package manager should always be preferred over manual installation when possible. –  Gordon Aug 12 '13 at 23:14
Anyway, this is not the recommended way to install anything in gentoo, because bad things might happen: Corrupt/replace other system files, replacing libraries and so, specially if it is not slotted correctly with parameters in configure stage (and many many other disadvantages to manually install anything in gentoo –  StormByte Apr 3 at 5:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.