Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Undefined reference to `QQuickTextDocumentWithImageResources...

    General and Desktop
    1
    1
    816
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      qtJoe last edited by

      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 to QQuickTextDocumentWithImageResources::staticMetaObject'
      libsubLib.so:-1: error: undefined reference to QQuickTextUtil::createCursor(QQmlComponent*, QQuickItem*, QRectF const&, char const*)' libsubLib.so:-1: error: undefined reference to QQuickTextUtil::alignedX(double, double, int)'
      libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::image(QTextImageFormat const&)' libsubLib.so:-1: error: undefined reference to QQuickImplicitSizeItemPrivate::implicitHeightChanged()'
      libsubLib.so:-1: error: undefined reference to QQuickTextUtil::alignedY(double, double, int)' libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::clearResources()'
      libsubLib.so:-1: error: undefined reference to QQuickImplicitSizeItemPrivate::implicitWidthChanged()' ibsubLib.so:-1: error: undefined reference to vtable for QQuickImplicitSizeItemPrivate'
      libsubLib.so:-1: error: undefined reference to QQuickTextDocumentWithImageResources::setBaseUrl(QUrl const&, bool)' libsubLib.so:-1: error: undefined reference to typeinfo 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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post