<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Chris,<br>
Thanks for the help.<br>
I had some delay caused by the upgrade from Ubuntu 12.10 to 13.4,
which screwed up the vbox set up (again).<br>
I folowed your instrctions and the "org.nemomobile.thumbnailer
1.0" problem was solved. <br>
The app only shows a black tile or broken tile. Need several
ctrl-h 's to get screen back.<br>
<br>
The output is:<br>
<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span
style=" font-family:'Monospace'; font-size:9pt;
color:#3c3c3c;">Display on requested</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">Qml debugging is enabled. Only use this in a
safe environment!</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">Using the meego graphics system</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">libEGL warning: DRI2: failed to authenticate</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a
href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#1414be;">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">: Expected token `numeric literal' </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a
href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0"><span
style=" font-family:'Monospace'; font-size:9pt;
text-decoration: underline; color:#1414be;">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</span></a><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">: Expected a qualified name id </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">hijackWindow() context created for
QDeclarativeView(0x711a9cf0) 1 </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">QGLWindowSurface: Using plain widget as window
surface QGLWindowSurface(0x712aa878) </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">XISlaveSwitch</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">XISlaveSwitch</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">Meego graphics system destroyed</span></p>
..
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">Using the meego graphics system</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">libEGL warning: DRI2: failed to authenticate</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">hijackWindow() context created for
QDeclarativeView(0x711a9cf0) 1 </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">QGLWindowSurface: Using plain widget as window
surface QGLWindowSurface(0x7145eab8) </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">XISlaveSwitch</span></p>
<span style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">XISlaveSwitch</span>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">Using the meego graphics system</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">libEGL warning: DRI2: failed to authenticate</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">hijackWindow() context created for
QDeclarativeView(0x711a9cf0) 1 </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">QGLWindowSurface: Using plain widget as window
surface QGLWindowSurface(0x711aa158) </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:9pt;
color:#be1414;">XISlaveSwitch..</span><!--EndFragment--></p>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
<br>
<br>
On 04/28/2013 07:48 PM, <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a> wrote:<br>
</div>
<blockquote
cite="mid:20130428194849.167976npyo7j74e9@webmail.thurcom.ch"
type="cite">Hi Wim
<br>
<br>
Do you still get your original error that you posted at the start
of this thread?
<br>
<br>
<br>
<a class="moz-txt-link-freetext" href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</a>:
Expected token `numeric literal'
<br>
<br>
<a class="moz-txt-link-freetext" href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</a>:
Expected a qualified name id
<br>
<br>
<br>
I assume from earlier posts that this was on Ubuntu (version not
specified), but as always assumptions are dangerous ...
<br>
<br>
In the meantime I have been able to build and run (Debug / Copy
Files to Device) (and thus failed to replicate your error) on OSX,
Windows 7, and Lubuntu 13.04
<br>
<br>
Grüsse
<br>
<br>
Chris
<br>
<br>
<br>
Zitat von <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>:
<br>
<br>
<blockquote type="cite">Wim
<br>
<br>
A minor correction to my text below:
<br>
<br>
3) Open the project via the src.pro file and setup the project
via the thumbnailer.pro (not the src.pro as stated below).
<br>
<br>
Chris
<br>
<br>
Zitat von <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>:
<br>
<br>
<blockquote type="cite">Hi Wim
<br>
<br>
Here is how to do it (the hard way):
<br>
<br>
1) In QtCreator/Sailfish/Manage Targets install the package
gst-plugins-base-devel.
<br>
This will also add the package gstreamer-devel
<br>
<br>
(These dependencies are mentioned in the src.pro file).
<br>
<br>
2) Download and unzip the sources from
<a class="moz-txt-link-freetext" href="https://github.com/nemomobile/nemo-qml-plugin-thumbnailer">https://github.com/nemomobile/nemo-qml-plugin-thumbnailer</a>
<br>
<br>
3) Open the project via the src.pro file and setup the project
<br>
<br>
4) Hit the green Run button (fingers in ears at this point).
<br>
<br>
5) If you get an error like ":-1: error: Failed to upload file
'/Users/christopherlamb/SailfishProjects/nemo-qml-plugin-thumbnailer-master/src/libnemothumbnailer.so'."
don't panic, we can work around that.
<br>
<br>
6) In your equivalent of
/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/lib/qt4/imports<br>
add the subdirectories org/nemomobile/thumbnailer
<br>
<br>
7) In your project directory (under src) you will find a
libnemothumbnailer.so
<br>
library and a qmldir file
<br>
<br>
Copy these into your n your equivalent of
/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/lib/qt4/imports/org/nemomobile/thumbnailer<br>
<br>
8) Now in your MediaGallery / PreviwGrid.qml the import import
org.nemomobile.thumbnailer 1.0 should no longer be underlined
in red. (If it is try Tools/QML JS/Reset Code Model)
<br>
<br>
This is of course the "brew your own" route. Maybe the
Thumbnailer Package can be directly installed.
<br>
<br>
<br>
I hope this helps
<br>
<br>
Chris
<br>
<br>
<br>
<br>
Zitat von <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>:
<br>
<br>
<blockquote type="cite">Hi Wim
<br>
<br>
I can confirm that on OSX I am also missing the plugin /
components package org.nemomobile.thumbnailer, as shown by
the red line in QtCreator under the import statement.
<br>
<br>
The error means that in your equivalent of:
<br>
<br>
/Users/christopherlamb/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/lib/qt4/imports
<br>
<br>
there should be a subdirectory org/nemomobile/thumbnailer
containing the qmls and lib files for this plugin.
<br>
<br>
There probably is an easy way to install this (e.g. via
QtCreator/Sailfish/Manage Targets), but I have not found it.
<br>
<br>
<br>
In the meantime you can find the sources here ( I downloaded
the zip)
<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/nemomobile/nemo-qml-plugin-thumbnailer">https://github.com/nemomobile/nemo-qml-plugin-thumbnailer</a>
<br>
<br>
Assuming these compile, then it should be possible to scp
(secure copy) the results into the directory structure
above. I will give this a go later this evening, and let you
know how / if it works. (This is how I have installed my own
custom plugin).
<br>
<br>
b.t.w I have been trying to get Sailfish up and running on
Lubuntu / Ubuntu to see if I can replicate your original
error, but am having problems with the Emulator which I will
post in the next few minutes in a separate thread ...
<br>
<br>
Chris
<br>
<br>
<br>
<br>
Zitat von "Wim de Vries" <a class="moz-txt-link-rfc2396E" href="mailto:wsvries@xs4all.nl"><wsvries@xs4all.nl></a>:
<br>
<br>
<blockquote type="cite">Thanks for the reply.
<br>
QtMobility.gallery 1.1 is imported indeed.
<br>
<br>
But it seems that org.nemomobile.thumbnailer is missing.
<br>
It is not in the mediagallery example set.
<br>
I am not very knowledgeble on QML.
<br>
Any hint how to get/install this?
<br>
Thanks.
<br>
<br>
<br>
<br>
On 04/24/2013 05:28 PM, <a class="moz-txt-link-abbreviated" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a> wrote:
<br>
<blockquote type="cite">Hi Wim
<br>
<br>
I have just done a quick test on Apple-pip my OSX host.
<br>
<br>
In my case the application opens successfully: I get
pretty pictures on the SailfishOS Emulator.
<br>
<br>
My output is the following:
<br>
<br>
Display on requested
<br>
Qml debugging is enabled. Only use this in a safe
environment!
<br>
Using the meego graphics system
<br>
libEGL warning: DRI2: failed to authenticate
<br>
Warning: specifying an object instance for initialPage
is sub-optimal - prefer to use a Component
<br>
loaded the Generic plugin
<br>
Loaded the MeeGo sensor plugin
<br>
Requested sensor id ' "orientationsensor" ' interface
not granted
<br>
Requested sensor id ' "orientationsensor" ' interface
not granted
<br>
hijackWindow() context created for
QDeclarativeView(0x70dd3108) 1
<br>
QGLWindowSurface: Using plain widget as window surface
QGLWindowSurface(0x711193c8)
<br>
Successfully resolved MeeGo graphics system:
/usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so
<br>
<br>
XISlaveSwitch
<br>
<br>
<br>
Do you have the QtMultimediaKit installed? The
PreviewGrid.qml imports it
<br>
import QtMobility.gallery 1.1
<br>
<br>
See one of my earlier threads on the issue of installing
QtMultimedia / Mobility
<br>
<br>
Ciao
<br>
<br>
Chris
<br>
<br>
Zitat von "Wim de Vries" <a class="moz-txt-link-rfc2396E" href="mailto:wsvries@xs4all.nl"><wsvries@xs4all.nl></a>:
<br>
<br>
<blockquote type="cite">Hi,
<br>
I am trying the mediagallery example (run).
<br>
No build errors, but the Sailfish VM turns to black
(CTRL H won't help) and I get this message:
<br>
<br>
Display on requested
<br>
<br>
Using the meego graphics system
<br>
<br>
libEGL warning: DRI2: failed to authenticate
<br>
<br>
<a class="moz-txt-link-freetext" href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</a>:
Expected token `numeric literal'
<br>
<br>
<a class="moz-txt-link-freetext" href="file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0">file:///opt/sdk/share/mediagallery/mediagallery.qml:0:0</a>:
Expected a qualified name id
<br>
<br>
hijackWindow() context created for
QDeclarativeView(0x71326128) 1
<br>
<br>
QGLWindowSurface: Using plain widget as window surface
QGLWindowSurface(0x7141e488)
<br>
<br>
XISlaveSwitch
<br>
<br>
XISlaveSwitch
<br>
<br>
XISlaveSwitch
<br>
<br>
XISlaveSwitch
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
SailfishOS.org Devel mailing list
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
SailfishOS.org Devel mailing list
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
SailfishOS.org Devel mailing list
<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>