[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

QT4: need confirmation on debug version



Hi !

I'm currently developing an application on qt4 and wondered why qt doesnt
complain about not existing signals/slots during connect().
After trying to compile the stuff myself i discovered this:

[...many many lines deleted...]
/home/gawain/development/qt-x11-opensource-src-4.0.1/bin/moc -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/-shared -I. codecs/qtextcodecplugin.h -o .moc/-shared/moc_qtextcodecplugin.cpp
g++ -c -pipe -I/usr/include/mysql -I/usr/include/freetype2 -I/usr/include/postgresql -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/-shared -I. -o .obj/-shared/moc_qtextcodecplugin.o .moc/-shared/moc_qtextcodecplugin.cpp
rm -f libQtCore.so.4.0.1 libQtCore.so libQtCore.so.4 libQtCore.so.4.0
g++ -shared -Wl,-soname,libQtCore.so.4 -o libQtCore.so.4.0.1 .obj/-shared/qglobal.o .obj/-shared/qlibraryinfo.o .obj/-shared/qmutex.o .obj/-shared/qmutexpool.o .obj/-shared/qsemaphore.o .obj/-shared/qthread.o .obj/-shared/qthreadstorage.o .obj/-shared/qmutex_unix.o .obj/-shared/qreadwritelock_unix.o .obj/-shared/qthread_unix.o .obj/-shared/qwaitcondition_unix.o .obj/-shared/qbitarray.o .obj/-shared/qbytearray.o .obj/-shared/qbytearraymatcher.o .obj/-shared/qchar.o .obj/-shared/qdatetime.o .obj/-shared/qhash.o .obj/-shared/qline.o .obj/-shared/qlinkedlist.o .obj/-shared/qlistdata.o .obj/-shared/qlocale.o .obj/-shared/qpoint.o .obj/-shared/qmap.o .obj/-shared/qrect.o .obj/-shared/qregexp.o .obj/-shared/qshareddata.o .obj/-shared/qsize.o .obj/-shared/qstring.o .obj/-shared/qstringlist.o .obj/-shared/qstringmatcher.o .obj/-shared/qunicodetables.o .obj/-shared/qvector.o .obj/-shared/qvsnprintf.o .obj/-shared/qbuffer.o .obj/-shared/qdatastream.o .obj/-shared/qdebug.o .obj/-shared/qdir.o .obj/-shared/qfile.o .obj/-shared/qfileinfo.o .obj/-shared/qfileengine.o .obj/-shared/qfsfileengine.o .obj/-shared/qbufferedfsfileengine.o .obj/-shared/qiodevice.o .obj/-shared/qprocess.o .obj/-shared/qtextstream.o .obj/-shared/qtemporaryfile.o .obj/-shared/qresource.o .obj/-shared/qurl.o .obj/-shared/qsettings.o .obj/-shared/qfsfileengine_unix.o .obj/-shared/qprocess_unix.o .obj/-shared/qpluginloader.o .obj/-shared/qfactoryloader.o .obj/-shared/quuid.o .obj/-shared/qlibrary.o .obj/-shared/qlibrary_unix.o .obj/-shared/qabstracteventdispatcher.o .obj/-shared/qabstractitemmodel.o .obj/-shared/qbasictimer.o .obj/-shared/qeventloop.o .obj/-shared/qinternal.o .obj/-shared/qcoreapplication.o .obj/-shared/qcoreevent.o .obj/-shared/qmetaobject.o .obj/-shared/qmetatype.o .obj/-shared/qmimedata.o .obj/-shared/qobject.o .obj/-shared/qobjectcleanuphandler.o .obj/-shared/qsignalmapper.o .obj/-shared/qsocketnotifier.o .obj/-shared/qtimer.o .obj/-shared/qtranslator.o .obj/-shared/qvariant.o .obj/-shared/qcrashhandler.o .obj/-shared/qeventdispatcher_unix.o .obj/-shared/qisciicodec.o .obj/-shared/qlatincodec.o .obj/-shared/qsimplecodec.o .obj/-shared/qtextcodec.o .obj/-shared/qtsciicodec.o .obj/-shared/qutfcodec.o .obj/-shared/qtextcodecplugin.o .obj/-shared/qfontlaocodec.o .obj/-shared/moc_qnamespace.o .obj/-shared/moc_qthread.o .obj/-shared/moc_qfile.o .obj/-shared/moc_qiodevice.o .obj/-shared/moc_qtemporaryfile.o .obj/-shared/moc_qsettings.o .obj/-shared/moc_qpluginloader.o .obj/-shared/moc_qlibrary.o .obj/-shared/moc_qfactoryloader_p.o .obj/-shared/moc_qabstracteventdispatcher.o .obj/-shared/moc_qabstractitemmodel.o .obj/-shared/moc_qeventloop.o .obj/-shared/moc_qcoreapplication.o .obj/-shared/moc_qmimedata.o .obj/-shared/moc_qsocketnotifier.o .obj/-shared/moc_qtimer.o .obj/-shared/moc_qtranslator.o .obj/-shared/moc_qobjectcleanuphandler.o .obj/-shared/moc_qeventdispatcher_unix_p.o .obj/-shared/moc_qtextcodecplugin.o  -L/home/gawain/development/qt-x11-opensource-src-4.0.1/lib -lfontconfig -lz -lpthread -ldl
ln -s libQtCore.so.4.0.1 libQtCore.so
ln -s libQtCore.so.4.0.1 libQtCore.so.4
ln -s libQtCore.so.4.0.1 libQtCore.so.4.0
rm -f ../../lib/libQtCore.so.4.0.1
rm -f ../../lib/libQtCore.so
rm -f ../../lib/libQtCore.so.4
rm -f ../../lib/libQtCore.so.4.0
mv -f libQtCore.so.4.0.1 libQtCore.so libQtCore.so.4 libQtCore.so.4.0 ../../lib/
make[4]: Verlasse Verzeichnis »/home/gawain/development/qt-x11-opensource-src-4.0.1/src/corelib«
/usr/bin/make -f Makefile.Debug all
make[4]: Gehe in Verzeichnis »/home/gawain/development/qt-x11-opensource-src-4.0.1/src/corelib«
rm -f libQtCore_debug.so.4.0.1 libQtCore_debug.so libQtCore_debug.so.4 libQtCore_debug.so.4.0
g++ -shared -Wl,-soname,libQtCore_debug.so.4 -o libQtCore_debug.so.4.0.1 .obj/-shared/qglobal.o .obj/-shared/qlibraryinfo.o .obj/-shared/qmutex.o .obj/-shared/qmutexpool.o .obj/-shared/qsemaphore.o .obj/-shared/qthread.o .obj/-shared/qthreadstorage.o .obj/-shared/qmutex_unix.o .obj/-shared/qreadwritelock_unix.o .obj/-shared/qthread_unix.o .obj/-shared/qwaitcondition_unix.o .obj/-shared/qbitarray.o .obj/-shared/qbytearray.o .obj/-shared/qbytearraymatcher.o .obj/-shared/qchar.o .obj/-shared/qdatetime.o .obj/-shared/qhash.o .obj/-shared/qline.o .obj/-shared/qlinkedlist.o .obj/-shared/qlistdata.o .obj/-shared/qlocale.o .obj/-shared/qpoint.o .obj/-shared/qmap.o .obj/-shared/qrect.o .obj/-shared/qregexp.o .obj/-shared/qshareddata.o .obj/-shared/qsize.o .obj/-shared/qstring.o .obj/-shared/qstringlist.o .obj/-shared/qstringmatcher.o .obj/-shared/qunicodetables.o .obj/-shared/qvector.o .obj/-shared/qvsnprintf.o .obj/-shared/qbuffer.o .obj/-shared/qdatastream.o .obj/-shared/qdebug.o .obj/-shared/qdir.o .obj/-shared/qfile.o .obj/-shared/qfileinfo.o .obj/-shared/qfileengine.o .obj/-shared/qfsfileengine.o .obj/-shared/qbufferedfsfileengine.o .obj/-shared/qiodevice.o .obj/-shared/qprocess.o .obj/-shared/qtextstream.o .obj/-shared/qtemporaryfile.o .obj/-shared/qresource.o .obj/-shared/qurl.o .obj/-shared/qsettings.o .obj/-shared/qfsfileengine_unix.o .obj/-shared/qprocess_unix.o .obj/-shared/qpluginloader.o .obj/-shared/qfactoryloader.o .obj/-shared/quuid.o .obj/-shared/qlibrary.o .obj/-shared/qlibrary_unix.o .obj/-shared/qabstracteventdispatcher.o .obj/-shared/qabstractitemmodel.o .obj/-shared/qbasictimer.o .obj/-shared/qeventloop.o .obj/-shared/qinternal.o .obj/-shared/qcoreapplication.o .obj/-shared/qcoreevent.o .obj/-shared/qmetaobject.o .obj/-shared/qmetatype.o .obj/-shared/qmimedata.o .obj/-shared/qobject.o .obj/-shared/qobjectcleanuphandler.o .obj/-shared/qsignalmapper.o .obj/-shared/qsocketnotifier.o .obj/-shared/qtimer.o .obj/-shared/qtranslator.o .obj/-shared/qvariant.o .obj/-shared/qcrashhandler.o .obj/-shared/qeventdispatcher_unix.o .obj/-shared/qisciicodec.o .obj/-shared/qlatincodec.o .obj/-shared/qsimplecodec.o .obj/-shared/qtextcodec.o .obj/-shared/qtsciicodec.o .obj/-shared/qutfcodec.o .obj/-shared/qtextcodecplugin.o .obj/-shared/qfontlaocodec.o .obj/-shared/moc_qnamespace.o .obj/-shared/moc_qthread.o .obj/-shared/moc_qfile.o .obj/-shared/moc_qiodevice.o .obj/-shared/moc_qtemporaryfile.o .obj/-shared/moc_qsettings.o .obj/-shared/moc_qpluginloader.o .obj/-shared/moc_qlibrary.o .obj/-shared/moc_qfactoryloader_p.o .obj/-shared/moc_qabstracteventdispatcher.o .obj/-shared/moc_qabstractitemmodel.o .obj/-shared/moc_qeventloop.o .obj/-shared/moc_qcoreapplication.o .obj/-shared/moc_qmimedata.o .obj/-shared/moc_qsocketnotifier.o .obj/-shared/moc_qtimer.o .obj/-shared/moc_qtranslator.o .obj/-shared/moc_qobjectcleanuphandler.o .obj/-shared/moc_qeventdispatcher_unix_p.o .obj/-shared/moc_qtextcodecplugin.o  -L/home/gawain/development/qt-x11-opensource-src-4.0.1/lib -lfontconfig -lz -lpthread -ldl
ln -s libQtCore_debug.so.4.0.1 libQtCore_debug.so
ln -s libQtCore_debug.so.4.0.1 libQtCore_debug.so.4
ln -s libQtCore_debug.so.4.0.1 libQtCore_debug.so.4.0
rm -f ../../lib/libQtCore_debug.so.4.0.1
rm -f ../../lib/libQtCore_debug.so
rm -f ../../lib/libQtCore_debug.so.4
rm -f ../../lib/libQtCore_debug.so.4.0
mv -f libQtCore_debug.so.4.0.1 libQtCore_debug.so libQtCore_debug.so.4 libQtCore_debug.so.4.0 ../../lib/
make[4]: Verlasse Verzeichnis »/home/gawain/development/qt-x11-opensource-src-4.0.1/src/corelib«
make[3]: Verlasse Verzeichnis »/home/gawain/development/qt-x11-opensource-src-4.0.1/src/corelib«
cd xml && /usr/bin/make
[...many many lines deleted...]

As you can see the build process does not compile the debug version on its own
but only links the objects of the release-version into the debug-version.

Because release version is compliled with QT_NO_DEBUG even the debug version
does not through errors.

I used the 4.0.1-5 patch on qt-x11 4.0.1 from trolltech website.

Please confirm this behavoir and fix it in the next upload.

-- 
 MfG, Christian Welzel
  (Ex-Admin AG DSN Gerokstrasse)

  GPG-Key:     http://www.camlann.de/key.asc <-> ID: 70A1AD15
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15

Attachment: pgpeKevwXII1C.pgp
Description: PGP signature


Reply to: