Develop custom paraview-based app with libraries embedded statically

I have built my app in Release mode, which still depends on paraview dll libraries. And I have to put my exe program into bin directories where all the paraview dependencies are located in order to run.
I think there should be ways to produce a solo exe program with all the libraries embedded statically(I tried statical plugins and it works). So I built paraview from source again with cmake option BUILD_SHARED_LIBS set to false, which produced a 3GB lib and seemed cannot be read by application:
image


thus the build process failed. Iā€™m looking for ways to fix this.

Thanks.

Yoshino

You can work around this issue with by turning off PARAVIEW_USE_VTKM cmake option and rebuilding.

1 Like