Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Qt4 portage update

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
59 posts
  • 1
  • 2
  • 3
  • Next
Author
Message
caleb
Developer
Developer
Posts: 404
Joined: Mon Jun 02, 2003 4:53 pm

Qt4 portage update

  • Quote

Post by caleb » Thu Jun 16, 2005 6:17 pm

With the pending release of Qt4 very soon, I wanted to take a moment to update
the community on what kind of effect it will have on portage:

First, the installation is now FHS compliant - no more stuff going
into /usr/qt.

Previous Qt versions built one big library; this version builds 9 or 10
smaller ones (all installed into /usr/lib/qt4). Since the names are
different, as well as the sonames, there should not be any runtime linking
issues with a mixed installation.

Qt4 does not make use of the QTDIR environment variable like Qt3 did. This
means that automated build scripts, such as those with most KDE programs,
will still pick up the correct Qt3 programs (uic, moc, and qmake). For
programs that don't use these types of build scripts, ebuild modifications
may need to be made to tell the package which directory to pick up its binary
tools in (/usr/qt/3/bin for Qt3, /usr/bin for Qt4).

I currently don't have any plans for any type of xxx-config package to switch
between versions. After installing Qt4, those applications will be higher in
precedence in the PATH. If you need to run Qt3 applications, you will either
need to specify the full path or restructure your PATH to make it work.

Even though Trolltech split out the GUI libraries from the rest of the core
libraries, X11 is still a dependency for the whole package. The reason for
this is that, as of now, Trolltech hasn't provided a convenient way to build
a subset of the libraries - it's really an all or nothing thing. Eventually
once the development stabilizes a bit, I think it will be feasible to have a
gui and non-gui set of ebuilds.

All that said - the latest version in portage ( qt-4.0.0_rc1-r2 ) works and
installs great for me. At this point, it may be good for aches to try
testing the installation, as well as people who use non-traditional setups,
like icc, ulibc, or "interesting" CXXFLAGS. Be forewarned though, It's still "-*" masked. If you don't know what that means or how to work around it, then you probably shouldn't try to install the package right now.

At the moment, I don't know of any installable applications that make use of
this new Qt version, but they'll be springing up very soon. Hopefully we'll
be ready for them.

Thanks,
Caleb

mod edit: sticky --Earthwings
mod edit: unstuck --mark_alec
Top
Dr. Z
n00b
n00b
Posts: 30
Joined: Fri Nov 19, 2004 2:56 am

examples

  • Quote

Post by Dr. Z » Sat Jun 18, 2005 11:35 pm

I wonder if someone can illuminate the build status of the examples; I USE=examples and it seems they come
"partially" built, with .pro's and Makefiles and strange "Trolltech/.config" turds lying around, but no executables.

I do get some examples to compile with the normal

Code: Select all

qmake -project
qmake
make
I can get the very basic examples/layouts/basiclayouts to link by doing this, and it will run
IF I create an /etc/env.d/55qt4 with the line

Code: Select all

LDPATH=/usr/lib/qt4
otherwise no /usr/lib/qt4 in my /etc/ld.so.cache

BUT examples/mainwindows does not link. I get a lot of errors like this during the final link:

Code: Select all

g++  -o mainwindows main.o mainwindow.o main.o mainwindow.o mdichild.o main.o mainwindow.o main.o mainwindow.o main.o mainwindow.o moc_mainwindow.o moc_mdichild.o qrc_application.o qrc_mdi.o qrc_sdi.o   -L/usr/lib/qt4 -L/usr/lib/mysql -L/usr/lib/qt4 -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lm -lQtCore_debug -lz -ldl -lpthread
main.o(.text+0x0): In function `main':
sdi/main.cpp:34: multiple definition of `main'
main.o(.text+0x0):sdi/main.cpp:34: first defined here
mainwindow.o(.text+0x0): In function `MainWindow::MainWindow[not-in-charge]()':
sdi/mainwindow.cpp:34: multiple definition of `MainWindow::MainWindow[not-in-charge]()'
mainwindow.o(.text+0x0):sdi/mainwindow.cpp:34: first defined here
examples/tools/qtdemo doesn't compile; I get

Code: Select all

g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I. -I. -o launcher.o launcher.cpp
launcher.cpp:30:24: QDomDocument: No such file or directory
launcher.cpp:31:40: QtAssistant/QAssistantClient: No such file or directory
/usr/include/qt4/QtXml/QDomDocument certainly exists, although QtAssistant/QAssistantClient does not (but /usr/lib/qt4/libQtAssistantClient_debug.a does).

