Bacula-users

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

2008-07-10 04:48:47
Subject: Re: [Bacula-users] Building bacula with bat on CentOS 5, build failure related to QT
From: Ulrich Leodolter <ulrich.leodolter AT obvsg DOT at>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 10 Jul 2008 10:48:33 +0200
On Wed, 2008-07-09 at 10:47 -0400, John Drescher wrote:
> On Wed, Jul 9, 2008 at 10:04 AM, Pasi Kärkkäinen <pasik AT iki DOT fi> wrote:
> > 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'
> > ...
> >

i have reported this problem some time ago on the bacula-devel list.
the set{Left,Top,Right,Bottom}Margin can be replaced by setMargin,
see my diffs in the attachment. 

> > and so on..
> >
> > Does bat require newer QT4 version or?
> >
> Your problem is qt4-devel-4.2.1-1
> 

centos (rhel5) will probably never have a new qt version till end of
life (2014).
nevertheless i would be nice when bat builds on standard centos 5.x.


ulrich

> You need at least 4.3 headers.
> 
> http://www.qtcentre.org/forum/archive/index.php/t-12945.html
> 
> John
> 
> -------------------------------------------------------------------------
> 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
> 
-- 
Ulrich Leodolter <ulrich.leodolter AT obvsg DOT at>
Oesterreichische Bibliothekenverbund und Service GmbH
Bruennlbadgasse 17/2A, A-1090 Wien
Fax +43 1 4035158-30
Tel +43 1 4035158-21
Web http://www.obvsg.at

Attachment: centos5.1-qt4-4.2.1-1-ui.diff
Description: Text Data

-------------------------------------------------------------------------
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