An error occurred when compiling openfoam-adapter

Hello, thank you very much for seeing this post, I had a problem compiling openfoam-adapter, I would very much like your help. The version I’m using is as follows:

Ubuntu22.04
Openfoam6
Install libprecice3_3.1.2 through the system package
Using the command git clone GitHub - precice/openfoam-adapter: OpenFOAM-preCICE adapter got the adapter

Here are my error logs:

I would be grateful if you could solve my problem

Hello Edwin,

Looks like your error log wasn’t uploaded. Could you try to post again?

Allwmake.log (892 Bytes)
wmake.log (45.6 KB)
Sorry for not being able to send it before, thank you very much for the reminder, sincerely hoping for your help.

@Edwin there is at the moment no support for any OpenFOAM.org in the latest version of the adapter. We mainly target the ESI versions and we are slowly working on supporting the Foundation versions again.

Thank you for your reply! So now I can only use the version from OpenFOAM.com, and if I still want to use OpenFOAM6, there won’t be a suitable adapter, is that correct?

@Edwin I finally cooked something. Could you please give it a try and give me some feedback?

I made a new repository for the Foundation-compatible adapter, since I expect this to diverge a lot from the main repository. I have now ported up to OpenFOAM 7, but I cannot easily get OpenFOAM 6 or earlier nowadays to develop or test. Please let me know if the adapter compiles and if the usual tutorials run as expected. I know it compiles for OpenFOAM 7, but I have not tried for OpenFOAM 6.

Disclaimer: OpenFOAM 6 was released in 2018. Consider upgrading to something newer. The ESI versions so far have been very stable, and OpenFOAM 6 is not that different from v2412. I have now collected some porting notes as well:

Thank you very much for your reply. I downloaded the openfoam-org-adapter using “git clone GitHub - precice/openfoam-org-adapter: OpenFOAM-preCICE adapter fork for OpenFOAM Foundation versions (work in progress)”, but there are still some errors when compiling.
Allwmake.log (892 Bytes)
wmake.log (163.1 KB)

You are trying to build the default branch (develop), which is synchronized with the main adapter’s develop. Please get the OpenFOAM6 branch:

git clone --branch OpenFOAM6 https://github.com/precice/openfoam-org-adapter.git

Everything seems to have improved, thank you very much for your help.Here are my compiled files, could you help me check if there are any other problems?
Allwmake.log (565 Bytes)
ldd.log (12.8 KB)
wmake.log (314.1 KB)

Nice, thanks!

I only skipped through wmake.log, I hope that the warnings are originating from OpenFOAM itself, for your compiler. But it can very much be the case that there is some incompatibility with the adapter.

Can you try running some tutorials as well? Ideally: