I am building both Paraview and Plugin. The Paraview binary is created and appears to be working fine. However, I am unable to create the .so file for the Plugin.
Any advice will be highly appreciated. Kindly let me know If more details are necessary.
I never tried. But the plugins which are already part of Paraview such as “PanaromicProjectionView” etc were built and there exists the corresponding .so file.
It may be very naive to ask, but being totally new to Paraview building process, I thought that Plugins will be built automatically while Paraview is being built !
Please advise me how to build the Plugin separately, after/during compiling/building Paraview.
B) The PluginRoot folder was copied into paraviewSource/Plugin/ folder before compiling paraview.
C) It was supposed to generate the .so file in ~/paraview/paraview_build//lib/paraview-5.8/plugins/pluginName/pluginName.so;
D) However, the pluginName folder nor the .so file is generated.
E) Please advise if any additional build step is needed .
Let me express my sincere gratitude for guiding me to build the Plugin library.
Of course I had to adopt an overkill, i.e. changing my distribution to Ubuntu 20.04. This is due to my problem of installing libhdf5-dev from Ubuntu repository in Ubuntu 18.04LTS.
Now in Ubuntu20.04LTS, I first built paraview binary and then built the PlugIn after installing cmake and ccmake. Here I am writing my steps which may help some one trying to install some custom plugin.
Note that I am describing the folder I cloned paraview in as “paraview_clone” r and my paraview buid directory is “paraview_clone//paraview_build”. The custom plugin was a copied to “paraview_clone/Plugins/PluginName” folder.
My steps are:
Build paraview in “paraview_clone/paraview_build” as usual
cd ../paraview_build
cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release ..
ninja
This creates paraview binary at …/paraview_build/bin folder.
Next step is
cd '../PluginName'
mkdir build
cd build
ccmake -DParaView_DIR=/home/sukumar/paraview/paraview_build ../
make
The ' ccmake...' above This will invoke cmake-gui where configure options are shown. Edit the BUILD_TYPE as Release and press g to generate the configure file, and exit the cmake-gui
This will create the PluginName.so file at ../PluginName/build/lib/PluginName/
Hope this would help some-one new to cmake/ccmake tools like me.
Warm Regards and thanks @mwestphal once again for supporting a beginner like me with compassion.