Bacula-users

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

2008-07-10 04:37:22
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: John Drescher <drescherjm AT gmail DOT com>
Date: Thu, 10 Jul 2008 11:36:54 +0300
On Wed, Jul 09, 2008 at 10:47:55AM -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'
> > ...
> >
> > and so on..
> >
> > Does bat require newer QT4 version or?
> >
> Your problem is qt4-devel-4.2.1-1
> 
> You need at least 4.3 headers.
> 
> http://www.qtcentre.org/forum/archive/index.php/t-12945.html
> 

Hmm.. so basicly bat is not compatible with centos5/rhel5 anymore.

Do you know if there are QT 4.3 rpm's for RHEL5/CentOS5 somewhere? 

With fast googling I found these:

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

Any idea if those are safe/working? 

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