I have

Code: Select all

=x11-libs/qt-4.0.0_beta2-r3 debug examples odbc sqlite accessibility
in my /etc/portage/packages.make and

Code: Select all

bash-2.05b# equery uses =x11-libs/qt-4.0.0_beta2-r3
[ Searching for packages matching =x11-libs/qt-4.0.0_beta2-r3... ]
[ Colour Code : set unset ]
[ Legend    : Left column  (U) - USE flags from make.conf              ]
[           : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for x11-libs/qt-4.0.0_beta2-r3 ]
 U I
 + + accessibility : Adds support for accessibility (eg 'at-spi' library)
 + + cups          : Add support for CUPS (Common Unix Printing System)
 + + debug         : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
 + + doc           : Adds extra documentation (API, Javadoc, etc)
 + + examples      : Install example source code
 - - firebird      : Adds support for the Firebird relational database
 + + gif           : Adds GIF image support
 - - ipv6          : Adds support for IP version 6
 + + jpeg          : Adds JPEG image support
 + + mng           : Adds support for libmng (MNG images)
 + + mysql         : Adds mySQL support
 - - nas           : Adds support for network audio sound
 - - nis           : Support for NIS/YP services
 + + odbc          : Adds ODBC Support (Open DataBase Connectivity)
 + + opengl        : Adds support for OpenGL
 + + postgres      : Adds support for the postgresql database
 + + png           : Adds support for libpng (PNG images)
 + + sqlite        : <unknown>
 - - xinerama      : Add support for the xinerama X11 extension, which allows you to stretch your display across multiple monitors
 + + zlib          : Adds support for zlib (de)compression
 + + debug         : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
Thank you for your help; I'd like to start by getting the examples working before I try anything else with Qt4.
Last edited by Dr. Z on Sun Jun 19, 2005 1:53 am, edited 1 time in total.
Top
yardbird
l33t
l33t
User avatar
Posts: 689
Joined: Sat Apr 20, 2002 7:02 pm
Location: nl.leiden

Re: Qt4 portage update

  • Quote

Post by yardbird » Sun Jun 19, 2005 12:31 am

caleb wrote:At the moment, I don't know of any installable applications that make use of
this new Qt version
KDE svn? :wink: Great work Caleb, gonna try it soon.
Albert Einstein wrote:I consider it [...] urgently necessary for [...] workers to get together, both to protect their own economic status and [...] to secure their influence in the political field.
http://www.bluescarni.info
Top
caleb
Developer
Developer
Posts: 404
Joined: Mon Jun 02, 2003 4:53 pm

Re: examples

  • Quote

Post by caleb » Sun Jun 19, 2005 12:55 pm

examples *should* install properly with the latest ebuild in portage - Trolltech has been changing the handling of that and I think they have it correct now.

They don't, however, have QtDesigner and QtAssistant headers installing properly. They told me it was fixed in the 061605 snapshot, but it doesn't look to be. If it isn't fixed in a more recent snapshot, I'll just have the ebuild install them manually.

Other than those issues, the package seems to work well for me.
Top
Dr. Z
n00b
n00b
Posts: 30
Joined: Fri Nov 19, 2004 2:56 am

  • Quote

Post by Dr. Z » Sun Jun 19, 2005 5:56 pm

I can get my own simple projects to build, so the qt-4 package seems pretty sound to me. Thanks for the good work on this. According to the docs, USE=examples is supposed to _build_ the examples but this doesn't seem to be the case; at least "etcat files" doesn't show those executables. According to one bug report, beta2-r2 was failing to install because the examples didn't build. So at least -r3 seems to ignore these build failures. I think it might be better I just DON'T USE=examples; I HOPE that would just install the pristine examples directory for me to build myself (I think some of the intermediate build files are causing me problems).

http://bugs.gentoo.org/show_bug.cgi?id=92484#c6

One more thing; for some reason we are missing include/QVBoxWidget, although it is present in the Qt docs:

http://doc.trolltech.com/4.0/qvboxwidget.html

However it is also not listed on their "All Classes" doc page so this sounds like a Trolltech problem. In any event I can work around it by using QVBoxLayout.

Cheers!
Top
FGA
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Wed Apr 07, 2004 3:13 pm

  • Quote

Post by FGA » Tue Jun 28, 2005 12:58 pm

Seems QT4 has been released :)

