Build error in 0.9.5-beta2

Submitted by volvox on 2009-06-06

I just tried to install version 0.9.5-beta2 from source on my Debian stable/Lenny system (with Qt 4.4.3 installed) but got the an error:

cd src/ && make -f Makefile
make[1]: Entering directory `/usr/local/src/webissues-0.9.5-beta2/src'
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DHAVE_OPENSSL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../share/qt4/mkspecs/linux-g++ -I. -I../../../../include/qt4/QtCore -I../../../../include/qt4/QtCore -I../../../../include/qt4/QtNetwork -I../../../../include/qt4/QtNetwork -I../../../../include/qt4/QtGui -I../../../../include/qt4/QtGui -I../../../../include/qt4/QtXml -I../../../../include/qt4/QtXml -I../../../../include/qt4 -I. -I../tmp -I../tmp -o ../tmp/release/popeditbox.o widgets/popeditbox.cpp
widgets/popeditbox.cpp: In member function ‘void PopEditBox::initialize()’:
widgets/popeditbox.cpp:48: error: ‘class QTextDocument’ has no member named ‘setDocumentMargin’

According to INSTALL file WebIssues requires Qt 4.2 or newer but the property DocumentMargin of QTextDocument was introduced in Qt 4.5.

As a workaround I just simply commented out line 48 in src/widgets/popeditbox.cpp and 54 in src/widgets/propertypanel.cpp


You are right. This bug is already fixed in trunk.