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

Bug#418832: Build fails in Qt 4.2.1 due to known bug



Package: libqt4-core
Version: 4.2.1-2+b1

My application fails to build when the QT_NO_DEBUG_OUTPUT define is made. This was a known bug in Qt 4.2 which was fixed in v4.2.2; see this Trolltech tracker issue:

http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=133796

Build fails with errors like these (I use CMake for configure, hence the output style):

[ 54%] Building CXX object CMakeFiles/qtm.dir/catkin.o
/usr/include/qt4/QtCore/qglobal.h:1250: error: expected unqualified-id before ‘if’ /usr/include/qt4/QtCore/qglobal.h:1250: error: expected unqualified-id before ‘else’
make[2]: *** [CMakeFiles/qtm.dir/catkin.o] Error 1
make[1]: *** [CMakeFiles/qtm.dir/all] Error 2
make: *** [all] Error 2

I use this macro to control my own debug output, not just to suppress Qt's own.

I would add that the latest patch release (4.2.3) fixes a bug which causes the scroll bar to fail to appear in QTextEdit widgets when text starts to go beyond the widget's size. This is important to me as my application uses that class heavily. I suggest that Qt 4 be updated at least to version 4.2.2.

I am using Debian Etch, kernel 2.6.18-4-686, libc6 v2.3.6.ds1-13.



Reply to: