# Error building plugin example

**URL:** https://discourse.paraview.org/t/error-building-plugin-example/15643
**Category:** ParaView Support
**Created:** [October 25, 2024, 8:51pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643 "2024-10-25T20:51:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![britesrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@britesrei](https://discourse.paraview.org/u/britesrei)
#### Post date: [October 25, 2024, 8:51pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/1 "2024-10-25T20:51:29Z")

</div>

Hello!  
I’ve been trying to build _ExampleContextMenu_ plugin from ParaView examples and it’s given me the error below that I do not know how to fix. I’m new to the developer side of ParaView so I would appreciate some detailed explanations, if possible! Thanks in advance!

 ![error](https://discourse.paraview.org/uploads/default/original/2X/3/340ec8574025c538c16ab231cf22e3d11bac3350.png)

and the ccmake window:

 ![ccmake](https://discourse.paraview.org/uploads/default/original/2X/f/ff5cf3cfff235edf09ba0731a787d4cacca49fc8.png)

---

<div class="post-metadata">

### Author: ![britesrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@britesrei](https://discourse.paraview.org/u/britesrei)
#### Post date: [October 25, 2024, 10:01pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/3 "2024-10-25T22:01:58Z")

</div>

Solved it, just had to export `CMAKE_PREFIX_PATH` to include the VTK installation path 😑

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 28, 2024, 9:48am UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/4 "2024-10-28T09:48:35Z")

</div>

This should not be necessary.  
I just tried with ParaView master and this very example and it worked fine.

Something is wrong in your ParaView build somehow.

---

<div class="post-metadata">

### Author: ![britesrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@britesrei](https://discourse.paraview.org/u/britesrei)
#### Post date: [October 28, 2024, 4:21pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/5 "2024-10-28T16:21:22Z")

</div>

Can you guide me through the steps to get the plugin working then, so I can check if there’s a problem with the paraview build? Thank you!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 28, 2024, 4:30pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/6 "2024-10-28T16:30:58Z")

</div>

I just build ParaView from scratch and then the plugin.

```auto
mkdir paraview
git clone https://gitlab.kitware.com/paraview/paraview src
mkdir build
cd build
cmake ../src
make
cd src/Example/Plugins/DockWidget
mkdir build
cmake -DParaView_DIR=../../../build ../
make

```

---

<div class="post-metadata">

### Author: ![britesrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@britesrei](https://discourse.paraview.org/u/britesrei)
#### Post date: [October 28, 2024, 5:12pm UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/7 "2024-10-28T17:12:02Z")

</div>

Thanks! I figure that should work the same for my case (ContextMenu)?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 29, 2024, 8:08am UTC](https://discourse.paraview.org/t/error-building-plugin-example/15643/8 "2024-10-29T08:08:01Z")

</div>

Yes
