[solved] Debian Etch Qt4 build error

Submitted by cliffordh on 2007-11-27

I'm having an issue with compiling this on a Debian Etch host.

I have the following Qt4 packages installed:

clifford@clifford-laptop:~$ dpkg -l | grep qt4
ii  libqt4-core                      4.2.1-2+etch1                       Qt 4 core non-GUI functionality runtime libr
ii  libqt4-debug                     4.2.1-2+etch1                       Qt 4 library debugging symbols
ii  libqt4-dev                       4.2.1-2+etch1                       Qt 4 development files
ii  libqt4-gui                       4.2.1-2+etch1                       Qt 4 core GUI functionality runtime library
ii  libqt4-qt3support                4.2.1-2+etch1                       Qt 3 compatibility library for Qt 4
ii  libqt4-ruby                      1.4.6-2                             ruby bindings for the Qt4 GUI library
ii  libqt4-ruby1.8                   1.4.6-2                             ruby bindings for the Qt4 GUI library
ii  libqt4-sql                       4.2.1-2+etch1                       Qt 4 SQL database module
ii  python-qt4                       4.0.1-5                             Python bindings for Qt4
ii  python-qt4-dev                   4.0.1-5                             Development files for PyQt4
ii  qt4-designer                     4.2.1-2+etch1                       Qt 4 Designer
ii  qt4-dev-tools                    4.2.1-2+etch1                       Qt 4 development tools
ii  qt4-doc                          4.2.1-2+etch1                       Qt 4 API documentation
ii  qt4-qtconfig                     4.2.1-2+etch1                       Qt 4 configuration tool

And when following the instructions at: http://doc.mimec.org/webissues/client/install_linux.html

I get the following results:

clifford@clifford-laptop:(svn)~/Development/Other/webissues[trunk:263]client$ ./configure
Testing for qmake...
Using /usr/bin/qmake-qt4 (Qt 4.2.1)
Writing configuration file...
Generating Makefiles...
Reading /home/clifford/Development/Other/webissues/client/src/src.pro

Configure finished. Run 'make' now.

clifford@clifford-laptop:(svn)~/Development/Other/webissues[trunk:263]client$ make
cd src && make -f Makefile
[*** edited to leave only the relevant part ***]
g++ -c -pipe -O2 -D_REENTRANT -Wall -W  -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Irelease -I. -o release/settingsdialog.o dialogs/settingsdialog.cpp
dialogs/settingsdialog.cpp: In constructor ‘WebIssues::SettingsDialog::SettingsDialog(QWidget*)’:
dialogs/settingsdialog.cpp:218: error: ‘HttpProxy’ is not a member of ‘QNetworkProxy’
dialogs/settingsdialog.cpp: In member function ‘bool WebIssues::SettingsDialog::apply()’:
dialogs/settingsdialog.cpp:269: error: ‘HttpProxy’ is not a member of ‘QNetworkProxy’
make[1]: *** [release/settingsdialog.o] Error 1
make[1]: Leaving directory `/home/clifford/Development/Other/webissues/client/src'
make: *** [sub-src-make_default] Error 2

Sorry for the long post, but there a quite a few errors in there... and hopefully someone else knows/needs this info...

I have installed the server, and managed to use the windows client (vmware++) and I'm loving it... :)

Hmm... looks like HttpProxy is supported since Qt 4.3. Unfortunately the docs didn't mention it. I'll fix it asap. Thanks for the info :).


OK, it's fixed now in SVN. Could you please test if there are any other errors?


clifford@clifford-laptop:(svn)~/localdev/Development/Other/webissues[trunk:268]client$ make
[*** Removed stuff belived to be irelavent ***]
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Irelease -I. -o release/searcheditbox.o widgets/searcheditbox.cpp
widgets/searcheditbox.cpp: In member function ‘virtual void WebIssues::SearchEditBox::paintEvent(QPaintEvent*)’:
widgets/searcheditbox.cpp:120: error: ‘initStyleOption’ was not declared in this scope
make[1]: *** [release/searcheditbox.o] Error 1
make[1]: Leaving directory `/home/clifford/localdev/Development/Other/webissues/client/src'
make: *** [sub-src-make_default] Error 2


Clifford W. Hansen

OK, fixed.

I hope there are no more errors, otherwise I will have to install Qt 4.1 to be able to find them all :).


Dude, you rock!!!

Sorry got carried away... :D

PS. it seems to work faster than the windows client... ;)

Thank you,

Clifford W. Hansen