# Building VTK for arm64 architecture

**URL:** https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524
**Category:** Development
**Created:** [September 1, 2021, 5:56am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524 "2021-09-01T05:56:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SurajJadhav](https://discourse.vtk.org/user_avatar/discourse.vtk.org/surajjadhav/32/3874_2.png) [@SurajJadhav](https://discourse.vtk.org/u/SurajJadhav)
#### Post date: [September 1, 2021, 5:56am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/1 "2021-09-01T05:56:41Z")

</div>

How can I build VTK 8.2.0 for arm64 architecture? Previously I have done it for x86\_64 machine and it worked fine. Now I m moving to arm64 machine but I see no options in CMake during building for arm64. Is there any reference for this?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [September 1, 2021, 12:13pm UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/2 "2021-09-01T12:13:40Z")

</div>

VTK’s build doesn’t have any options for an x86\_64 build either 🙂 . It depends on the compiler you provide. I’m guessing by the `x64` you’re on Windows. In this case, I would recommend configuring VTK’s build from within an `arm64` developer console with the `Ninja` generator (VS can “import” this build then and provide its functionality).

---

<div class="post-metadata">

### Author: ![SurajJadhav](https://discourse.vtk.org/user_avatar/discourse.vtk.org/surajjadhav/32/3874_2.png) [@SurajJadhav](https://discourse.vtk.org/u/SurajJadhav)
#### Post date: [September 1, 2021, 4:03pm UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/3 "2021-09-01T16:03:52Z")

</div>

Thanks Ben, actually I built VTK in Linux 20.04 i.e. x86\_64 architecture(edited the mistake above). I will try the solution you suggested.

---

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [September 1, 2021, 4:36pm UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/4 "2021-09-01T16:36:25Z")

</div>

@SurajJadhav , I recently built Paraview on a Jetson Nano (ARM64 Ubuntu 18.04) via Paraview’s superbuild (CMake) approach which also build VTK in the process.

Building VTK via CMake should be pretty similar on Ubuntu regardless of the CPU.

Hope that helps.

---

<div class="post-metadata">

### Author: ![ZUNTING\_HU](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zunting_hu/32/3669_2.png) [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)
#### Post date: [October 9, 2021, 1:56am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/5 "2021-10-09T01:56:55Z")

</div>

Hi, Nicholas Yue @Nicholas_Yue . I recently build VTK on a Jetson Nano (ARM64 Ubuntu 18.04) too! But there is it failed by QopenGLfunction… Can you tell me which version you build, please. Any replay will be appreciated!

---

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [October 9, 2021, 3:54am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/6 "2021-10-09T03:54:19Z")

</div>

I built VTK indirectly by building Paraview via superbuild. Paraview superbuild will also build Qt from source and that is where you will find the Qt modules.

Hope that helps.

---

<div class="post-metadata">

### Author: ![ZUNTING\_HU](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zunting_hu/32/3669_2.png) [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)
#### Post date: [October 11, 2021, 1:52am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/7 "2021-10-11T01:52:04Z")

</div>

@Nicholas_Yue very much appreciate the reply! When I build vtk by CMake with qt , there are errors that occur.QOpenGLFunction…something

---

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [October 11, 2021, 3:44am UTC](https://discourse.vtk.org/t/building-vtk-for-arm64-architecture/6524/8 "2021-10-11T03:44:50Z")

</div>

Are you using Qt that was shipped with Ubuntu 18.04 ARM64 or did you build Qt from source ?

If you build Qt from source, did you check that it was able to find OpenGL during the configuration phase ?
