I know this problem has been reported before. I have tried most of the
suggested fixes seen on bacula-devel and bacula-users over the last two
weeks and am running out of ideas:
OS: Ubuntu 7.10
Bacula version(s): 2.2.5, 2.2.7, latest svn (as of 31/12/2007)
Installed libraries with anything remotely related to qt & qwt: libqwt4c2,
libqwt5-qt4, libqwt5-qt4-dev, libqwt-dev, depkgs, libqt3-compat-headers,
libqt3-headers, libqt3-mt, libqt3-mt-dev, libqt4-core (4.3.2), libqt4-debug,
libqt4-dev, libqt4-gui, libqt4-qt3support, libqt4-sql, qt3-dev-tools,
qt4-designer, qt4-dev-tools, qt4-qtconfig
Problem: Build bacula with bat. I have tried:
1) ./configure --enable-bat --with-mysql (summary at end says using
'/var/lib -L')
2) ./configure --enable-bat --with-qwt=/**mypathtoqwt** --with-mysql (have
tried the last three depkgs going back to July) (summary at end picks up the
correct depkg/qwt path)
3) made sure I have updated qmake to 4 ( sudo update-alternatives --config
qmake)
Make with second option it finds and builds from depkgs folder but then
later gives the following errors and no build of bat:
In function `JobPlot::byteCheckChanged(int)':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:536:
undefined reference to `QwtPlotItem::attach(QwtPlot*)'
obj/jobplot.o: In function `JobPlot::fileCheckChanged(int)':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:521:
undefined reference to `QwtPlotItem::attach(QwtPlot*)'
obj/jobplot.o: In function `JobPlot::setSymbolType(int, int)':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:503:
undefined reference to `QwtPlotCurve::setSymbol(QwtSymbol const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:507:
undefined reference to `QwtPlotCurve::setSymbol(QwtSymbol const&)'
obj/jobplot.o: In function `JobPlot::setPlotType(QString)':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:435:
undefined reference to
`QwtPlotCurve::setCurveAttribute(QwtPlotCurve::CurveAttribute, bool)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:436:
undefined reference to
`QwtPlotCurve::setCurveAttribute(QwtPlotCurve::CurveAttribute, bool)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:441:
undefined reference to
`QwtPlotCurve::setCurveAttribute(QwtPlotCurve::CurveAttribute, bool)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:442:
undefined reference to
`QwtPlotCurve::setCurveAttribute(QwtPlotCurve::CurveAttribute, bool)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:448:
undefined reference to `QwtPlotCurve::setStyle(QwtPlotCurve::CurveStyle)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:449:
undefined reference to `QwtPlotCurve::setStyle(QwtPlotCurve::CurveStyle)'
obj/jobplot.o: In function `JobPlot::addCurve()':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:358:
undefined reference to `QwtLegend::QwtLegend(QWidget*)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:358:
undefined reference to `QwtPlot::insertLegend(QwtLegend*,
QwtPlot::LegendPosition, double)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:368:
undefined reference to `QwtPlotCurve::QwtPlotCurve(QString const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:369:
undefined reference to `QwtPlotCurve::setPen(QPen const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:370:
undefined reference to `QwtPlotCurve::setCurveType(QwtPlotCurve::CurveType)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:371:
undefined reference to `QwtPlotItem::setYAxis(int)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:373:
undefined reference to `QwtPlotCurve::QwtPlotCurve(QString const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:374:
undefined reference to `QwtPlotCurve::setPen(QPen const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:375:
undefined reference to `QwtPlotCurve::setCurveType(QwtPlotCurve::CurveType)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:376:
undefined reference to `QwtPlotItem::setYAxis(int)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:381:
undefined reference to `QwtPlotItem::attach(QwtPlot*)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:382:
undefined reference to `QwtPlotItem::attach(QwtPlot*)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:399:
undefined reference to `QwtPlotCurve::setData(double const*, double const*,
int)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:400:
undefined reference to `QwtPlotCurve::setData(double const*, double const*,
int)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:414:
undefined reference to `QwtPlotMarker::QwtPlotMarker()'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:415:
undefined reference to `QwtText::QwtText(QString const&,
QwtText::TextFormat)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:415:
undefined reference to `QwtPlotMarker::setLabel(QwtText const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:416:
undefined reference to
`QwtPlotMarker::setLabelAlignment(QFlags<Qt::AlignmentFlag>)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:417:
undefined reference to
`QwtPlotMarker::setLineStyle(QwtPlotMarker::LineStyle)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:420:
undefined reference to `QwtPlotMarker::setLinePen(QPen const&)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:421:
undefined reference to `QwtPlotMarker::setXValue(double)'
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:422:
undefined reference to `QwtPlotItem::attach(QwtPlot*)'
obj/jobplot.o: In function `JobPlot::setupUserInterface()':
/home/peter/Desktop/temp/bacula/src/qt-console/jobgraphs/jobplot.cpp:337:
undefined reference to `QwtPlot::QwtPlot(QWidget*)'
obj/jobplot.o: In function `QwtPlotItem::detach()':
/home/kern/bacula/depkgs-qt/qwt/include/qwt_plot_item.h:64: undefined
reference to `QwtPlotItem::attach(QwtPlot*)'
obj/jobplot.o: In function `DateTimeScaleDraw::label(double) const':
/home/peter/Desktop/temp/bacula/src/qt-console/./jobgraphs/jobplot.h:94:
undefined reference to `QwtText::QwtText(QString const&,
QwtText::TextFormat)'
obj/jobplot.o:(.rodata._ZTV17DateTimeScaleDraw[vtable for
DateTimeScaleDraw]+0x10): undefined reference to
`QwtAbstractScaleDraw::draw(QPainter*, QPalette const&) const'
obj/jobplot.o:(.rodata._ZTV17DateTimeScaleDraw[vtable for
DateTimeScaleDraw]+0x18): undefined reference to `QwtScaleDraw::extent(QPen
const&, QFont const&) const'
collect2: ld returned 1 exit status
make[1]: *** [bat] Error 1
make[1]: Leaving directory `/home/peter/Desktop/temp/bacula/src/qt-console'
I haven't tried hacking bat.pro or symlinking yet as a) feel there could be
another solution (library conflict?) b) I am new to linux as of 2 months ago
and although I have learnt a bunch in the last couple of weeks, I'm not keen
to go there yet.
If there is a solution already posted or if this is best posted in
bacula-devel then I apologise ahead of time. Otherwise any help is
appreciated and I will gladly supply any further information needed.
Peter.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users