Bacula-users

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

2008-07-09 16:11:14
Subject: Re: [Bacula-users] Building bacula with bat on CentOS 5, build failure related to QT
From: Nils Blanck-Wehde <nils.blanck-wehde AT backofficeservice DOT biz>
Date: Wed, 09 Jul 2008 22:10:49 +0200
Hi!

I built on CentOS 5.0 - 5.2 and building bat failed everytime because 
qmake was not in the PATH by default. After adding the right directory 
(e.g. /usr/lib/QT4/bin - do "locate qmake" to get it right), everything 
worked.
Maybe that's your problem too?

Nils

Pasi Kärkkäinen schrieb:
> 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
>
>
> !DSPAM:4874c597118561969416219!
>
>   

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