Trying to build OpenFOAM 3.0.x with MacPorts
gschaider have you made a patch for 3.0.x? Thanks.
[Moderator note: Posts on this topic were moved from here: http://www.cfd-online.com/Forums/ope...oam-2-4-a.html] |
Quote:
Either way, Bernhard did mention in the past that he would happy to let anyone take over the work of providing said patches (I can't find the post for it right now :(). And I know that Alexey Matveichev has been putting a lot of work into maintaining patches for both OpenFOAM and foam-extend: https://github.com/mrklein/openfoam-os-x/wiki - Alexey's patches are designed to work with Homebrew, but due to how there have been recent issues with Macports (something something db48 something something), it might be best to switch to Homebrew and using Alexey's patches. |
Quote:
Ideally, we should work on a patch that applies to both Homebrew and Macports. I'm willing to help, but doing it on my own is beyond me. |
Hi,
Things to be adapted between patches: 1. Paths to third-party packages 2. wmake rules Since you are "rather invested" in Macports I gues, you can retrieve package installation prefix using port command. wmake rules could be taken from earlier OpenFOAM versions (or adapted from Linux rules). IIRC conditional compilation rules with __clang__ symbol are used only to suppress diagnostics in certain places. What were you problems during adaptation? |
Quote:
I do see the homebrew specific lines in the other /etc/config/ files and was able to adapt them to Macports. I don't think that is the issue. |
OpenFOAM 3.0.x on Mac OS X and Macports
Hey!
I'm looking for a way to compile OF 3.0.x on Mac OS X with Macports. Mr. Klein is providing a way of compiling OF 3.0.x using Homebrew (https://github.com/mrklein/openfoam-os-x). Is there a patch for compiling with Macports instead of Homebrew? |
success with MacPorts!
1 Attachment(s)
Working from Alexey's patch (with Homebrew focus), I have successfully compiled OpenFOAM-3.0.1 with MacPorts-supplied dependencies. This is with OS X Yosemite, 10.10.5; Xcode-7.2.1. Patch attached.
Important note: this patch has a few things hardcoded and needs improvement to apply to different use cases. For example, cgal, metis, and scotch version numbers are hardcoded in their respective config files in etc/config. It also presumes that Macports is located in /opt/local/. Also, perhaps of more significance, this patch only works for Apple Clang as the compiler, and with openmpi (not mpich). The previous 2.x patches provided by Bernhard Gschaider had a lot of extra code to enable use of gcc and either mpich or openmpi. I do not have the bandwidth to get that stuff included (I barely got this far). From Macports, you will need: Code:
scotch -mpich +openmpi Good luck! |
Any idea why is it not working with clang-3.8 from macports?
(EDIT: I actually get the same errors even if I use the apple clang compiler. any clue?) Code:
OpenFOAM/OpenFOAM-3.0.x/platforms/darwin64ClangDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L.C:5494:8: error: member reference Quote:
|
Quote:
|
Quote:
Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.3.0 Thread model: posix are you using repos version or 3.0.1? |
Quote:
|
All times are GMT -4. The time now is 02:03. |