Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined reference to `QQuickTextDocumentWithImageResources...
QtWS25 Last Chance

Undefined reference to `QQuickTextDocumentWithImageResources...

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 885 Views
  • 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 Offline
    Q Offline
    qtJoe
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved