# many "undefined references" error in building vtk on raspberry pi 4

**URL:** https://discourse.vtk.org/t/many-undefined-references-error-in-building-vtk-on-raspberry-pi-4/12633
**Category:** Support
**Created:** [November 7, 2023, 2:41pm UTC](https://discourse.vtk.org/t/many-undefined-references-error-in-building-vtk-on-raspberry-pi-4/12633 "2023-11-07T14:41:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [November 7, 2023, 4:23pm UTC](https://discourse.vtk.org/t/many-undefined-references-error-in-building-vtk-on-raspberry-pi-4/12633/2 "2023-11-07T16:23:24Z")

</div>

> cmake version: 2.22

Did you mean cmake 3.22?

In order to build VTK, several dev packages are required. I’m not sure what the complete list is, but you can try installing these with apt-get:

The essential packages:

```
build-essential cmake

```

Various libraries:

```
libfreetype6-dev libfontconfig1-dev
libgl-dev libglu-dev
libx11-dev libxpm-dev libxt-dev x11proto-core-dev

```

Qt libraries:

```
libqt5opengl5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qttools5-private-dev

```

Python libraries (if you use Python)

```
python3-dev python3-matplotlib python3-six python3-twisted

```

Edit: I removed some packages that VTK will build itself.

---

_[View the full topic](https://discourse.vtk.org/t/many-undefined-references-error-in-building-vtk-on-raspberry-pi-4/12633)._
