[Interest] Using Qt internals, linker errors

Thiago Macieira thiago.macieira at intel.com
Wed Mar 18 12:19:47 CET 2015


On Wednesday 18 March 2015 11:59:25 Thomas Sevaldrud wrote:
> Hi, I am trying to use QSGDistanceFieldGlyphNode from the quick-private
> module. I have
> 
> QT += qml quick widgets quick-private gui-private core-private qml-private
> 
> 
> in my .pro-file, and everything compiles, but during linking I get
> unresolved symbols related to the QSGDistanceFieldGlyphNode class
> 
> shapedtextitem.obj:-1: error: LNK2019: unresolved external symbol "public:
> __thiscall QSGDistanceFieldGlyphNode::QSGDistanceFieldGlyphNode(class
> QSGRenderContext *)"
> (??0QSGDistanceFieldGlyphNode@@QAE at PAVQSGRenderContext@@@Z)
> referenced in function "protected: virtual class QSGNode * __thiscall
> ShapedTextItem::updatePaintNode(class QSGNode *,struct
> QQuickItem::UpdatePaintNodeData *)" (?updatePaintNode at ShapedTextItem
> @@MAEPAVQSGNode@@PAV2 at PAUUpdatePaintNodeData@QQuickItem@@@Z)
> 
> Do i need to link specifically to some library, or am I missing some
> modules here?

None of those.

The class is not exported.

You'll need to edit the source code for that class and add QT_QUICK_EXPORT to 
src/quick/scenegraph/qsgdistancefieldglyphnode_p.h, then recompile the library.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list