Hello,
I would like to link OpenFOAMv2212 (build from source) with CalculiX.
(my goal is to use a custom openfoam solver later)
System:
Ubuntu 22.04
OpenFOAMv2212 (build from source)
CalculiX - ccx_2.20
preCICE - libprecice2_2.5.0_jammy.deb
openfoam-adapter - v1.2.3
I stuck to the Quickstart-Wiki apart from point 2. because OpenFOAMv2212 was already running on my computer.
By compiling the openfoam-adapter - v1.2.3, the following error appears:
=== ERROR: Building completed with linking problems: there were undefined symbols. ===
Possible causes:
- Is preCICE discoverable at runtime? Check the content of pkg-config output above.
- Did anything go wrong while installing preCICE? Can you run any other preCICE tutorials?
- Did anything go wrong while installing OpenFOAM? Can you run any other OpenFOAM tutorials?
See wmake.log and ldd.log for more details.
Attach your Allwmake.log, wmake.log, and ldd.log when asking for help.
preCiCE and CalculiX run fine: ( tutorial: partitioned-elastic-beam)
OpenFOAM v2212 runs fine too.
OpenFOAM cannot find preCICE at linking time, while it can find it at build time. The most common case is that preCICE is built from source, but not fully discoverable. See this documentation page: Building from source - Finding | preCICE - The Coupling Library The other case is that preCICE is installed from a Debian package for the wrong distribution version. Are you sure you are using Ubuntu 22.04 and libprecice2_2.5.0_jammy.deb? Because this combination should just work.