Compilation problem with the OpenFOAM adapter for OpenFOAM 7

Hi, @fsalmon!

We have created this Allwmake script to make building easier, but it still cannot handle all the corner cases. Furthermore, OpenFOAM (.org) often introduces breaking changes in every release, which we try to handle by maintaining different branches of the adapter. See our Notes on OpenFOAM for more compatibility details (you already found it while I was writing this). We are also looking for a better way to support multiple OpenFOAM versions at the same time.

The reason ldd.log shows no errors (in runtime linking) is because the previous step (wmake) has failed with the error you describe: could not open file MeshHandle.hpp. However, the error you get is actually a known warning and I always get the same. This simply says that wmake does not know at this point which other files MeshHandle.hpp depends upon and may need more time.

Click to see the beginning of the logfile I get
wmake libso .
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file preciceAdapterFunctionObject.C
could not open file MeshHandle.hpp for source file preciceAdapterFunctionObject.C due to No such file or directory
Making dependency list for source file Adapter.C
could not open file MeshHandle.hpp for source file Adapter.C due to No such file or directory
Making dependency list for source file DisplacementDelta.C
Making dependency list for source file Displacement.C
Making dependency list for source file Force.C
Making dependency list for source file FSI.C
could not open file MeshHandle.hpp for source file FSI/FSI.C due to No such file or directory
Making dependency list for source file CHT.C
could not open file MeshHandle.hpp for source file CHT/CHT.C due to No such file or directory
Making dependency list for source file SinkTemperature.C
Making dependency list for source file HeatTransferCoefficient.C
Making dependency list for source file HeatFlux.C
Making dependency list for source file KappaEffective.C
Making dependency list for source file Temperature.C
Making dependency list for source file CouplingDataUser.C
Making dependency list for source file Interface.C
could not open file MeshHandle.hpp for source file Interface.C due to No such file or directory
Making dependency list for source file Utilities.C

Note: The error Unknown function type preciceAdapterFunctionObject also means that something went wrong during building, which you correctly discovered in the wmake.log.