http://www.trolltech.com
Top
dani
n00b
n00b
User avatar
Posts: 45
Joined: Mon Apr 05, 2004 1:57 pm

  • Quote

Post by dani » Tue Jun 28, 2005 1:34 pm

FGA wrote:Seems QT4 has been released :)

http://www.trolltech.com
:) :) :)

we had been waiting for a long time for Qt4. ;)

now I'm waiting for an ebuild ;)
Top
caleb
Developer
Developer
Posts: 404
Joined: Mon Jun 02, 2003 4:53 pm

  • Quote

Post by caleb » Tue Jun 28, 2005 2:01 pm

The ebuild is in portage, please let me know if anything doesn't work for you (bug report at bugs.gentoo.org is the preferred place to report problems).
Top
asimon
l33t
l33t
User avatar
Posts: 979
Joined: Thu Jun 27, 2002 12:18 pm
Location: Germany, Old Europe

  • Quote

Post by asimon » Tue Jun 28, 2005 2:20 pm

Cool! Qt4 released AND in portage. The weekend is saved. ;-)

PS: And don't miss The Qt 4 Dance.
Top
Epyon
l33t
l33t
User avatar
Posts: 754
Joined: Thu Sep 11, 2003 2:08 am
Location: NJ, USA

  • Quote

Post by Epyon » Tue Jun 28, 2005 4:00 pm

That video is just... wow... 8O
Top
asimon
l33t
l33t
User avatar
Posts: 979
Joined: Thu Jun 27, 2002 12:18 pm
Location: Germany, Old Europe

  • Quote

Post by asimon » Tue Jun 28, 2005 6:48 pm

Is anyone able to run the demostrations (not examples) via qtdemo?
Top
menetto
n00b
n00b
Posts: 18
Joined: Thu Aug 05, 2004 8:34 am
Location: Belgium

  • Quote

Post by menetto » Tue Jun 28, 2005 7:48 pm

Is it possible to have qt 3 and qt 4 installed next to each other?
I want to develop apps with qt 4 and obviously I need qt 4 to run them. But since no apps support them up to now, I will need qt 3 for those apps. Am I not going to hose my system by trying this?
Top
dani
n00b
n00b
User avatar
Posts: 45
Joined: Mon Apr 05, 2004 1:57 pm

  • Quote

Post by dani » Tue Jun 28, 2005 7:55 pm

menetto wrote:Is it possible to have qt 3 and qt 4 installed next to each other?
I want to develop apps with qt 4 and obviously I need qt 4 to run them. But since no apps support them up to now, I will need qt 3 for those apps. Am I not going to hose my system by trying this?
Qt 4 uses slots.

http://www.gentoo.org/doc/en/handbook/h ... #doc_chap4
Top
menetto
n00b
n00b
Posts: 18
Joined: Thu Aug 05, 2004 8:34 am
Location: Belgium

  • Quote

Post by menetto » Tue Jun 28, 2005 8:00 pm

dani wrote:
Qt 4 uses slots.

http://www.gentoo.org/doc/en/handbook/h ... #doc_chap4
So I guess all the apps will be able to find the appriopriate libs for qt? Because now there is a variable QTDIR which says where qt is. But what will that value be with two qt's? Does a qt4 app know that it needs the qt4 libs and a qt3 app that it needs the qt3 libs?
Top
firephoto
Veteran
Veteran
User avatar
Posts: 1612
Joined: Wed Oct 29, 2003 12:48 am
Location: +48° 5' 23.40", -119° 48' 30.00"

  • Quote

Post by firephoto » Tue Jun 28, 2005 8:04 pm

It's all described by Caleb in the first post in this topic.
[url=irc://irc.freenode.org/gentoo-kde]#gentoo-kde on freenode[/url]
Top
menetto
n00b
n00b
Posts: 18
Joined: Thu Aug 05, 2004 8:34 am
Location: Belgium

  • Quote

Post by menetto » Tue Jun 28, 2005 8:14 pm

firephoto wrote:It's all described by Caleb in the first post in this topic.
Woops, my mistake. Sorry, gonna emerge it right away. The only way is for the moment by path I presume, since it's masked with -*. Adding to package.unmask doesn't work.

/me is feeling like a total noob.
Top
cocoliso
n00b
n00b
User avatar
Posts: 68
Joined: Sun Mar 07, 2004 7:16 pm

  • Quote

Post by cocoliso » Tue Jun 28, 2005 8:47 pm

hahah lets do the qt4 dance!:lol:
Top
asimon
l33t
l33t
User avatar
Posts: 979
Joined: Thu Jun 27, 2002 12:18 pm
Location: Germany, Old Europe

  • Quote

Post by asimon » Tue Jun 28, 2005 9:37 pm

If anyone wants to see very nice Qt4 demos (not to be confused with the examples)... well the Qt ebuild currently doesn't install them (thus they are not launchable from qtdemo, you'll see only a screenshot).

