Skip to content

Compilation changes #385

@Patol75

Description

@Patol75

I attempted to compile Fluidity today on my personal system (Ubuntu 22.04), and I just wanted to report some modifications I had to make to pass configure and compile stages:

  • PETSc Using PETSc 3.21.1, I believe rules becomes rules_util.mk in petsc_makefile. Another thing to note is that PETSC_NULL is deprecated and should be replaced by PETSC_NULLPTR (test_main.cpp files and preprocessor/fluidity_check_options.cpp)
  • VTK Using VTK 9.1, I had to supply VTK_FLAGS="-I/usr/include/vtk-9.1" and VTK_LIBS="-L/usr/lib/x86_64-linux-gnu -lvtkCommonCore-9.1 -lvtkCommonDataModel-9.1 -lvtkIOXML-9.1 -lvtkIOCore-9.1 -lvtkCommonExecutionModel-9.1 -lvtkParallelMPI-9.1 -lvtkIOLegacy-9.1 -lvtkFiltersVerdict-9.1 -lvtkIOParallelXML-9.1 -lvtkFiltersGeneral-9.1 -lvtksys-9.1 -lvtkloguru-9.1 -lvtkCommonTransforms-9.1 -lvtkCommonMisc-9.1 -lvtkCommonSystem-9.1 -lvtkCommonMath-9.1 -lvtkIOXMLParser-9.1 -lvtkParallelCore-9.1 -lvtkverdict-9.1 -lvtkFiltersCore-9.1 -lvtkCommonComputationalGeometry-9.1". Additionally, I modified the line this_vtk_version=$(grep -E 'VTK_MAJOR_VERSION\s[0-9]+' $i/vtkVersionMacros.h | sed 's/#define VTK_MAJOR_VERSION //') to account for the fact that VTK_MAJOR_VERSION appears twice now in vtkVersionMacros.h.

I imagine there will be more problems with the newly released 24.04. @stephankramer I am happy to have a look at some of these issues in the next few days. In light of gh-384, is it best if I try to finish the CMake build on 22.04 (which should also play nicely on 24.04) or try to get a working Autotools on 24.04?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions