如何为 iPhone 构建 VTK?
我正在尝试制作一个 iPhone/iPad 应用程序,它使用 VTK 来可视化 DICOM 图像并将其呈现在屏幕上。问题是无论我做什么,我都无法构建 VTK 在设备上工作(它在模拟器上可以正常工作)。
有没有办法为 iPhone/iPad 构建 VTK?
非常感谢您的帮助! :)
I'm trying to make an iPhone/iPad application that uses VTK to visualize DICOM images and present them on the screen. The problem is no matter what I do, I am not able to build VTK to work on the device (it works correctly on the simulator).
Is there any way to build VTK for the iPhone/iPad?
Thank you very much for your help! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VTK 可以使用 Open GL API 或最近的 Manta 进行渲染。 iPhone(以及 Android 等其他设备)使用 OpenGL ES,它本质上是针对嵌入式系统的 OpenGL 的子集。在将 VTK 移植为使用 OpenGL ES 作为替代后端之前,不可能在移动设备上使用 VTK。我对iPhone模拟器不熟悉,但我想VTK仍然能够在模拟器中使用OpenGL。移植是可能的,但这并不是一件小事。
VTK can render using the Open GL API, or more recently Manta. The iPhone (and other devices such as Android) use OpenGL ES, which is essentially a subset of OpenGL targeted at embedded systems. Until VTK is ported to use OpenGL ES as an alternative backend it will not be possible to use VTK on mobile devices. I am not familiar with the iPhone simulator, but I imagine that VTK is still able to use OpenGL in the simulator. Porting is possible, but it would not be a trivial thing to do.
删除标签
-DIOS_SIMULATOR_ARCHITECTURES=''
只需使用以下内容:
Remove the tag
-DIOS_SIMULATOR_ARCHITECTURES=''
Just use below: