[Kst] link step failing with qmake
Nadine Leenders
nadine.leenders at ualberta.ca
Wed May 18 01:11:31 CEST 2011
Hi All,
I'm attempting to build kst with qmake (./build-kst) on a machine running SUSE 10.2 and am running into some troubles.
I've set QTDIR as per the instructions in INSTALL.qmake:
# echo $QTDIR
/usr/local/Trolltech/Qt-4.7.3
But after doing a grep -r, I'm quite sure the only places this variable happens is in documentation.
I've set every INCLUDE variable that I thought might be used:
# printenv | grep INCLUDE
CPLUS_INCLUDE_PATH=/usr/local/Trolltech/Qt-4.7.3/include/QtSvg
OBJC_INCLUDE_PATH=/usr/local/Trolltech/Qt-4.7.3/include/QtSvg
INCLUDE_PATH=/usr/local/Trolltech/Qt-4.7.3/include/QtSvg
C_INCLUDE_PATH=/usr/local/Trolltech/Qt-4.7.3/include/QtSvg
The only other change I've made from the distributed kst 2.0.3 is in kst.pri where the CONFIG line is now:
CONFIG += warn_on staticlib qt
I added "staticlib" to avoid a problem with a -fPIC error. I also added the qt option thinking it might help with my current issue.
My problem, when I do
./build-kst
it is failing with:
linking ../../build/bin/kst2
/data1/admin/kst/kst-2.0.3/build/src/kst/../../build/lib/libkst2app.a(svgitem.o): In function `Kst::SvgItem::setSvgData(QByteArray const&)':
../../../src/libkstapp/svgitem.cpp:69: undefined reference to `QSvgRenderer::load(QByteArray const&)'
/data1/admin/kst/kst-2.0.3/build/src/kst/../../build/lib/libkst2app.a(svgitem.o): In function `Kst::SvgItem::paint(QPainter*)':
../../../src/libkstapp/svgitem.cpp:50: undefined reference to `QSvgRenderer::isValid() const'
../../../src/libkstapp/svgitem.cpp:51: undefined reference to `QSvgRenderer::render(QPainter*, QRectF const&)'
/data1/admin/kst/kst-2.0.3/build/src/kst/../../build/lib/libkst2app.a(svgitem.o): In function `SvgItem':
../../../src/libkstapp/svgitem.cpp:28: undefined reference to `QSvgRenderer::QSvgRenderer(QString const&, QObject*)'
../../../src/libkstapp/svgitem.cpp:36: undefined reference to `QSvgRenderer::QSvgRenderer(QObject*)'
../../../src/libkstapp/svgitem.cpp:28: undefined reference to `QSvgRenderer::QSvgRenderer(QString const&, QObject*)'
../../../src/libkstapp/svgitem.cpp:36: undefined reference to `QSvgRenderer::QSvgRenderer(QObject*)'
/data1/admin/kst/kst-2.0.3/build/src/kst/../../build/lib/libkst2app.a(view.o): In function `Kst::View::setUseOpenGL(bool)':
../../../src/libkstapp/view.cpp:130: undefined reference to `QGLWidget::QGLWidget(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'
/data1/admin/kst/kst-2.0.3/build/src/kst/../../build/lib/libkst2app.a(view.o): In function `Kst::View::init()':
../../../src/libkstapp/view.cpp:85: undefined reference to `QGLWidget::QGLWidget(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'
collect2: ld returned 1 exit status
make[1]: *** [../../build/bin/kst2] Error 1
make[1]: Leaving directory `/data1/admin/kst/kst-2.0.3/build/src/kst'
make: *** [sub-src-kst-make_default-ordered] Error 2
Can someone tell me what I need to do differently?
Thanks!
- Nadine
Nadine Leenders
HPC System Administrator, Research Support
Academic Information and Communication Technologies
University of Alberta
More information about the Kst
mailing list