# VTK + PDAL for LIDAR data reading. Error with build

**URL:** https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305
**Category:** Support
**Created:** [May 14, 2020, 2:04pm UTC](https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305 "2020-05-14T14:04:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Oscar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/oscar/32/1498_2.png) [@Oscar](https://discourse.vtk.org/u/Oscar)
#### Post date: [May 14, 2020, 2:04pm UTC](https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305/1 "2020-05-14T14:04:32Z")

</div>

Hello everyone,

I’m trying to build VTK with the PDAL module and it seems that I’m doing something wrong. I downloaded and installed pdal through miniconda and set the PDAL\_DIR on CMake when building vtk.

But the PDAL tests are throwing library link errors (error LNK2001). I’m obviously doing something wrong. Can someone help me?

Thanks in advance.

---

<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: [May 14, 2020, 2:14pm UTC](https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305/2 "2020-05-14T14:14:02Z")

</div>

Do you have the actual errors available? The error numbers aren’t really specific enough to figure out what’s wrong.

---

<div class="post-metadata">

### Author: ![Oscar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/oscar/32/1498_2.png) [@Oscar](https://discourse.vtk.org/u/Oscar)
#### Post date: [May 14, 2020, 2:18pm UTC](https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305/3 "2020-05-14T14:18:16Z")

</div>

vtkIOPDALCxxTests.obj : error LNK2001: unresolved external symbol “int \_\_cdecl TestPDALReader\_test\_1(int,char \* \* const)” (?TestPDALReader\_test\_1@@YAHHQEAPEAD@Z)

---

<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: [May 14, 2020, 9:59pm UTC](https://discourse.vtk.org/t/vtk-pdal-for-lidar-data-reading-error-with-build/3305/4 "2020-05-14T21:59:23Z")

</div>

Please try out this diff: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/6899](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6899)
