PDA

View Full Version : Problem to compile KDChart



paolini
4th December 2010, 18:13
Hi, I am trying to compile the KDChart in Linux (Debian Lenny), but I am getting the following error


g++ -o WidgetSimple .obj/main.o -L/usr/lib -L../../../lib -lkdchart -ltesttools -lQtSvg -lQtGui -lQtCore -lpthread
.obj/main.o: In function `main':
main.cpp:(.text+0x47): undefined reference to `KDChart::Widget::Widget(QWidget*)'
main.cpp:(.text+0x5d): undefined reference to `KDChart::Widget::Widget(QWidget*)'
main.cpp:(.text+0x48c): undefined reference to `KDChart::Widget::setDataset(int, QVector<double> const&, QString const&)'
main.cpp:(.text+0x4d8): undefined reference to `KDChart::Widget::setDataset(int, QVector<double> const&, QString const&)'
main.cpp:(.text+0x521): undefined reference to `KDChart::Widget::setDataset(int, QVector<double> const&, QString const&)'
main.cpp:(.text+0x56a): undefined reference to `KDChart::Widget::setDataset(int, QVector<double> const&, QString const&)'
main.cpp:(.text+0x5e9): undefined reference to `KDChart::Widget::~Widget()'
main.cpp:(.text+0x5f7): undefined reference to `KDChart::Widget::~Widget()'
main.cpp:(.text+0x6d0): undefined reference to `KDChart::Widget::~Widget()'
main.cpp:(.text+0x6de): undefined reference to `KDChart::Widget::~Widget()'
collect2: ld returned 1 exit status
make[3]: ** [WidgetSimple] Erro 1

My LD_LIBRARY_PATH is pointing to the root of the kdchart directory.
I was able to compile KDChart in Debian testing, but not in the Unstable version.

Someone has any idea about how to solve this issue?
Thanks