Windows Embedded Compact 7 - Unable to import library Qt5Gui.dll
-
Do you have the svg plugin on WEC7 ?
-
That part looks good
-
- list itemI create a QtQuick2 empty exemple.
- Copy the executable on the SDCard deploy folder, \DeployFolder
- I copy the folder \qml to *\DeployFolder*
- I copy the folder \plugins to *\DeployFolder*
- I copy ALL the DLL of \bin to *\DeployFolder*
- I copy the file msvcr90.dll to *\DeployFolder*
Still no result, the application is hanging while starting, no output. What could be missing ? I've put ALL what exists from the build directory of QT ! This is very annoying :(
The SVG seems to be buggy on Windows CE or there something that I don't understand yet.
Somebody has another idea ?
-
Then let's get back to the basics, can you run a simple hello world ?
-
Yes without any problem.
I can also run application based Widget.
I can also run QtQuick2 application if I don't include the /imageformats folder. But this way I cannot use any svg images or any other image that need plugin inside of this folder. As long as I include the /imageformats folder, the application start but I have no display.
-
Ok, then do you have the problem only with the svg plugin or any of the other ?
-
Here is what I have tried :
- I create an empty QtQuick2 project and copy it to my deploy. The deploy folder is having ALL QT plugins, dll, etc...
- Copy the executable on the SDCard deploy folder, \DeployFolder
- I copy the folder \qml to \DeployFolder
- I copy the folder \plugins to \DeployFolder
- I copy ALL the DLL of \bin to \DeployFolder
- I copy the file msvcr90.dll to \DeployFolder
I launch the executable and then it start properly and I have a window with graphical output.
Secondly I add this to application :
<RCC> <qresource prefix="/"> <file>main.qml</file> <file>MainForm.ui.qml</file> <file>CMYK.jpg</file> </qresource> </RCC> Window { visible: true MainForm { anchors.fill: parent Image { source: "qrc:/CMYK.jpg" width : 80; height : 80; } } }
It start properly with graphical output.
Now I remove the jpg image and replace it by one of my SVG file. Surprise, it works also !!!
Now I tried to add 5 more SVG images to my resource file and create 5 more images element to my qml, but this time it failed ! Same problem as my original application. Now we can deduce that this is the number of images that makes the application crash or is it a particular image QT dislikes. To be sure I have tried with some of the svg images that I found in **src\qtsvg\examples\svg**, some works, other not.
After doing some test, I conclude that some svg image are crashing application and other simply work. This is weird, those image a very tiny icon not complex. And why they are ALL working on Windows Desktop but not on Windows CE ? Is there any limitation or know issue on Windows CE about SVG images ? I hope someone here can confirm this and provide a fix if possible.
As example, those one are not working on Windows CE:
Image { source: "qrc:/bubbles.svg"; sourceSize.width: 60; sourceSize.height: 60; width : 60; height : 60} Image { source: "qrc:/volume-up.svg"; sourceSize.width: 60; sourceSize.height: 60; width : 60; height : 60} Image { source: "qrc:/spinner.svg"; sourceSize.width: 60; sourceSize.height: 60; width : 60; height : 60}
- I create an empty QtQuick2 project and copy it to my deploy. The deploy folder is having ALL QT plugins, dll, etc...
-
Can you check whether they use the same SVG standard ?
-
At least bubbles.svg is animated, so I wonder if it has something to do with it