as long as you use a separate, "standard" build on a workstation with the co-processing script generator plugin
I found and used this plugin in standard ParaView binary distribution.
Thanks for the option to disable Qt, I hope it will work. It's also mentioned in ParaView official instruction (PV+OSMesa compile page), I just didn't know about it.
I already know about CMake caching, need to delete build directory contents periodically...
[!] Update
=========
I installed (compiled) ParaView 4.3.1 for offscreen rendering with Mesa library 10.5.4. But I encountered a problem compiling Code_Saturne . The only option I added relative to normal (working) configuration is:
--with-catalyst=/Programs/ParaView-4.3.1/build-catalyst
Directory is an installation prefix of Catalyst (offline-edition) ParaView that I've built with options recommended here:
http://www.paraview.org/Wiki/ParaView:Build_And_Install
http://www.paraview.org/Wiki/ParaView_And_Mesa_3D
Entire options set for Code_Saturne is:
Code: Select all
./configure --prefix=/Programs/Code_Saturne-4.0.2/build/ \
--with-med=/Programs/med-3.0.8/build/ \
--with-hdf5=/Programs/hdf5-1.8.10/build/ \
--with-mpi=/Programs/openmpi-1.8.4/build/ \
--with-cgns=/Programs/cgnslib-3.2.1/build \
--with-scotch=/Programs/scotch-5.1.12/build \
--with-catalyst=/Programs/ParaView-4.3.1\build-catalyst \
--enable-openmp
Code: Select all
checking for cmake... /usr/bin/cmake
CMake Error at CMakeLists.txt:5 (FIND_PACKAGE):
By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ParaView",
but CMake did not find one.
Could not find a package configuration file provided by "ParaView" with any
of the following names:
ParaViewConfig.cmake
paraview-config.cmake
Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
"ParaView_DIR" to a directory containing one of the above files. If
"ParaView" provides a separate development package or SDK, be sure it has
been installed.
configure: error: in `/Programs/Code_Saturne-4.0.2/source':
configure: error: Catalyst co-processing support requested, but test for Catalyst failed!
See `config.log' for more details
Code: Select all
<Normal compilation>
...
fvm_to_catalyst.cxx:1049: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1049: error: вЂvtkCPProcessor’ has not been declared
fvm_to_catalyst.cxx:1053: error: вЂvtkMPICommunicatorOpaqueComm’ was not declared in this scope
fvm_to_catalyst.cxx:1053: error: expected вЂ;’ before вЂvtk_comm’
fvm_to_catalyst.cxx:1055: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1055: error: вЂvtk_comm’ was not declared in this scope
fvm_to_catalyst.cxx:1058: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1063: error: вЂvtkCPPythonScriptPipeline’ was not declared in this scope
fvm_to_catalyst.cxx:1063: error: вЂpipeline’ was not declared in this scope
fvm_to_catalyst.cxx:1063: error: вЂvtkCPPythonScriptPipeline’ is not a class or namespace
fvm_to_catalyst.cxx:1087: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1097: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx:1097: error: вЂvtkCPDataDescription’ has not been declared
fvm_to_catalyst.cxx:1098: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx: At global scope:
fvm_to_catalyst.cxx:955: warning: unused parameter вЂpath’
fvm_to_catalyst.cxx:955: warning: unused parameter вЂtime_dependency’
fvm_to_catalyst.cxx: In function вЂvoid* fvm_to_catalyst_finalize_writer(void*)’:
fvm_to_catalyst.cxx:1135: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1136: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1137: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx: In function вЂvoid fvm_to_catalyst_set_mesh_time(void*, int, double)’:
fvm_to_catalyst.cxx:1184: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx: In function вЂvoid fvm_to_catalyst_flush(void*)’:
fvm_to_catalyst.cxx:1427: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1427: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx:1428: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
fvm_to_catalyst.cxx:1429: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂprocessor’
fvm_to_catalyst.cxx:1429: error: вЂstruct fvm_to_catalyst_t’ has no member named вЂdatadesc’
make[3]: *** [fvm_catalyst_la-fvm_to_catalyst.lo] Error 1
make[3]: Leaving directory `/Programs/Code_Saturne-4.0.2/source/src/fvm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Programs/Code_Saturne-4.0.2/source/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Programs/Code_Saturne-4.0.2/source'
make: *** [all] Error 2
I found the reason for these errors but don't know how to correct it. It seems that compiler doesn't know where the Catalyst sources and headers are. It's because there is no option (or I don't know it) in configure script to specify Catalyst sources directory. I think I just do/set something wrong...
[Sorry, here was my wrong idea, I deleted this text]
Intermediate update
==================
I found significant differences in directory structure of ParaView 3.12 and 4.3.1. Header files needed for catalyst adapter are in different directories. I'm now trying to compile ParaView 3.12 with "catalyst options" (for OSMesa).
I can't compile ParaView 3.12! Settings in ccmake are from official web page:
http://www.paraview.org/Wiki/ParaView_And_Mesa_3D
It worked OK for version 4.3.1 but ParaView 3.12 don't compile. Lots of unresolved (undefined) references to [vtkXRenderWindow...], XtDispatchEvent e.t.c., although VTK_USE_X is off. I repeated setting ccmake + generating Makefile from scratch but these undefined externals are still there!
Please, help!