[Qt-interest] uic3 generates #include's for non-existing headers

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Sat Sep 4 14:17:43 CEST 2010


On 09/04/2010 12:01 AM, Angel Tsankov wrote:
> Hello.
>
> I've installed qt 4.6.3 configured with "-prefix /usr -docdir
> /usr/share/doc/qt -plugindir /usr/lib/qt/plugins -opensource -no-phonon
> -nomake demos -nomake examples -plugin-sql-mysql -system-sqlite" and
> tried to build KDE 4.4.5. I failed to compile kdenetwork and kdewebdev:
> the problem seems to be that uic3 generates code like this:
>
> #include<Qt3Support/Q3Header>
> #include<Qt3Support/Q3MimeSourceFactory>
> #include<QtCore/QVariant>
> #include<QtGui/QAction>
> // Other<QtGui/*>  #include's
> #include<qtable.h>  // In kdenetwork
> #include<qwidgetstack.h>  // In kdewebdev
>
> As you can guess, the last two files do not exist and I wonder why uic3
> does not instead generate #include's for<Qt3Support/Q3Table>  and
> <Qt3Support/Q3WidgetStack>, both of which exist.
>
> Regards,
> Angel Tsankov
>
> P.S. The corresponding ui files
> (kdenetwork-4.4.5/filesharing/advanced/kcm_sambaconf/usertab.ui and
> kdewebdev-4.4.5/kfilereplace/kfilereplaceviewwdg.ui) are too old to be
> compiled with uic -- they've been created with Qt Designer 3.
>
> P.S.2 I can build all of KDE (incl. kdenetwork and kdewebdev) with the
> pre-built Qt package.


This problem appears when I configure Qt with

./configure -prefix /usr -docdir /usr/share/doc/qt\
   -plugindir /usr/lib/qt/plugins\
   -translationdir /usr/share/qt/translations -opensource\
   -no-phonon -nomake demos -nomake examples\
   -plugin-sql-mysql -system-sqlite

and does not appear when I configure it with

./configure -prefix /opt/qt -bindir /usr/bin -libdir /usr/lib\
   -plugindir /usr/lib/qt/plugins -sysconfdir /etc/qt\
   -headerdir /usr/include -docdir /usr/share/doc/qt\
   -opensource -no-phonon -nomake demos -nomake examples\
   -plugin-sql-mysql -system-sqlite

I was able to trace the problem to libQtCore.so but did not investigate 
any further.


Angel Tsankov




More information about the Qt-interest-old mailing list