# Packaging/installing applications that uses VTK

**URL:** https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574
**Category:** Support
**Created:** [September 7, 2021, 8:20pm UTC](https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574 "2021-09-07T20:20:37Z")
**Posts on this page:** 2
**Page:** 1

<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 7, 2021, 8:20pm UTC](https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574/1 "2021-09-07T20:20:37Z")

</div>

I have been reading about packaging application that link against VTK talking about RPATH and such.

Some of the article I read is a couple of years old and I am wondering with the recent updates and module-rization of VTK if there are newer write up on that front.

At the moment, I need to set LD\_LIBRARY\_PATH to run my application because not all the dependencies are found

```auto
[100%] Linking CXX executable FilterExample
[100%] Built target FilterExample
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/stuff/bin/FilterExample
nyue@head0:~/projects/vii/build/graphics/vtk$ ldd /tmp/stuff/bin/FilterExample
	linux-vdso.so.1 (0x00007fff398ba000)
	libvtkCommonExecutionModel-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonExecutionModel-9.0.so.1 (0x00007f6c05282000)
	libvtkCommonDataModel-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonDataModel-9.0.so.1 (0x00007f6c04c48000)
	libvtkCommonCore-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonCore-9.0.so.1 (0x00007f6c045e4000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6c0425b000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6c04043000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6c03c52000)
	libvtkCommonMisc-9.0.so.1 => not found
	libvtksys-9.0.so.1 => not found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6c038b4000)
	libvtkCommonTransforms-9.0.so.1 => not found
	libvtkCommonMisc-9.0.so.1 => not found
	libvtkCommonSystem-9.0.so.1 => not found
	libvtkCommonMath-9.0.so.1 => not found
	libvtksys-9.0.so.1 => not found
	libvtksys-9.0.so.1 => not found
	libvtkloguru-9.0.so.1 => not found
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6c03695000)
	libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f6c03466000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6c05743000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6c03262000)

```

---

<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 14, 2021, 1:16am UTC](https://discourse.vtk.org/t/packaging-installing-applications-that-uses-vtk/6574/2 "2021-09-14T01:16:18Z")

</div>

This MR might help (though there are other things that need addressed before it is complete):

[https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/8210](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8210)
