Well, I try that before, but since there are too much dependencies I need to build, so I give up.
But I did the following, with qt4.2 installed (with yum), I try to compile qt4.5.x from source, but even with that, I still fail to compile bat. And then I yum erase qt4.2 and recompile qt4.5.x again, it works now. Thanks your hint anyway. on 2/7/2009 21:03:27, Matthias Reif <mattr...@spseed.com.au> wrote: Re: [Bacula-users] Cannot compile bat!? Help > > Try installing the following RPMs: > > <ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-4.4.3-10_4.el5.i386.rpm>ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-4.4.3-10_4.el5.i386.rpm > <ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-devel-4.4.3-10_4.el5.i386.rpm>ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-devel-4.4.3-10_4.el5.i386.rpm > <ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-x11-4.4.3-10_4.el5.i386.rpm>ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/qt44-x11-4.4.3-10_4.el5.i386.rpm > > QTDIR then needs to be set to /usr/lib/qt44/, because the above RPMS install > QT 4.4 alongside the CentOS supplied QT 4.2. > > If you are building bat from the source RPM you will need to modify the > bacula.spec, so that the resulting bat RPM depends on the qt44 and not qt4 > packages. > > Sorry if this is a bit vague, but it has been a while since I built bat on a > Centos 5 system. Let me know how you go. > > Thanks > Matthias > > > ginzzer <ginz...@gmail.com> wrote on 03/07/2009 02:42:54 AM: > > > Hi there, > > I have read a thread before about compling the bat in CentOS5, in which, > > the guy got the following warning during compilation > > > > ui/ui_main.h: In member function a€?void Ui_MainForm:: > > setupUi(QMainWindow*)a€?: > > ui/ui_main.h:168: error: a€?class QGridLayouta€? has no member named > > a€?setLeftMargina€? > > ui/ui_main.h:169: error: a€?class QGridLayouta€? has no member named > > a€?setTopMargina€? > > ui/ui_main.h:170: error: a€?class QGridLayouta€? has no member named > > a€?setRightMargina€? > > ui/ui_main.h:171: error: a€?class QGridLayouta€? has no member named > > a€?setBottomMargina€? > > ui/ui_main.h:172: error: a€?class QGridLayouta€? has no member named > > a€?setHorizontalSpacinga€? > > ui/ui_main.h:173: error: a€?class QGridLayouta€? has no member named > > a€?setVerticalSpacinga€? > > ui/ui_main.h:224: error: a€?class QGridLayouta€? has no member named > > a€?setLeftMargina€? > > ui/ui_main.h:225: error: a€?class QGridLayouta€? has no member named > > a€?setTopMargina€? > > ui/ui_main.h:226: error: a€?class QGridLayouta€? has no member named > > a€?setRightMargina€? > > ui/ui_main.h:227: error: a€?class QGridLayouta€? has no member named > > a€?setBottomMargina€? > > ui/ui_main.h:228: error: a€?class QGridLayouta€? has no member named > > a€?setHorizontalSpacinga€? > > ui/ui_main.h:229: error: a€?class QGridLayouta€? has no member named > > a€?setVerticalSpacinga€? > > ui/ui_main.h:255: error: a€?class QGridLayouta€? has no member named > > a€?setLeftMargina€? > > ui/ui_main.h:256: error: a€?class QGridLayouta€? has no member named > > a€?setTopMargina€? > > ui/ui_main.h:257: error: a€?class QGridLayouta€? has no member named > > a€?setRightMargina€? > > ui/ui_main.h:258: error: a€?class QGridLayouta€? has no member named > > a€?setBottomMargina€? > > ui/ui_main.h:259: error: a€?class QGridLayouta€? has no member named > > a€?setHorizontalSpacinga€? > > ui/ui_main.h:260: error: a€?class QGridLayouta€? has no member named > > a€?setVerticalSpacinga€? > > > > and one person said he solved the problem by update qt to 4.3.x or above. > > Well, my current version of qt is 4.2.x and I just download the 4.5.2 at > > <http://get.qtsoftware.com/qt/source/qt-x11-opensource-src-4.5.2.tar.gz>http://get.qtsoftware.com/qt/source/qt-x11-opensource-src-4.5.2.tar.gz > > , > > install it to (as default) /usr/local/Trolltech/Qt-4.5.2, I also set the > > following enviornments > > > > export QTDIR=/usr/local/Trolltech/Qt-4.5.2 > > export PATH=$QTDIR/bin:$PATH > > export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH > > export QTINC=$QTDIR/include > > export QTLIB=$QTDIR/lib > > > > > > But when I recompile the bacual with bat enabled, still get the same > > errors. How to fix it? > > > > Thanks. > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > > <https://lists.sourceforge.net/lists/listinfo/bacula-users>https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > SOUTH PACIFIC SEEDS > PO Box 934, GRIFFITH N.S.W. 2680. AUSTRALIA > Phone: 02 6962 7333 Fax: 02 6964 1311 > ------------------------------------------------------------ > CAUTION: The information contained in this e-mail is privileged and > confidential. If you are reading this message and you are not the intended > recipient, you are hereby notified that any use, dissemination, distribution > or reproduction of all or part of the contents is prohibited. If you receive > this message in error, please notify the sender immediately. Any opinions or > views expressed in this message are those of the individual sender and may > not represent those of their employer. > -- ginzzer <ginz...@gmail.com > ------------------------------------------------------------------------------ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users