We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-01-25 11:28:57 +0200

ApB gravatar image

Compiling a plugin on the SDK.

More specifically This. It is a terminal plugin that i want to use for something i am tryng to make.

I added the plugin as a directory in my project. I tried adding dev packages added private stuff in QT += etc but i cant get it to compile. It gets stuck on this file and more specifically on the qsg stuff (include on top).

Any tips on how to proceed with this would be greatly appreciated. On the desktop it compiles fine in case it makes a difference.

Compiling a plugin on the SDK.

More specifically This. It is a terminal plugin that i want to use for something i am tryng to make.

I added the plugin as a directory in my project. I tried adding dev packages added private stuff in QT += etc but i cant get it to compile. It gets stuck on this file and more specifically on the qsg stuff (include on top).

Any tips on how to proceed with this would be greatly appreciated. On the desktop it compiles fine in case it makes a difference.

Update: Tried to compile it in a directory -like i would on my desktop- by sshing into the emulator. After i installed gcc make and some other stuff still no go.

i get:

    enter code hereplugin/mono_text.cpp: In member function 'void MonoSGNode::setLatinText(const QString&, const QFont&, const QColor&)':
plugin/mono_text.cpp:81:82: error: no matching function for call to 'QSGContext::createGlyphNode(QSGRenderContext*&, bool)'
         QSGGlyphNode *node = sgr->sceneGraphContext()->createGlyphNode(sgr, false);
                                                                                  ^
plugin/mono_text.cpp:81:82: note: candidate is:
In file included from /usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgrenderer_p.h:56:0,
                 from plugin/mono_text.cpp:27:
/usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgcontext_p.h:174:27: note: virtual QSGGlyphNode* QSGContext::createGlyphNode(QSGRenderContext*)
     virtual QSGGlyphNode *createGlyphNode(QSGRenderContext *rc);
                           ^
/usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgcontext_p.h:174:27: note:   candidate expects 1 argument, 2 provided
plugin/mono_text.cpp: In member function 'void MonoSGNode::setUnicodeText(const QString&, const QFont&, const QColor&)':
plugin/mono_text.cpp:113:86: error: no matching function for call to 'QSGContext::createGlyphNode(QSGRenderContext*&, bool)'
             QSGGlyphNode *node = sgr->sceneGraphContext()->createGlyphNode(sgr, false);
                                                                                      ^
plugin/mono_text.cpp:113:86: note: candidate is:
In file included from /usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgrenderer_p.h:56:0,
                 from plugin/mono_text.cpp:27:
/usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgcontext_p.h:174:27: note: virtual QSGGlyphNode* QSGContext::createGlyphNode(QSGRenderContext*)
     virtual QSGGlyphNode *createGlyphNode(QSGRenderContext *rc);
                           ^
/usr/include/qt5/QtQuick/5.2.2/QtQuick/private/qsgcontext_p.h:174:27: note:   candidate expects 1 argument, 2 provided
make[2]: *** [.obj/mono_text.o] Error 1
make[2]: Leaving directory `/home/nemo/Code/yat/qml/Yat'
make[1]: *** [sub-Yat-make_first] Error 2
make[1]: Leaving directory `/home/nemo/Code/yat/qml'
make: *** [sub-qml-make_first-ordered] Error 2

:/