<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Antonio,<br>
<br>
The files which are installed by an rpm package are listed in the %files directive of the .spec file.<br>
So, merely adding files to the .pro (eg in OTHER_FILES) variables of the qmake project, and installing via INSTALLS, is not enough.  You also need to ensure that your .spec (or, if you generate your .spec from a .yaml, then the .yaml) file has the files listed
 appropriately.<br>
<br>
eg:<br>
<br>
example.pro contains:<br>
// lines up here with target (lib or exe) information, build switches, etc<br>
OTHER_FILES += MyQmlType.qml<br>
import.files += MyQmlType.qml<br>
import.path = /path/to/import/dir<br>
INSTALLS += import<br>
<br>
%files<br>
/path/to/import/dir/MyQmlType.qml<br>
<br>
Note that harbour rules no doubt require some specific application-specific import directory to be defined and used by your app.<br>
<br>
Kind regards,<br>
Chris.<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF309861"><font color="#000000" face="Tahoma" size="2"><b>From:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] on behalf of Antonio Mancini [ziobilly94@gmail.com]<br>
<b>Sent:</b> Saturday, March 07, 2015 2:26 AM<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> Re: [SailfishDevel] Main qml file not found when Deploying<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>I tried but i still can't build, i can create an rpm but it seems that the rpm doesn't copy the files on the device while installing.<br>
</div>
I also tried installing previous version of SDK but it didn't work.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-06 15:47 GMT+01:00 Andrey Kozhevnikov <span dir="ltr">
<<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div bgcolor="#FFFFFF">Compiled and build project to rpm with no problems . Clean your build folder and do a fresh build.<br>
<br>
<div>06.03.2015 01:03, Antonio Mancini пишет:<br>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_quote">This is the link to the .pro file on github<br>
<br>
<a href="https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro" target="_blank">https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro</a><br>
<br>
Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive:<br>
<div>
<div>> show your pro file/link to github project.<br>
><br>
> 05.03.2015 00:15, Antonio Mancini пишет:<br>
> > When deploying my application as an RPM package i have this error:<br>
> ><br>
> > [W] contextFactory:108 - Could not create scene graph context for<br>
> > device 'customcontext' - check that plugins are installed correctly in<br>
> > /usr/lib/qt5/plugins<br>
> ><br>
> > [D]<br>
> > QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62<br>
> > - Using Wayland-EGL<br>
> ><br>
> > [W] unknown:-1 - <a>file:///usr/share/SailTris/qml/SailTris.qml</a>: File not<br>
> > found<br>
> ><br>
> ><br>
> > The path is correct<br>
> > If i deploy copying binaries it works.<br>
> ><br>
> > I have this in the cpp file, and i think is here that is called that<br>
> > qml file:<br>
> ><br>
> >     QScopedPointer<QGuiApplication> app(SailfishApp::application(argc,<br>
> > argv));<br>
> ><br>
> >     QTranslator translator;<br>
> >     translator.load("translation_" + QLocale::system().name(),<br>
> >                         "/usr/share/SailTris/i18n");<br>
> >     app->installTranslator(&translator);<br>
> ><br>
> >     QScopedPointer<QQuickView> view(SailfishApp::createView());<br>
> > view->setSource(SailfishApp::pathTo("qml/SailTris.qml"));<br>
> >     view->show();<br>
> ><br>
> >     return app->exec();<br>
> ><br>
> > I have this problem after i updated the sdk, i looked through the<br>
> > changes i made to the app, but nothing seem like to be causing this<br>
> > problem.<br>
> ><br>
> > Can someone help me?<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > SailfishOS.org Devel mailing list<br>
> > To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">
devel-unsubscribe@lists.sailfishos.org</a><br>
><br>
></div>
</div>
</div>
<br>
</div>
<br>
<fieldset target="_blank"></fieldset> <br>
<pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">
devel-unsubscribe@lists.sailfishos.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>