[SailfishDevel] Main qml file not found when Deploying

ziobilly94 at gmail.com ziobilly94 at gmail.com
Wed Mar 11 11:20:32 UTC 2015


I created a new project and all the files, and i got it working, thanks for the help :)

Il mer mar 11 07:13:59 2015 GMT+0100, Andrey Kozhevnikov scrive:
> sorry, but i still can compile, deploy and run it without any 
> modifications in your code. Maybe you have no space left on device?
> 
> 10.03.2015 16:25, Antonio Mancini пишет:
> > I managed to resolve the "main" qml issue, i moved everything to 
> > another directory and changed names to follow harbour standards but 
> > now it can't find other qml files, i tried Chris's solution but it 
> > won't help
> > I updated the source code on github: 
> > https://github.com/BillyHalley/SailTris
> >
> > I still can "Deploy by Copying Binaries"
> > But when i do "Deploy as RPM Package"
> > I have this error:
> >
> > [D] 
> > QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 
> > - Using Wayland-EGL
> >
> > [W] QQmlImportDatabase::registerPluginTypes:1875 - Module 
> > 'Sailfish.Silica' does not contain a module identifier directive - it 
> > cannot be protected from external registrations.
> >
> > [W] unknown:7 - 
> > file:///usr/share/harbour-sailtris/qml/harbour-sailtris.qml:7:30: Type 
> > FirstPage unavailable
> >
> > initialPage: Component { FirstPage { } }
> >
> > ^
> >
> > [W] unknown:21 - 
> > file:///usr/share/harbour-sailtris/qml/pages/FirstPage.qml:21:5: Type 
> > Functions unavailable
> >
> > Functions {
> >
> > ^
> >
> > [W] unknown:-1 - 
> > file:///usr/share/harbour-sailtris/qml/elements/Functions.qml: File 
> > not found
> >
> > [W] QSGThreadedRenderLoop::handleExposure:882 - QSGThreadedRenderLoop: 
> > expose event received for window with invalid geometry.
> >
> >
> > Sometimes instead of Functions.qml it can't find Dot.qml..
> >
> > Il lun mar 9 08:23:12 2015 GMT+0100, Chris Adams scrive:
> > > Hi Antonio,
> > >
> > > The files which are installed by an rpm package are listed in the 
> > %files directive of the .spec file.
> > > 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.
> > >
> > > eg:
> > >
> > > example.pro <http://example.pro> contains:
> > > // lines up here with target (lib or exe) information, build 
> > switches, etc
> > > OTHER_FILES += MyQmlType.qml
> > > import.files += MyQmlType.qml
> > > import.path = /path/to/import/dir
> > > INSTALLS += import
> > >
> > > %files
> > > /path/to/import/dir/MyQmlType.qml
> > >
> > > Note that harbour rules no doubt require some specific 
> > application-specific import directory to be defined and used by your app.
> > >
> > > Kind regards,
> > > Chris.
> > >
> > > ________________________________
> > > From: devel-bounces at lists.sailfishos.org 
> > <mailto:devel-bounces at lists.sailfishos.org> 
> > [devel-bounces at lists.sailfishos.org 
> > <mailto:devel-bounces at lists.sailfishos.org>] on behalf of Antonio 
> > Mancini [ziobilly94 at gmail.com <mailto:ziobilly94 at gmail.com>]
> > > Sent: Saturday, March 07, 2015 2:26 AM
> > > To: Sailfish OS Developers
> > > Subject: Re: [SailfishDevel] Main qml file not found when Deploying
> > >
> > > 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.
> > > I also tried installing previous version of SDK but it didn't work.
> > >
> > > 2015-03-06 15:47 GMT+01:00 Andrey Kozhevnikov 
> > <coderusinbox at gmail.com 
> > <mailto:coderusinbox at gmail.com><mailto:coderusinbox at gmail.com 
> > <mailto:coderusinbox at gmail.com>>>:
> > > Compiled and build project to rpm with no problems . Clean your 
> > build folder and do a fresh build.
> > >
> > > 06.03.2015 01:03, Antonio Mancini пишет:
> > >
> > > This is the link to the .pro file on github
> > >
> > > https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro
> > >
> > > Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive:
> > > > show your pro file/link to github project.
> > > >
> > > > 05.03.2015 00:15, Antonio Mancini пишет:
> > > > > When deploying my application as an RPM package i have this error:
> > > > >
> > > > > [W] contextFactory:108 - Could not create scene graph context for
> > > > > device 'customcontext' - check that plugins are installed 
> > correctly in
> > > > > /usr/lib/qt5/plugins
> > > > >
> > > > > [D]
> > > > > 
> > QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62
> > > > > - Using Wayland-EGL
> > > > >
> > > > > [W] unknown:-1 - file:///usr/share/SailTris/qml/SailTris.qml: 
> > File not
> > > > > found
> > > > >
> > > > >
> > > > > The path is correct
> > > > > If i deploy copying binaries it works.
> > > > >
> > > > > I have this in the cpp file, and i think is here that is called that
> > > > > qml file:
> > > > >
> > > > >     QScopedPointer<QGuiApplication> 
> > app(SailfishApp::application(argc,
> > > > > argv));
> > > > >
> > > > >     QTranslator translator;
> > > > >     translator.load("translation_" + QLocale::system().name(),
> > > > > "/usr/share/SailTris/i18n");
> > > > >     app->installTranslator(&translator);
> > > > >
> > > > >     QScopedPointer<QQuickView> view(SailfishApp::createView());
> > > > > view->setSource(SailfishApp::pathTo("qml/SailTris.qml"));
> > > > >     view->show();
> > > > >
> > > > >     return app->exec();
> > > > >
> > > > > I have this problem after i updated the sdk, i looked through the
> > > > > changes i made to the app, but nothing seem like to be causing this
> > > > > problem.
> > > > >
> > > > > Can someone help me?
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > SailfishOS.org Devel mailing list
> > > > > To unsubscribe, please send a mail to 
> > devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org><mailto:devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org>>
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to 
> > devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org><mailto:devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org>>
> > >
> > >
> > > _______________________________________________
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to 
> > devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org><mailto:devel-unsubscribe at lists.sailfishos.org 
> > <mailto:devel-unsubscribe at lists.sailfishos.org>>
> > >
> > >
> >
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> 
>


More information about the Devel mailing list