OpenVG on wince: nothing painted on screen (example application Star.exe)
Has anyone got the openvg example (star.exe) running on a wince target successfully? I’ve tried it but failed – nothing was painted on screen except for an empty window. Below is what I’ve done for it.
Environment:
- Qt 4.7.4
- Wince 6.0
- An SDK with both OpenGL and OpenVG support. (OpenVG version 1.1)
Steps:
Open "Visual Studio 2005 Command Prompt", configure Qt with command:
configure -openvg -platform win32-msvc2005 -xplatform wince60DbAu1300-qt46-mipsii-msvc2005
- Set environment variables for wince.
- Run "nmake"
Copy files needed to the same folder on my target. Below is the file tree in the folder:
- star.exe
- QtCored4.dll
- QtGuid4.dll
- QtOpenVGd4.dll
- msvcr80d.dll
Run
star.exe -graphicssystem OpenVG
Results:
The window is created and shown, but nothing in it. The content is empty and transparent.
Update:
I was trying to debug this issue, and I found that the application Star.exe is failing to load OPenVG 开发者_运维问答libs.
How do I find out the reason why the app is not able to load OpenVG libs?solution:-
Could figure out the problem. My application was not able to find the graphics libs which are loaded at run time.
the graphics libs has to be in "graphicssystems" folder in star app folder, and the graphics libs can be copied from "QTROOT\plugins\graphicssystems\" folder.
And might have to specify command line arguments "-graphicssystems OpenVG" while launching the application.
精彩评论