Bacula-users

[Bacula-users] Building bacula with bat on CentOS 5, build failure related to QT

2008-07-09 10:05:05
Subject: [Bacula-users] Building bacula with bat on CentOS 5, build failure related to QT
From: Pasi Kärkkäinen <pasik AT iki DOT fi>
To: Bacula-users AT lists.sourceforge DOT net
Date: Wed, 9 Jul 2008 17:04:47 +0300
Hello list!

I'm having some problems building Bacula 2.5.1 on CentOS 5.1 with bat
enabled. I'm pretty sure I had the same problem with Bacula 2.4.x.

I've done this:

# yum install qt4-devel
# rpm -qa|grep -i qt4
qt4-4.2.1-1
qt4-devel-4.2.1-1

And I downloaded and installed qwt-devel-5.0.2-5.el5.i386.rpm and 
qwt-5.0.2-5.el5.i386.rpm
from EPEL.

I also did this:

export PATH="$PATH:/usr/lib/qt4/bin"

because otherwise configure didn't find qmake from /usr/lib/qt4/bin/qmake.

I'm giving configure "--with-qwt=/usr --enable-bat" options in addition to
the other basic options.

ok, so now configure is all ok, but building fails..

g++ -c -pipe -g -D_REENTRANT -Wall -W  -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtCore
-I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtGui
-I/usr/lib/qt4/include -I.. -I. -Iconsole -Irestore -Iselect
-I/usr/include/qwt -Imoc -Iui -o obj/main.o main.cpp

ui/ui_prefs.h: In member function 'void Ui_PrefsForm::setupUi(QDialog*)':
ui/ui_prefs.h:109: error: 'class QGridLayout' has no member named 
'setLeftMargin'
ui/ui_prefs.h:110: error: 'class QGridLayout' has no member named 'setTopMargin'
ui/ui_prefs.h:111: error: 'class QGridLayout' has no member named 
'setRightMargin'
...

and so on..

Does bat require newer QT4 version or? 

-- Pasi

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users