[vtkusers] Building VTK on Linux
Gib Bogle
g.bogle at auckland.ac.nz
Sun Sep 5 02:27:00 EDT 2010
I have installed the Qt 4.6.3 SDK and VTK-5.6.0 on Ubuntu 10.04.
Building VTK, the make proceeds quite far (QVTKWidgetPlugin is built)
but fails when trying to make QVTKCxxTests, because libraries needed
by libQtWebKit.so are not found. The messages are below. In fact I
believe the missing libraries are probably there. What I find
confusing is that there are two different versions of these libraries.
For example, there is
qtsdk-2010.04/lib/libphonon.so.4 (460.8 KB)
and also
qtsdk-2010.04/qt/lib/libphonon.so.4 (4.2 MB)
What should I do to resolve this? What does the suggestion about -rpath mean?
Thanks...
Here are the make errors:
/usr/bin/ld: warning: libphonon.so.4, needed by
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so, not found (try using
-rpath or -rpath-link)
/usr/bin/ld: warning: libQtDBus.so.4, needed by
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so, not found (try using
-rpath or -rpath-link)
/usr/bin/ld: warning: libQtXml.so.4, needed by
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so, not found (try using
-rpath or -rpath-link)
/usr/bin/ld: warning: libQtXmlPatterns.so.4, needed by
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so, not found (try using
-rpath or -rpath-link)
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractUriResolver::metaObject() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::errorType() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::bindVariable(QString const&, QXmlItem const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`typeinfo for QAbstractMessageHandler'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaSource::MediaSource(QUrl const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::pause()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::setMessageHandler(QAbstractMessageHandler*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QSourceLocation::line() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractMessageHandler::qt_metacast(char const*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::VideoWidget::VideoWidget(QWidget*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractMessageHandler::QAbstractMessageHandler(QObject*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::AudioOutput::AudioOutput(QObject*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractMessageHandler::qt_metacall(QMetaObject::Call, int, void**)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::currentTime() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractUriResolver::qt_metacast(char const*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::evaluateTo(QIODevice*) const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractMessageHandler::~QAbstractMessageHandler()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlItem::QXmlItem(QVariant const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`typeinfo for QAbstractUriResolver'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::setUriResolver(QAbstractUriResolver const*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::setQuery(QIODevice*, QUrl const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractMessageHandler::metaObject() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::state() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::seek(long long)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::isSeekable() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::createPath(Phonon::MediaNode*, Phonon::MediaNode*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::hasVideo() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::setCurrentSource(Phonon::MediaSource const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::~QXmlQuery()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::QXmlQuery(QXmlQuery::QueryLanguage, QXmlNamePool const&)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractUriResolver::~QAbstractUriResolver()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlNamePool::~QXmlNamePool()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlItem::~QXmlItem()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QSourceLocation::uri() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::AudioOutput::setMuted(bool)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::play()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlQuery::setFocus(QIODevice*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::totalTime() const'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QXmlNamePool::QXmlNamePool()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::AudioOutput::setVolume(double)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::Path::~Path()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractUriResolver::QAbstractUriResolver(QObject*)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaSource::~MediaSource()'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`QAbstractUriResolver::qt_metacall(QMetaObject::Call, int, void**)'
/home/gib/qtsdk-2010.04/qt/lib/libQtWebKit.so: undefined reference to
`Phonon::MediaObject::MediaObject(QObject*)'
collect2: ld returned 1 exit status
make[2]: *** [bin/QVTKCxxTests] Error 1
make[1]: ***
[GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/all] Error 2
make: *** [all] Error 2
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the vtkusers
mailing list