Compilation of superbuild with a previous version

Dear support,

I am having problems with compiling the superbuld with a previous version. Firstly, it doesn’t seem to compile the paraview binary that calls the GUI in the folder /install/bin. Secondly some readers are not compiled either: I have the error 'VisItTecplotBinaryReader' is not defined when running my scripts with pvbatch.

Starting from 0 in an arbitrary directory (typically /home), I use the following commands to download and compile Paraview with the version v5.9.1:

git clone --recursive https://gitlab.kitware.com/paraview/paraview-superbuild.git

cd paraview-superbuild
git fetch origin 
git checkout v5.9.1 
git submodule update
cd ..

# With GUI
cmake \
-GNinja \
-DPARAVIEW_ENABLE_VISITBRIDGE=ON \
-DENABLE_python3=ON \
-DENABLE_matplotlib=ON \
-DENABLE_mpi=ON \
-DENABLE_paraview=ON \
-DCMAKE_BUILD_TYPE=Release \
./paraview-superbuild

# Compilation command
ninja

Could someone give me insights of why this could be happening in my machine?

Thank you in advance.

Hi,

-DENABLE_qt5=ON

I have the error 'VisItTecplotBinaryReader' is not defined

-DENABLE_visitbridge=ON

Best,

Dear Mathieu,

Thank you so much, I tried with these 2 flags but the ninja compiler fails at some point:

ninja: build stopped: subcommand failed.

When I specified the following CMAKE flags:

cmake \
-GNinja \
-DENABLE_visitbridge=ON \
-DENABLE_qt5=ON \
-DENABLE_python3=ON \
-DENABLE_matplotlib=ON \
-DENABLE_mpi=ON \
-DENABLE_paraview=ON \
-DCMAKE_BUILD_TYPE=Release \
./paraview-superbuild

I had the following output:

-- Determined source version for paraview: 5.9.1
-- Enabling cxx11 as requested.
-- Enabling bzip2 for: python3
-- Enabling zlib for: freetype, matplotlib, png, python3, qt5
-- Enabling png for: fontconfig, freetype, matplotlib, python3, qt5
-- Enabling ffi for: python3
-- Enabling sqlite for: python3
-- Enabling python3 as requested.
-- Enabling python for: matplotlib, numpy, pybind11, pythoncycler, pythoncython, pythondateutil, pythonkiwisolver, pythonpyparsing, pythonsetuptools, pythonsix, pytz
-- Enabling pythonsetuptools for: matplotlib, pythoncycler, pythoncython, pythondateutil, pythonkiwisolver, pythonpyparsing, pythonsix, pytz
-- Enabling pythoncython for: numpy
-- Enabling numpy for: matplotlib
-- Enabling freetype for: fontconfig, matplotlib, qt5
-- Enabling pythondateutil for: matplotlib
-- Enabling pytz for: matplotlib
-- Enabling pythonpyparsing for: matplotlib
-- Enabling pythonsix for: pythoncycler
-- Enabling pythoncycler for: matplotlib
-- Enabling pythonkiwisolver for: matplotlib
-- Enabling matplotlib as requested.
-- Enabling mpi as requested.
-- Enabling nlohmannjson as requested.
-- Enabling boost for: visitbridge
-- Enabling libxml2 for: fontconfig
-- Enabling gperf for: fontconfig
-- Enabling utillinux for: fontconfig
-- Enabling fontconfig for: qt5
-- Enabling qt5 as requested.
-- Enabling visitbridge as requested.
-- Enabling pybind11 as requested.
-- Enabling paraview as requested.
-- Building projects: cxx11, bzip2, zlib, png, ffi, sqlite, python3, python, pythonsetuptools, pythoncython, numpy, freetype, pythondateutil, pytz, pythonpyparsing, pythonsix, pythoncycler, pythonkiwisolver, matplotlib, mpi, nlohmannjson, boost, libxml2, gperf, utillinux, fontconfig, qt5, visitbridge, pybind11, paraview
CMake Warning (dev) at superbuild/cmake/SuperbuildMacros.cmake:213 (message):
  Optional dependencies for python not found: python2
Call Stack (most recent call first):
  superbuild/cmake/SuperbuildMacros.cmake:305 (superbuild_add_project)
  superbuild/projects/python.cmake:6 (superbuild_add_dummy_project)
  superbuild/cmake/SuperbuildMacros.cmake:1054 (include)
  superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at superbuild/cmake/SuperbuildMacros.cmake:213 (message):
  Optional dependencies for pybind11 not found: python2
Call Stack (most recent call first):
  superbuild/projects/pybind11.cmake:6 (superbuild_add_project)
  superbuild/cmake/SuperbuildMacros.cmake:1057 (include)
  superbuild/CMakeLists.txt:169 (superbuild_process_dependencies)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/cjimenez2/Documents/ParaViewSuperbuild

I hope that this helps to find the issue.

Kind regards.

Please share the actual error.

checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64 -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating dtpoolsconf.h
config.status: executing depfiles commands
config.status: executing libtool commands
Configuration completed.
[172/253] Performing download step (download, verify and extract) for 'qt5'
-- Downloading...
   dst='/home/cjimenez2/Documents/ParaViewSuperbuild/downloads/qt-everywhere-src-5.12.9.tar.xz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://www.paraview.org/files/dependencies/qt-everywhere-src-5.12.9.tar.xz'
-- verifying file...
       file='/home/cjimenez2/Documents/ParaViewSuperbuild/downloads/qt-everywhere-src-5.12.9.tar.xz'
-- Downloading... done
-- extracting...
     src='/home/cjimenez2/Documents/ParaViewSuperbuild/downloads/qt-everywhere-src-5.12.9.tar.xz'
     dst='/home/cjimenez2/Documents/ParaViewSuperbuild/superbuild/qt5/src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
ninja: build stopped: subcommand failed.

There is no error, what happends if you run ninja again ?

in any case, you can set -DUSE_SYSTEM_qt5=ON to avoid building Qt.

1 Like

Thank you so much for your help, this last flag fixed the problem!

1 Like