# cannot compile iparaview-kernel

**URL:** https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902
**Category:** ParaView Support
**Created:** [February 4, 2022, 8:50am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902 "2022-02-04T08:50:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [February 4, 2022, 8:50am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/1 "2022-02-04T08:50:26Z")

</div>

I have PV5.10.0 compiled from source, with Qt for my laptop. I cannot configure iparaview-kernel:

CMake Error at /local/apps/ParaView/5.10/lib/cmake/paraview-5.10/paraview-config.cmake:163 (list):  
list sub-command REMOVE\_ITEM requires two or more arguments.  
Call Stack (most recent call first):  
CMakeLists.txt:17 (find\_package)

This error is not limited to iparaview-kernel. I have the same error attempting to compile any plugin, such as for example:

Examples/Plugins/MyPNGReader  
cmake version 3.18.4

---

<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: [February 4, 2022, 8:57am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/2 "2022-02-04T08:57:18Z")

</div>

@timothee.chabat @Charles_Gueunet

---

<div class="post-metadata">

### Author: ![Charles\_Gueunet](https://discourse.paraview.org/user_avatar/discourse.paraview.org/charles_gueunet/32/40_2.png) [@Charles\_Gueunet](https://discourse.paraview.org/u/Charles_Gueunet)
#### Post date: [February 4, 2022, 9:08am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/3 "2022-02-04T09:08:35Z")

</div>

Hello @jfavre ,

would it be possible for you to try with CMake 3.21 ? I already saw this issue and this version of cmake solved it then.  
Also, please ensure you are using the latest master of the iparaview-kernel as we added some fix few days ago 🙂

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [February 4, 2022, 9:20am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/4 "2022-02-04T09:20:20Z")

</div>

This error seems to appear when building any plugin against an install folder of ParaView while using CMake \< 3.21 (as far as I’ve tested). Imo this is a bug in ParaView and this should be adressed. I will open an issue and try to pindown the exact CMake version that breaks compatibility.

---

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [February 4, 2022, 9:21am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/5 "2022-02-04T09:21:32Z")

</div>

indeed, I installed cmake via pip and got v3.22.2.  
I can configure but it fails later on on:  
[71%] Building CXX object PVQtJupyterPlugin/CMakeFiles/PVQtJupyterPlugin.dir/pqJupyterTraceReaction.cxx.o  
In file included from /local/apps/ParaView/5.10/include/paraview-5.10/pqPythonScriptEditor.h:38,  
from /home/jfavre/Projects/ParaView/iparaview-kernel/PVQtJupyterPlugin/pqJupyterTraceReaction.cxx:9:  
/local/apps/ParaView/5.10/include/paraview-5.10/pqPythonEditorActions.h:36:10: fatal error: pqPythonUtils.h: No such file or directory  
36 | #include “pqPythonUtils.h”  
| ^ ~~~~~~~~~~~~~~~~  
compilation terminated.

---

<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: [February 4, 2022, 9:23am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/6 "2022-02-04T09:23:38Z")

</div>

> [@timothee.chabat](#):
>
> Imo this is a bug in ParaView and this should be adressed

Already fixed in master. I cant find the MR but @ben.boeckel knows.

found it: [https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/5453](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5453)

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [February 4, 2022, 9:26am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/7 "2022-02-04T09:26:55Z")

</div>

@mwestphal oh good to know

@jfavre yes sadly this plugin cannot compile against vanilla 5.10 . See the iparaview-kernel README and the `Patches/` folder to have the necessary patches.

---

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [February 4, 2022, 9:45am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/8 "2022-02-04T09:45:58Z")

</div>

I saw the README and was confused because it said if there is a version number, that means this patch is no longer needed. I see ParaView\_MR\_5387.patch and ParaView\_MR\_5446.patch and thought these numbers were versions. Sorry about that.

I applied the patch, rebuilt, and I can now compile to the end.  
I have tested jupyter notebook and it works as advertized. Thanks for the prompt help.

Are these two patches scheduled for v5.10.1?

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [February 4, 2022, 9:50am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/9 "2022-02-04T09:50:09Z")

</div>

Indeed it can be a bit confusing, I will rename them. `ParaView_MR_5446.patch` should be backported to 5.10.1, but it’s still unsure for the other one. I’ll post a message here and update the name accordingly when I know more.

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [February 7, 2022, 10:25am UTC](https://discourse.paraview.org/t/cannot-compile-iparaview-kernel/8902/10 "2022-02-07T10:25:17Z")

</div>

@jfavre FYI I’ve renamed the patches, only `ParaView_MR_5446.patch` will be backported to 5.10.1, the other one will have to wait for 5.11.0.
