# ServerManager xml reference

**URL:** https://discourse.paraview.org/t/servermanager-xml-reference/4068
**Category:** ParaView Support
**Created:** [April 15, 2020, 1:24am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068 "2020-04-15T01:24:38Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 15, 2020, 1:24am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/1 "2020-04-15T01:24:38Z")

</div>

I’m looking for reference of ServerManager xml usage and [ParaViewWiki](https://www.paraview.org/Wiki/ParaView/Plugin_HowTo) tells that I should refer to [ParaViewGuide.pdf](https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.8&type=data&os=Sources&downloadFile=ParaViewGuide-5.8.0.pdf), where actually I found few things relevant.  
Any guidance for me? thanks.

---

<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: [April 15, 2020, 2:54am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/2 "2020-04-15T02:54:08Z")

</div>

- [http://www.paraview.org/Wiki/Plugin\_HowTo](http://www.paraview.org/Wiki/Plugin_HowTo)
- [http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMProxy.html](http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMProxy.html)
- [www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMProperty.html](http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMProperty.html)
- ParaView Guide, Chapters 18, 19 and 21
- Within the ParaView source
  - Examples/Plugins/ – starter examples
  - Plugins/

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 15, 2020, 7:25am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/3 "2020-04-15T07:25:11Z")

</div>

Thanks Mathieu for your guidance. I have successfully built the **MyElevationFilter** plugin example, and I guess the next step is to click “ **Build Solution** ” to generate **.dll** file?

---

<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: [April 15, 2020, 7:30am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/4 "2020-04-15T07:30:58Z")

</div>

I always build with Ninja-build on windows so I’m not sure.  
If you’ve successfully built the example, then you already should have a loadable .dll file in the build dir.

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 15, 2020, 7:50am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/5 "2020-04-15T07:50:29Z")

</div>

That’s the problem, I did build the example but found the .dll file nowhere. I’m wondering if I had missed any procedures.

---

<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: [April 15, 2020, 7:51am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/6 "2020-04-15T07:51:05Z")

</div>

make sure that you have enabled the plugin in cmake-gui

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 15, 2020, 8:04am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/7 "2020-04-15T08:04:42Z")

</div>

Yes. Is it because this filter is included in VTK(I’m able to load it in ParaView client by loading the **Elevation.xml** in paraview source) and so it need not to generate a **.dll**?

---

<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: [April 15, 2020, 8:05am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/8 "2020-04-15T08:05:40Z")

</div>

Yes, but it should still generate a loadable dll as well.

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 15, 2020, 8:06am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/9 "2020-04-15T08:06:48Z")

</div>

Ok, maybe this isn’t a paraview issue, I will look into that.  
Thanks.

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 18, 2020, 12:31pm UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/10 "2020-04-18T12:31:03Z")

</div>

Hello Mathieu, I think the problem got fixed, however not in an elegant way. The solution is to manually set cmake var **BUILD\_SHARED\_LIBS** to **ON** in the top level CMakeLists.txt. Like this:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/884cd005d99c8dfa30407c7962447e6ae574c617.png)  
Then the build project will generate **.dll** file correctly as I wish. The keynote turn out to be that once a _Plugin_ gets built as a solo project, instead of part of the _ParaView_ project, this cmake var will be disabled somehow(it doesn’t appear on _CMake GUI_ variables lists anyway). Maybe there is another way for paraview to fix this, but this just works.  
And I found another topic quite similar to mine——[Build a plugin from examples](https://discourse.paraview.org/t/build-a-plugin-from-examples/1537).

---

<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: [April 20, 2020, 10:49am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/11 "2020-04-20T10:49:04Z")

</div>

Indeed, and that is the case with all the plugin example in ParaView.

I remember talking about that with @ben.boeckel and this solution was the one that was considered ok at the time.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 20, 2020, 3:42pm UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/12 "2020-04-20T15:42:45Z")

</div>

> [@Yoshino](#):
>
> The keynote turn out to be that once a _Plugin_ gets built as a solo project, instead of part of the _ParaView_ project, this cmake var will be disabled somehow(it doesn’t appear on _CMake GUI_ variables lists anyway). Maybe there is another way for paraview to fix this, but this just works.

That’s just the default behavior of CMake projects. `BUILD_SHARED_LIBS` is the variable controlling it, CMake sets up no default for it, and that means it is “off” and you get static by default.

ParaView can’t fix this because `find_package(anything)` should not be making these decisions for consumers.

---

<div class="post-metadata">

### Author: ![Yoshino](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@Yoshino](https://discourse.paraview.org/u/Yoshino)
#### Post date: [April 21, 2020, 1:08am UTC](https://discourse.paraview.org/t/servermanager-xml-reference/4068/13 "2020-04-21T01:08:11Z")

</div>

That makes sense, cmake var BUILD\_SHARED\_LIBS is not exclusive to paraview, users should be in control of it.
