mrklein / openfoam-os-x

Patches for OpenFOAM(R) to build it on OS X
93 stars 33 forks source link

UPD: Foundation dev patch update to `20240117` #92

Closed staneuski closed 2 weeks ago

staneuski commented 9 months ago

Hello! Updated the Foundation dev patch to 20240117 tag. Thatks for this repo!

mrklein commented 9 months ago

Hi,

Thank you for the pull request. Could you explain how I should use your patch for compilation? I have downloaded patch file from the pull request, applied it, and did not manage to proceed:

alexey@capucine OpenFOAM-dev % git apply OpenFOAM-dev-20240117.patch 
alexey@capucine OpenFOAM-dev % source etc/bashrc 
etc/bashrc:.:169: no such file or directory: /Volumes/OpenFOAM/OpenFOAM-dev/etc/config.sh/mac/functions
/Volumes/OpenFOAM/OpenFOAM-dev/etc/config.sh/settings:310: command not found: _foam_increase_max_open_files
etc/bashrc:.:266: no such file or directory: /Volumes/OpenFOAM/OpenFOAM-dev/etc/config.sh/Mac/functions
alexey@capucine OpenFOAM-dev % ./Allwmake 
Allwmake /Volumes/OpenFOAM/OpenFOAM-dev
/Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/General/general:27: /Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/darwin64Clang/general: No such file or directory
/Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/General/general:28: /Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/darwin64Clang/c++: No such file or directory
make: Failed to remake makefile `/Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/darwin64Clang/c++'.
make: Failed to remake makefile `/Volumes/OpenFOAM/OpenFOAM-dev/wmake/rules/darwin64Clang/general'.
Wno-unused-function dirToString.c -o /Volumes/OpenFOAM/OpenFOAM-dev/wmake/platforms/darwin64Clang/dirToString
make: Wno-unused-function: No such file or directory
make: [/Volumes/OpenFOAM/OpenFOAM-dev/wmake/platforms/darwin64Clang/dirToString] Error 1 (ignored)
flex wmkdep.l; \
     -Wno-unused-function lex.yy.c -o /Volumes/OpenFOAM/OpenFOAM-dev/wmake/platforms/darwin64Clang/wmkdep
/bin/sh: -Wno-unused-function: command not found
make: *** [/Volumes/OpenFOAM/OpenFOAM-dev/wmake/platforms/darwin64Clang/wmkdep] Error 127

It seems the patch misses certain files. Or it is me, who misses something?