README.kde-qt

Michael Jansen kde at michael-jansen.biz
Sun Nov 15 18:47:45 CET 2009


Hi

I just checked kdesvn-build and README.kde-qt from our qt clone because i consider them the main authorities for how to build a qt for usage with kde.

Problem is they do it differently.

kdesvn-build uses 

	configure-flags -qt-gif -no-exceptions -fast -qdbus \
	                -nomake examples -nomake demos \
	                -phonon # Phonon built as part of Qt now

README.kde-qt tell us to use

 ./configure -qt-gif -debug -fast -no-separate-debug-info \
     -system-libpng -system-libjpeg -system-zlib \
     -dbus -webkit -plugin-sql-mysql \
     -nomake examples -nomake demos -prefix <installdir>

If we consider the options specified that are default anyway

    -no-gif ............ Do not compile the plugin for GIF reading support.
 *  -qt-gif ............ Compile the plugin for GIF reading support.
                         See also src/plugins/imageformats/gif/qgifhandler.h

   # typo in kdesvn-build.
    -no-dbus ........... Do not compile the QtDBus module.
 +  -dbus .............. Compile the QtDBus module and dynamically load libdbus-1.
    -dbus-linked ....... Compile the QtDBus module and link to libdbus-1.

    -no-phonon ......... Do not build the Phonon module.
 +  -phonon ............ Build the Phonon module.
                         Phonon is built if a decent C++ compiler is used.

    -no-webkit ......... Do not build the WebKit module.
 +  -webkit ............ Build the WebKit module.
                         WebKit is built if a decent C++ compiler is used.

	# the same for all system-libxyz from README.kde-qt
    -no-libpng ......... Do not compile in PNG support.
    -qt-libpng ......... Use the libpng bundled with Qt.
 +  -system-libpng ..... Use libpng from the operating system.
                         See http://www.libpng.org/pub/png

we end up with
	kdesvn-build:  -fast -nomake examples -nomake demos -no-exceptions 
and
    README.kde-qt: -fast -nomake examples -nomake demos -debug -no-separate-debug-info -plugin-sql-mysql -prefix <installdir>

Real Differences:
#################

-no-exception:
--------------
Disables this XmlPattern thing and makes compiling koffice and i think some plasma stuff impossible. qtscriptgenerator unconditionally assumes it to be set so you have to patch it to compile it. Is this still recommended?

-plugin-sql-mysql
-----------------
I think this one broke akonadi/nepomuk for me. i got a crash. See atachement. I vanished after i recompiled qt without it but i'm not really sure it's the reason. Perhaps someone else can double check.


Missing?
########
or should at least be mentioned?

-developer-build	-> For kde developers. Enables some additional stuff used internally by qtsoftware. Some additional warnings for example.
-plugindir			-> If libdir is mentioned this one should be mentioned too.

How about phonon?
#################
Do we recommend using the qt phonon these days? If yes is that how to build xine plugin if using phonon from qt problem solved?

Anything Else?
##############

I would like to get a consistent recommendation how to build qt for kde out there.

What's bothering me is the difference between the '*' and '+' above in qt's configure --help output. I can't explain or find out how these affect stuff. But i would like to have the list of options as short as possible.

Mike



  






-------------- next part --------------
#
[akonadiserver] QSqlDatabase: available drivers: QSQLITE QSQLITE2 QMYSQL3 QMYSQL QPSQL7 QPSQL
#
[akonadiserver] ASSERT: "db.driver()->hasFeature( QSqlDriver::LastInsertId )" in file /home/mjansen/kde4/trunk/src/kdesupport/akonadi/server/src/storage/dbconfig.cpp, line 233
#
[akonadiserver] "[                                                                                                                                                             
#
[akonadiserver] 0: akonadiserver(_Z11akBacktracev+0x32) [0x414802]                                                                                                             
#
[akonadiserver] 1: akonadiserver [0x414ba2]                                                                                                                                   
#
[akonadiserver] 2: /lib64/libc.so.6 [0x7f12cf1b1560]                                                                                                                           
#
[akonadiserver] 3: /lib64/libc.so.6(gsignal+0x35) [0x7f12cf1b14e5]                                                                                                             
#
[akonadiserver] 4: /lib64/libc.so.6(abort+0x180) [0x7f12cf1b29b0]                                                                                                             
#
[akonadiserver] 5: /kdeqt/4.6/lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0xf6) [0x7f12d119f5d5]                                                                   
#
[akonadiserver] 6: /kdeqt/4.6/lib64/libQtCore.so.4 [0x7f12d119f7cd]                                                                                                           
#
[akonadiserver] 7: /kdeqt/4.6/lib64/libQtCore.so.4(_Z6qFatalPKcz+0xe4) [0x7f12d119f8f9]                                                                                       
#
[akonadiserver] 8: /kdeqt/4.6/lib64/libQtCore.so.4(_Z9qt_assertPKcS0_i+0x2f) [0x7f12d119fb6f]                                                                                 
#
[akonadiserver] 9: /kde4/trunk/support/lib64/libakonadiprivate.so.1(_ZN8DbConfig9configureER12QSqlDatabase+0x126) [0x7f12d1783510]                                             
#
[akonadiserver] 10: /kde4/trunk/support/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x1c6e) [0x7f12d1704d0c]                               
#
[akonadiserver] 11: /kde4/trunk/support/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0xc3) [0x7f12d1701125]                                             
#
[akonadiserver] 12: /kde4/trunk/support/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x36) [0x7f12d1703064]                                             
#
[akonadiserver] 13: akonadiserver(main+0x4d4) [0x40eca9]                                                                                                                       
#
[akonadiserver] 14: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f12cf19da7d]                                                                                                 
#
[akonadiserver] 15: akonadiserver [0x40e6e9]                                                                                                                                   
#
[akonadiserver] ]                                                                                                                                                             
#
[akonadiserver] "                              


More information about the Kde-buildsystem mailing list