Not a script, but I can tell you what I did!
My issue
- I have Ubuntu 24.04 on WSL with the precompiled v2606
- precompiled .com versions seem to be shipped with cfMesh (I'm not sure but I think it's cfMesh-1.1.2, from 2016) and the library is located in ``$FOAM_LIBBIN/libmeshLibrary.so``
- you can download cfMesh-1.2.0 sources here:
https://sourceforge.net/projects/cfmesh/files/1.2.0/ and it's supposed to compile in ``$FOAM_USER_LIBBIN``
- Compilation errors seem to be related the cfMesh versions and/or library locations crashing
Workaround
- source your OF environment
- rename ``$FOAM_LIBBIN/libmeshLibrary.so`` to ``$FOAM_LIBBIN/libmeshLibrary.so.bak``
- download and unpack ``cfMesh-1.2.0.tgz``wherever your want
- run the ``Allwmake`` script to compile in ``$FOAM_USER_LIBBIN`` and it should work
Few more things I didn't try
- If you compiled OF yourself I think it should be straightforward to download and compile cfMesh sources as there is no prior cfMesh stuff compiled in the OF environment.
- It may be possible to compile cfMesh directly in ``$FOAM_LIBBIN`` rather that ``$FOAM_USER_LIBBIN``. I would expect it to overwrite the existing library but I didn't try.