Compiling Precice v3.2.0 with libxml 2.14.4

Hello,

I am working to setup a CFD code to do FSI I am working to install preCICE 3.2.0 on my Ubuntu 20.04 machine to do some development. I am using CMake to install precice. The versions I am using are c++ 9.4.0, Boost 1.74.0, Eigen3.40.0, LibXml2 2.14.4 compiling all from source. What I am finding is that when trying to compile ConfigParser.cpp it try’s to import SAX.h which is depreciated in LibXml2 2.14.4 SAX.h looks to be ported to SAX2.h and when I change the import to libxml/SAX2.h I am able to compile.

libxml2-v2.14.4/include/libxml2/libxml/SAX.h:15:4: warning: #warning "libxml/SAX.h is deprecated" [-Wcpp]
   15 |   #warning "libxml/SAX.h is deprecated"
precice-3.2.0/src/xml/ConfigParser.cpp:46:11: error: ‘xmlChar’ does not name a type
   46 |     const xmlChar  *localname,

Hi,

The 3.2 release sadly doesn’t support the 2.14 release of libxml2.
I fixed this on develop, so you can either downgrade libxml2 to 2.13, use your patch or use the precice develop version.

Best
Frédéric

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.