<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Remember to use the harbour validation tool :)!<br><br>Von meinem iPad gesendet</div><div><br>Am 1.12.2014 um 22.33 schrieb Peter Pykäläinen <<a href="mailto:peter.pykalainen@gmail.com">peter.pykalainen@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div>Hi,<br><br></div>yes I did, thank you all for your help.<br></div>Especially Andrey, you are the man!<br><br></div>Let's see now if this passes harbour QA or not :)<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>// Peter Pykäläinen</div></div>
<br><div class="gmail_quote">On 1 December 2014 at 22:30, Gabriel Böhme <span dir="ltr"><<a href="mailto:m.gabrielboehme@googlemail.com" target="_blank">m.gabrielboehme@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you tried cleaning the project? Helps sometimes.<br>
<br>
Am Mon Dec 01 2014 21:18:17 GMT+0100 (CET) schrieb Peter Pykäläinen:<br>
<div><div class="h5">> I give up!<br>
><br>
> Once I figured out how to add the stupid haptics stuff into the .pro file I<br>
> then get errors on my main when I try to compile:<br>
><br>
> error: undefined reference to `SailfishApp::application(int&, char**)'<br>
> error: undefined reference to `SailfishApp::createView()'<br>
> error: undefined reference to `SailfishApp::pathTo(QString const&)'<br>
><br>
> I have used this kind of code succesfully in my other app and no issue<br>
> there.<br>
><br>
> Any help would be much appreciated.<br>
><br>
> My main looks like this:<br>
><br>
> #ifdef QT_QML_DEBUG<br>
><br>
> #include <QtQuick><br>
><br>
> #endif<br>
><br>
><br>
> #include <sailfishapp.h><br>
><br>
> #include <rumbler.h><br>
><br>
> #include <QQuickView><br>
><br>
> #include <QQmlContext><br>
><br>
> #include <QGuiApplication><br>
><br>
><br>
><br>
> int main(int argc, char *argv[])<br>
><br>
> {<br>
><br>
>     // SailfishApp::main() will display "qml/template.qml", if you need more<br>
><br>
>     // control over initialization, you can use:<br>
><br>
>     //<br>
><br>
>     //   - SailfishApp::application(int, char *[]) to get the QGuiApplication *<br>
><br>
>     //   - SailfishApp::createView() to get a new QQuickView * instance<br>
><br>
>     //   - SailfishApp::pathTo(QString) to get a QUrl to a resource file<br>
><br>
>     //<br>
><br>
>     // To display the view, call "show()" (will show fullscreen on device).<br>
><br>
><br>
> //    return SailfishApp::main(argc, argv);<br>
><br>
>     QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));<br>
><br>
>     QScopedPointer<QQuickView> view(SailfishApp::createView());<br>
><br>
><br>
>     Rumbler rumbler;<br>
><br>
><br>
>     view->rootContext()->setContextProperty("Rumbler", &rumbler);<br>
><br>
>     view->setSource(SailfishApp::pathTo("qml/harbour-myapp.qml"));<br>
><br>
>     view->show();<br>
><br>
>     view->showFullScreen();<br>
><br>
><br>
>     return app->exec();<br>
><br>
> }<br>
><br>
><br>
><br>
><br>
><br>
> // Peter Pykäläinen<br>
><br>
> On 1 December 2014 at 15:08, Andrey Kozhevnikov <<a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a>><br>
> wrote:<br>
><br>
> >  I can suggest you to use QtFeedback from Qt side and register QML type.<br>
> ><br>
> > 01.12.2014 18:06, Peter Pykäläinen пишет:<br>
> ><br>
> >   Just got my game rejected in Jolla Harbour this morning due to:<br>
> ><br>
> ><br>
</div></div>> > *Import 'QtFeedback 5.0' is not allowed *<br>
<span class="im HOEnZb">> > Is it really so that vibration is not allowed in Harbour apps?<br>
> >  Is there any alternative?<br>
> ><br>
> > // Peter Pykäläinen<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > <a href="http://SailfishOS.org">SailfishOS.org</a> Devel mailing list<br>
> > To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > <a href="http://SailfishOS.org">SailfishOS.org</a> Devel mailing list<br>
> > To unsubscribe, please send a mail to<br>
> > <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
> ><br>
><br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Gesendet von meinem Jolla<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
<a href="http://SailfishOS.org">SailfishOS.org</a> Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></div></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span><a href="http://SailfishOS.org">SailfishOS.org</a> Devel mailing list</span><br><span>To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></span></div></blockquote></body></html>