简体   繁体   English

Wince上的OpenVG:屏幕上没有任何内容(示例应用程序Star.exe)

[英]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? 是否有人成功在wince目标上运行了openvg示例(star.exe)? 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 Qt 4.7.4
  • Wince 6.0 Wince 6.0
  • An SDK with both OpenGL and OpenVG support. 具有OpenGL和OpenVG支持的SDK。 (OpenVG version 1.1) (OpenVG版本1.1)

Steps: 脚步:

  1. Open "Visual Studio 2005 Command Prompt", configure Qt with command: 打开“ Visual Studio 2005命令提示符”,使用命令配置Qt:

     configure -openvg -platform win32-msvc2005 -xplatform wince60DbAu1300-qt46-mipsii-msvc2005 
  2. Set environment variables for wince. 设置wince的环境变量。
  3. Run "nmake" 运行“ nmake”
  4. Copy files needed to the same folder on my target. 将所需的文件复制到目标上的同一文件夹。 Below is the file tree in the folder: 以下是文件夹中的文件树:

    • star.exe 可执行文件
    • QtCored4.dll QtCored4.dll
    • QtGuid4.dll QtGuid4.dll
    • QtOpenVGd4.dll QtOpenVGd4.dll
    • msvcr80d.dll msvcr80d.dll
  5. 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. 我试图调试此问题,发现应用程序Star.exe无法加载OPenVG库。
How do I find out the reason why the app is not able to load OpenVG libs? 我如何找出该应用程序无法加载OpenVG库的原因?

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. 图形库必须位于star app文件夹的“ graphicssystems”文件夹中,并且可以从“ QTROOT \\ plugins \\ graphicssystems \\”文件夹中复制图形库。

And might have to specify command line arguments "-graphicssystems OpenVG" while launching the application. 并且在启动应用程序时可能必须指定命令行参数“ -graphicssystems OpenVG”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM