Bacula-users

[Bacula-users] Cannot compile bat!? Help

2009-07-02 12:53:32
Subject: [Bacula-users] Cannot compile bat!? Help
From: ginzzer <ginzzer AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 02 Jul 2009 11:42:54 -0500
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 , 
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users