如何为 iPhone 构建 VTK?

发布于 2024-09-11 21:25:11 字数 163 浏览 2 评论 0原文

我正在尝试制作一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

莫多说 2024-09-18 21:25:11

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.

泛滥成性 2024-09-18 21:25:11

删除标签 -DIOS_SIMULATOR_ARCHITECTURES=''

只需使用以下内容:

cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_FRAMEWORK_INSTALL_PREFIX=$prefix/lib -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DVTK_IOS_BUILD=ON -DModule_vtkFiltersModeling=ON ..

Remove the tag -DIOS_SIMULATOR_ARCHITECTURES=''

Just use below:

cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_FRAMEWORK_INSTALL_PREFIX=$prefix/lib -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DVTK_IOS_BUILD=ON -DModule_vtkFiltersModeling=ON ..
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文