Hi. I want to share that the following modifications to the Arch Linux package of paraview (version 5.12.0, commit 6bafb5b) allowed me to build with CMake and GNU Make (without Ninja), albeit without documentation.
Relevant to the developers: I had to change some source files slightly. It may be that some of the modifications are not completely needed.
If it is useful in any way, and you want to incorporate it into the repository, I don’t need attribution at all. If you still need a name to track the change, just use eDgar edgar@discourse.paraview.org. Thank you for ParaView!
--- ParaView-v5.12.0/Clients/ParaView/CMakeLists.txt
+++ ParaView-v5.12.0/Clients/ParaView/CMakeLists.txt 2024-05-12
@@ -33,6 +33,12 @@
ParaViewMainWindow.h
ParaViewMainWindow.ui)
+if (PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION)
+ set(doc_dir "${CMAKE_CURRENT_SOURCE_DIR}/Documentation")
+ include_directories(${doc_dir})
+ list(APPEND sources "${doc_dir}/ParaViewDocumentationInitializer.h")
+endif()
+
find_package("Qt${PARAVIEW_QT_MAJOR_VERSION}" REQUIRED QUIET COMPONENTS Core Widgets)
if (APPLE)
@@ -102,7 +108,8 @@
if (PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION)
target_link_libraries(paraview
PRIVATE
- vtkParaViewDocumentation)
+ vtkParaViewDocumentation)
+ # target_include_directories(paraview PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Documentation")
endif ()
if(PARAVIEW_QT_MAJOR_VERSION GREATER "5")
--- ParaView-v5.12.0/Qt/ApplicationComponents/CMakeLists.txt
+++ ParaView-v5.12.0/Qt/ApplicationComponents/CMakeLists.txt 2024-05-12
@@ -218,6 +218,9 @@
)
set(ui_files
+ Resources/UI/pqNewMaterialDialog.ui
+ Resources/UI/pqMaterialEditor.ui
+
Resources/UI/pqAxesToolbar.ui
Resources/UI/pqBackgroundEditorWidget.ui
Resources/UI/pqBoxPropertyWidget.ui
@@ -297,7 +300,7 @@
Resources/UI/pqEditMacrosDialog.ui)
endif ()
-if (paraview_use_materialeditor)
+# if (paraview_use_materialeditor)
list(APPEND classes
pqMaterialAttributesDelegate
pqMaterialEditor
@@ -306,7 +309,7 @@
list(APPEND ui_files
Resources/UI/pqMaterialEditor.ui
Resources/UI/pqNewMaterialDialog.ui)
-endif ()
+# endif ()
if (PARAVIEW_USE_QTHELP)
list(APPEND qt_components
--- ParaView-v5.12.0/Clients/ParaView/Documentation/CMakeLists.txt
+++ ParaView-v5.12.0/Clients/ParaView/Documentation/CMakeLists.txt 2024-05-12
@@ -51,6 +51,13 @@
find_package("Qt${PARAVIEW_QT_MAJOR_VERSION}" REQUIRED QUIET COMPONENTS Core)
+set(headers
+ ParaViewDocumentationInitializer.h)
+
+set(sources
+ ParaViewDocumentationInitializer.cxx
+ ParaViewDocumentationInitializer.h)
+
add_library(vtkParaViewDocumentation STATIC
ParaViewDocumentationInitializer.cxx
ParaViewDocumentationInitializer.h
*** ParaView-v5.12.0/Qt/ApplicationComponents/pqNewMaterialDialog.cxx
--- ParaView-v5.12.0/Qt/ApplicationComponents/pqNewMaterialDialog.cxx 2024-05-12
***************
*** 2,7 ****
--- 2,8 ----
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#include "pqNewMaterialDialog.h"
+ #include "ui_pqNewMaterialDialog.h"
#include "vtkOSPRayMaterialLibrary.h"
--- ParaView-v5.12.0/Qt/ApplicationComponents/pqMaterialEditor.h
+++ ParaView-v5.12.0/Qt/ApplicationComponents/pqMaterialEditor.h 2024-05-12
@@ -14,6 +14,12 @@
class vtkSMProxy;
class QDockWidget;
+namespace Ui
+{
+ class pqMaterialEditor;
+}
+
+
/**
* @brief pqMaterialEditor is a widget that can be used to edit the OSPRay materials.
*
@@ -19,7 +19,7 @@ depends=(qt5-tools qt5-svg intel-tbb openmpi ffmpeg
jsoncpp libjsoncpp.so libharu libxml2 lz4 xz python-mpi4py netcdf
libogg libpng pugixml libtheora libtiff zlib verdict)
optdepends=(python-matplotlib python-pandas)
-makedepends=(cmake boost mesa gcc-fortran ninja qt5-xmlpatterns cli11 eigen utf8cpp fast_float)
+makedepends=(cmake boost mesa gcc-fortran ninja qt5-xmlpatterns cli11 eigen utf8cpp fast_float qt5-tools)
# pegtl: https://gitlab.kitware.com/vtk/vtk/-/issues/18151
# rapidjson: https://gitlab.kitware.com/vtk/vtk/-/issues/18366
# fmt: https://gitlab.kitware.com/paraview/paraview/-/issues/21315
@@ -36,7 +36,7 @@ sha256sums=('d289afe7b48533e2ca4a39a3b48d3874bfe67cf7f37fdd2131271c57e64de20d'
'd1cdb4a81db280d6b21bee3d9e5f8fc3a87f00a909d33850a1964c72091ec138'
'844d44a14817c656ba8d6998298785125a98f03f7b5ece58d966c226db1e0d83'
'fda145052b10f197cccbc2d02a3bba24b1aa7b512b72f4713f7d9cb0230bf8c9'
- 'faf3fd2eea2f73a07f5dcbd67920161a07ae554e008ad1e4099153fec2882278'
+ 'fa89e770efaecc2bd45f1cd720ee21c1028f2229c8b0632eb4541a25ef764f6e'
'71b3e049f4086ad570c0ffe3d9625ce63ee8abbf42017837495145e43d6aceab')
prepare() {
@@ -60,43 +60,57 @@ prepare() {
build() {
export CFLAGS+=" -ffat-lto-objects"
export CXXFLAGS+=" -ffat-lto-objects"
- cmake -B build -S ParaView-v${pkgver/R/-R} -G Ninja \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/opt/paraview \
- -DCMAKE_INSTALL_LICENSEDIR=share/licenses/paraview \
- -DCMAKE_CXX_STANDARD=17 \
- -DVTK_IGNORE_CMAKE_CXX11_CHECKS=ON \
- -DCMAKE_SKIP_INSTALL_RPATH=OFF \
- -DPARAVIEW_ENABLE_ADIOS2=ON \
- -DPARAVIEW_ENABLE_FFMPEG=ON \
- -DPARAVIEW_ENABLE_FIDES=ON \
- -DPARAVIEW_ENABLE_GDAL=ON \
- -DPARAVIEW_ENABLE_LAS=ON \
- -DPARAVIEW_ENABLE_MOTIONFX=ON \
- -DPARAVIEW_ENABLE_PDAL=ON \
- -DPARAVIEW_ENABLE_RAYTRACING=ON \
- -DPARAVIEW_ENABLE_VISITBRIDGE=ON \
- -DPARAVIEW_ENABLE_XDMF3=ON \
- -DPARAVIEW_USE_MPI=ON \
- -DPARAVIEW_USE_PYTHON=ON \
- -DPARAVIEW_VERSIONED_INSTALL=OFF \
- -DPARAVIEW_BUILD_WITH_EXTERNAL=ON \
- -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
- -DVTKm_ENABLE_MPI=ON \
- -DCATALYST_USE_MPI=ON \
- -DFIDES_USE_EXTERNAL_RAPIDJSON=OFF \
- -DVTK_MODULE_USE_EXTERNAL_ParaView_vtkcatalyst=OFF \
- -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF \
- -DVTK_MODULE_USE_EXTERNAL_VTK_fmt=OFF \
- -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF \
- -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF \
- -DVTK_MODULE_USE_EXTERNAL_VTK_token=OFF \
+ _confopts=(
+ -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_INSTALL_PREFIX=/opt/paraview
+ -DCMAKE_INSTALL_LICENSEDIR=share/licenses/paraview
+ -DCMAKE_CXX_STANDARD=17
+ -DVTK_IGNORE_CMAKE_CXX11_CHECKS=ON
+ -DCMAKE_SKIP_INSTALL_RPATH=OFF
+ -DPARAVIEW_ENABLE_ADIOS2=ON
+ -DPARAVIEW_ENABLE_FFMPEG=ON
+ -DPARAVIEW_ENABLE_FIDES=ON
+ -DPARAVIEW_ENABLE_GDAL=ON
+ -DPARAVIEW_ENABLE_LAS=ON
+ -DPARAVIEW_ENABLE_MOTIONFX=ON
+ -DPARAVIEW_ENABLE_PDAL=ON
+ -DPARAVIEW_ENABLE_RAYTRACING=ON
+ -DPARAVIEW_ENABLE_VISITBRIDGE=ON
+ -DPARAVIEW_ENABLE_XDMF3=ON
+ -DPARAVIEW_USE_MPI=ON
+ -DPARAVIEW_USE_PYTHON=ON
+ -DPARAVIEW_VERSIONED_INSTALL=OFF
+ -DPARAVIEW_BUILD_WITH_EXTERNAL=ON
+ -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP
+ -DVTKm_ENABLE_MPI=ON
+ -DCATALYST_USE_MPI=ON
+ -DFIDES_USE_EXTERNAL_RAPIDJSON=OFF
+ -DVTK_MODULE_USE_EXTERNAL_ParaView_vtkcatalyst=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_fmt=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_token=OFF
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL=YES
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=YES
+ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON
+ # Does not work
+ # -DPARAVIEW_QT_VERSION:STRING="5"
+ # Did not try
+ # -DPARAVIEW_QT_VERSION:STRING="5.15.13"
+ -DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF
+ -DPARAVIEW_USE_QTWEBENGINE=OFF
+ -DOSPRAY_ROOT=/usr
-Wno-dev
- ninja -C build ${MAKEFLAGS}
+ # -G Ninja
+ )
+ cmake -B build -S ParaView-v${pkgver/R/-R} "${_confopts[@]}"
+ # ninja -C build ${MAKEFLAGS}
+ make -C build
}
package() {
- DESTDIR="${pkgdir}" ninja -C build install
+ make DESTDIR="${pkgdir}" -C build install
# Install wrappers
install -Dm755 paraview-wrapper.sh "${pkgdir}"/usr/bin/paraview-wrapper
My system
qt5-tools 5.15.13+kde+r4-1 (qt5)
qt5-svg 5.15.13+kde+r6-1 (qt5)
onetbb 2021.12.0-2
hdf5-openmpi 1.14.3-3
med-openmpi 4.1.1-8
netcdf-openmpi 4.9.2-4
openmpi 5.0.3-1
paraview 5.12.0-8
pnetcdf-openmpi 1.12.3-5
python-h5py-openmpi 3.11.0-1
scotch 7.0.4-1
ffmpeg 2:6.1.1-7
python-imageio-ffmpeg 0.4.9-1
qt6-multimedia-ffmpeg 6.7.0-1
adios2 2.10.0-2
liblas 1.8.1.r128+gded46373-8
ospray 3.1.0-2
pdal 2.7.1-1
python-numpy 1.26.4-2
protobuf 25.3-4
cgns 4.4.0-1
double-conversion 3.3.0-1
expat 2.6.2-1
freetype2 2.13.2-1
gdal 3.8.5-3
gl2ps 1.4.2-3
glew 2.2.0-6
hdf5-openmpi 1.14.3-3
python-h5py-openmpi 3.11.0-1
libjpeg-turbo 3.0.2-2
jsoncpp 1.9.5-2
jsoncpp 1.9.5-2
libharu 2.4.4-1
libxml2 2.12.6-2
perl-alien-libxml2 0.19-2
python-lxml 5.1.0-3
xmlsec 1.3.4-1
lz4 1:1.9.4-3
xz 5.6.1-3
python-mpi4py 3.1.5-5
netcdf-openmpi 4.9.2-4
pnetcdf-openmpi 1.12.3-5
libogg 1.3.5-1
libpng 1.6.43-1
pugixml 1.14-1
libtheora 1.1.1-6
libtiff 4.6.0-4
haskell-zlib 0.6.3.0-60
libdeflate 1.20-1
minizip 1:1.3.1-2
perl 5.38.2-1
zlib 1:1.3.1-2
zlib-ng 2.1.6-1
verdict 1.4.2-1
python-matplotlib 3.8.3-3
python-pandas 1.5.3-4
cmake 3.29.2-1
extra-cmake-modules 6.1.0-1 (kf6)
python-scikit-build-core 0.8.2-1
rkcommon 1.13.0-1
boost 1.83.0-7
boost-libs 1.83.0-7
glu 9.0.3-1
mesa 1:24.0.6-2
vulkan-mesa-layers 1:24.0.6-2
gcc-fortran 13.2.1-6
ninja 1.12.0-2
qt5-xmlpatterns 5.15.13-1 (qt5)
cli11 2.4.1-1
eigen 3.4.0-2
utf8cpp 4.0.5-1
fast_float 6.1.0-2
qt5-tools 5.15.13+kde+r4-1 (qt5)
CPU: 12th Gen Intel(R) Core™ i7-1260P, 16 CPUs,
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize arch_lbr ibt flush_l1d arch_capabilities
Linux 6.9.0-rc6-gnu