Azure是否允许App需要OpenGL,并且有其他解决方法? [英] Does Azure allow App need OpenGL, any way to go around?

查看:60
本文介绍了Azure是否允许App需要OpenGL,并且有其他解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在Azure虚拟机上托管一个远程应用程序,该应用程序是使用python在VTK之上开发的.每次出现崩溃消息时,图形驱动程序不支持带有gpu_shader4扩展名的vtkWin32OpenGLRenderWindow ... GL version2.1".我尝试了Windows Server 2016和Windows 10虚拟机,同样崩溃了.

I was hoping to host a remote app on Azure Virtual Machine, that was developed on top of VTK using python. Every time, I got crash message says "vtkWin32OpenGLRenderWindow...GL version2.1 with the gpu_shader4 extension is not supported by your graphic driver". I tried windows server 2016 and windows 10 Virtual machine, same crash.

Azure不支持运行应用程序是否需要OpenGl支持?除非租用超级昂贵的N虚拟机?

Is that Azure does not support to run app need OpenGl support? Unless renting super expensive N virtual machine?

有人建议如何在不花费太多修改程序的情况下使我的应用程序在普通成本的虚拟机上运行?

Any advise how to get my app run on normal cost virtual machine without revising my program too much?

推荐答案

答案:

Azure VM通常不具有GPU,除非Azure N系列VM:

Azure VM in general does not have GPU, unless Azure N-series VMs: https://blogs.technet.microsoft.com/hybridcloudbp/2016/12/13/n-series-azure-vms-with-gpu/

解决方案:

1)使用软件光栅化程序构建Mesa3D + LLvmpipe版本opengl32.dll.

1)Build Mesa3D+LLvmpipe version opengl32.dll which use software rasterizer.

您可以关注: https://fdossena.com/?p=mesa/build.frag 来构建自己的文件或从Internet下载预构建的opengl32.dll.

You may follow: https://fdossena.com/?p=mesa/build.frag to build your own or download a prebuilt opengl32.dll from internet.

2)替换windows/system32/opengl32.dll:

2)Replace windows/system32/opengl32.dll:

将Mesa opengl32.dll保存在同一应用程序目录中不起作用-不确定为什么.

Saving Mesa opengl32.dll in the same directory of application does not works - not sure why yet.

替换Windows/ssytem32/openggl32.dll,需要将opengl32.dll的所有权从受信任的安装程序更改为管理员,并将完全访问权限分配给管理员.

Replacing windows/ssytem32/openggl32.dll, needs changing the ownership of opengl32.dll from trustedinstaller to administrator, and assign full access right to administrator.

* Mesa3D& LLvmpipe非常棒!但是,构建Mesa3D + LLvmpipe是一件很痛苦的事情!

*Mesa3D&LLvmpipe are great! But buidling Mesa3D+LLvmpipe is a pain!

这篇关于Azure是否允许App需要OpenGL,并且有其他解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