Bacula-users

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

2008-07-10 05:14:08
Subject: Re: [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: Ulrich Leodolter <ulrich.leodolter AT obvsg DOT at>
Date: Thu, 10 Jul 2008 12:13:22 +0300
On Thu, Jul 10, 2008 at 10:48:33AM +0200, Ulrich Leodolter wrote:
> 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. 
> 

Thanks for the patch! 

Always better when there's no need to install 3rd party rpm's for building
software.

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

Yep.. that's true. Your patch solves the problem.. the other option is to
install QT 4.3.

I found these QT4.3 EL5 rpm's for CentOS 5.x:

http://rpm.pbone.net/index.php3/stat/4/idpl/6806872/com/qt43-4.3.4-1.el5.pp.i386.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/6831747/com/qt43-devel-4.3.4-1.el5.pp.i386.rpm.html

After installing those Bacula with bat builds fine on CentOS 5.
 
-- Pasi

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