But I suppose the issue will be fixed in short time, it's trivial and a bug report is already filed.
Top
dani
n00b
n00b
User avatar
Posts: 45
Joined: Mon Apr 05, 2004 1:57 pm

  • Quote

Post by dani » Wed Jun 29, 2005 12:22 pm

Wow, Qt compiles and works! :) (@caleb: great work, I didn't expect it to be in portage that fast.)

qtdemo seems to make X creating a high CPU load, especially the nice animated navigation menu. Is that a problem of Qt, Qt for Linux, Qt for Gentoo or of the qtdemo?
Top
irondog
l33t
l33t
User avatar
Posts: 715
Joined: Mon Jul 07, 2003 1:41 pm
Location: Voor mijn TV. Achter mijn pc.

  • Quote

Post by irondog » Wed Jun 29, 2005 12:45 pm

Does anybody have any clue when KDE is QT4 ready?

Is it a matter of weeks, months, years?
Alle dingen moeten onzin zijn.
Top
dani
n00b
n00b
User avatar
Posts: 45
Joined: Mon Apr 05, 2004 1:57 pm

  • Quote

Post by dani » Wed Jun 29, 2005 12:50 pm

irondog wrote:Does anybody have any clue when KDE is QT4 ready?

Is it a matter of weeks, months, years?
KDE 4 will use Qt4. I think the next version of KDE will be 3.5 and after that they will begin working to port KDE to Qt4. So it will take a long time. ;)
Top
caleb
Developer
Developer
Posts: 404
Joined: Mon Jun 02, 2003 4:53 pm

  • Quote

Post by caleb » Wed Jun 29, 2005 2:31 pm

menetto wrote: Woops, my mistake. Sorry, gonna emerge it right away. The only way is for the moment by path I presume, since it's masked with -*. Adding to package.unmask doesn't work.
You can put -* into package.keywords and it should work.
Top
asimon
l33t
l33t
User avatar
Posts: 979
Joined: Thu Jun 27, 2002 12:18 pm
Location: Germany, Old Europe

  • Quote

Post by asimon » Wed Jun 29, 2005 3:33 pm

dani wrote:I think the next version of KDE will be 3.5 and after that they will begin working to port KDE to Qt4. So it will take a long time. ;)
Some KDE developers have already begun with the porting to Qt4.
KDE 3.4.2 will be released Wednesday, 27th July 2005.
KDE 3.5 has no time based schedule. It will be released somewhen in September or October and will be the last Qt 3 based KDE. Afterwards everyone will work on KDE 4 which will be based on Qt4. KDE 4 will be released in 2006, maybe around September.
dani wrote:qtdemo seems to make X creating a high CPU load, especially the nice animated navigation menu. Is that a problem of Qt, Qt for Linux, Qt for Gentoo or of the qtdemo?
The current "acceleration" architecture of X sucks. But as you can read in recent news reports developers at Troll Tech are already working on a replacement.
Top
pops45042
Apprentice
Apprentice
User avatar
Posts: 278
Joined: Wed Jan 07, 2004 3:27 am
Location: Cincinnati, Ohio

  • Quote

Post by pops45042 » Thu Jun 30, 2005 10:45 pm

The ebuild for QT4 dies on my system. See my original thread here
http://forums.gentoo.org/viewtopic-t-354829.html

Paul
"That which does not kill me only postpones the inevitable"

Laugh at my old system!
AMD Opteron 165@ 2750Mhz, 2gig 400mhz Cas2 Crucial Ballistix, Abit NF8 Ultra MB, WD 80gig (system), WD 120gig (storage), Geforce 8800GTS 320MB, Mushkin 550W PS
Top
Headrush
Watchman
Watchman
User avatar
Posts: 5597
Joined: Thu Nov 06, 2003 12:48 am
Location: Bizarro World

  • Quote

Post by Headrush » Thu Jun 30, 2005 11:40 pm

no problems here.
Top
Post Reply

59 posts
  • 1
  • 2
  • 3
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy