WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] qt-4.x (4.7) has no glib2 support  (Read 1954 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
[SOLVED] qt-4.x (4.7) has no glib2 support
« on: September 30, 2010, 11:17:17 PM »
after i update qt-4.x to latest some kde programs (polkit-kde, knotify) started crashing, i believe this is the reason

tc qt-4.7
Quote
tc@box:/tmp/tcloop/qt-4.x-base/usr/local/lib$ readelf -d libQtGui.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libQtCore.so.4]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpng12.so.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so.6]
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXrender.so.1]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
tc@box:/tmp/tcloop/qt-4.x-base/usr/local/lib$ readelf -d libQtCore.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

arch linux qt-4.7
Quote
tc@box:~/Downloads/usr/lib$ readelf -d libQtGui.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libQtCore.so.4]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libglib-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libpng14.so.14]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgobject-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXrender.so.1]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

tc@box:~/Downloads/usr/lib$ readelf -d libQtCore.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libgthread-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libglib-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
« Last Edit: October 04, 2010, 01:09:41 PM by Arslan S. »

Offline SvOlli

  • Full Member
  • ***
  • Posts: 193
  • Linux Developer
Re: qt-4.x (4.7) has no glib2 support
« Reply #1 on: October 02, 2010, 11:13:15 AM »
I found the problem: glib2-dev.tcz does not depend on glib2.tcz, as I expected, so Qt will build without glib2 as a fallback. There's a good chance I can fix that this weekend. Thanks for noticing.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: qt-4.x (4.7) has no glib2 support
« Reply #2 on: October 02, 2010, 11:36:14 AM »
I will add the glib2 dependency to glib2-dev.  I used to consider it assumed that a -dev extension would depend on the main one, but having the main extension in the -dev one's dep file would prevent this from happening and simplify lists of dependencies needed for building purposes.