Undefined reference to `QQuickTextDocumentWithImageResources...



  • ABANDONED: Giving up smooth scrolling in qml for the mature functionality of C++ widgets.

    From qt5.2 source, I have taken customized versions of: qquicktextdocument qquicktextedit qquicktextnode and qquicktextnodenginge, their headers and source. I created a C++ library project with these files and compiled them into a shared library called libsubLib.so.

    I now have a different project that is to use that library I made. When I try to compile this project I get:

    @libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::QQuickTextDocumentWithImageResources(QQuickItem*)' libsubLib.so:-1: error: undefined reference toQQuickTextDocumentWithImageResources::staticMetaObject'
    libsubLib.so:-1: error: undefined reference to QQuickTextUtil::createCursor(QQmlComponent*, QQuickItem*, QRectF const&, char const*)' libsubLib.so:-1: error: undefined reference toQQuickTextUtil::alignedX(double, double, int)'
    libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::image(QTextImageFormat const&)' libsubLib.so:-1: error: undefined reference toQQuickImplicitSizeItemPrivate::implicitHeightChanged()'
    libsubLib.so:-1: error: undefined reference to QQuickTextUtil::alignedY(double, double, int)' libsubLib.so:-1: error: undefined reference toQQuickTextDocumentWithImageResources::clearResources()'
    libsubLib.so:-1: error: undefined reference to QQuickImplicitSizeItemPrivate::implicitWidthChanged()' ibsubLib.so:-1: error: undefined reference tovtable for QQuickImplicitSizeItemPrivate'
    libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::setBaseUrl(QUrl const&, bool)' libsubLib.so:-1: error: undefined reference totypeinfo for QQuickImplicitSizeItemPrivate'
    :-1: error: collect2: error: ld returned 1 exit status@

    (I removed the full paths)

    I'm a long time web scripter, but I'm a C++/Qt newb, my guess is that I am not linking to the .so file which contains those functions.

    I'm pretty in over my head right now, but perhaps this is a simple fix and I just don't know it. If you know how to help compile this, it would be much appreciated.

    I realize I have left out a lot of details, I can provide them, I just didn't want to post a wall of text.

    Thank You.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.