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

-DQT_NO_DEBUG is not used in qt4-x11 configure



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'd like to know why QT_NO_DEBUG flag isn't used in configure line for
the qt4-x11 source package.

- From what I can see it has nothing to do with debug symbols, not
defining it only enables extra warnings.

I suppose that 'feature' is intended for QT developers, not for QT users


The bad thing with not having QT_NO_DEBUG defined is that it enables
QCoreApplicationPrivate::checkReceiverThread() which doesn't let me do
what i want with threads :(

the use of
#if !defined (QT_NO_DEBUG) || defined (QT_MAC_FRAMEWORK_BUILD) in
src/corelib/kernel/qcoreapplication.cpp:256 suggests that they have to
handle threads with special care, especially on macosx platform, and so
define an assertion to fix the things they had badly done, while testing
on other platforms.

I added -DQT_NO_DEBUG \ in debian/rules configure options (line 75) and
the library behaved like I wanted.

We are developing a QT4 interface for vlc, and vlc being heavily multi
threaded we had some problems (the assertion in
QCoreApplicationPrivate::checkReceiverThread() being spawned a lot of times)

Correct me if i'm wrong but debian packages should be compiled with
- -DQT_NO_DEBUG

Thanks.

- --
Rafaël Carré
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG5FjeYWCeGMCv8Q8RAre2AJ94LaVA5dESquLUq/BUDm47I8AP/gCgnMTu
KVKdVJOECe8+rIq62loZkZE=
=TZh1
-----END PGP SIGNATURE-----



Reply to: