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

Thiago Macieira thiago at kde.org
Sat Sep 4 15:07:18 CEST 2010


On Saturday 4. September 2010 14.17.43 Angel Tsankov wrote:
> 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.

The difference in prefix probably causes uic3 to load a plugin from KDE that 
doesn't exist elsewhere.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100904/d773c4c8/attachment.bin 


More information about the Qt-interest-old mailing list