|
[Sponsors] |
[OpenFOAM.org] Trying to build OpenFOAM 3.0.x with MacPorts |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 17, 2015, 17:24 |
Trying to build OpenFOAM 3.0.x with MacPorts
|
#1 |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
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] Last edited by wyldckat; February 7, 2016 at 15:24. Reason: see "Moderator note:" |
|
November 22, 2015, 10:01 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I can't answer for Bernhard, but I believe he's been pretty busy with a ton of work, based on what I've seen of his time spent here on the forum lately. Which in a sense is great, because it can mean that this way he's able to put more time into PyFoam and swak4Foam
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. |
|
November 30, 2015, 11:56 |
|
#3 | |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
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. Last edited by jjstickel; November 30, 2015 at 13:39. |
||
November 30, 2015, 13:38 |
|
#4 |
Senior Member
|
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? |
|
December 1, 2015, 10:46 |
|
#5 | |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
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. |
||
February 7, 2016, 12:13 |
OpenFOAM 3.0.x on Mac OS X and Macports
|
#6 |
New Member
Join Date: Feb 2014
Posts: 17
Rep Power: 12 |
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? |
|
February 19, 2016, 17:02 |
success with MacPorts!
|
#7 |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
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 cgal metis ccache bison boost Good luck! |
|
March 18, 2016, 05:27 |
|
#8 | |
Member
Join Date: Aug 2012
Posts: 33
Rep Power: 13 |
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 type 'std::istream *' (aka 'basic_istream<char> *') is a pointer; maybe you meant to use '->'? yyin.rdbuf(std::cin.rdbuf()); Quote:
|
||
March 18, 2016, 11:46 |
|
#9 | |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
Quote:
|
||
March 18, 2016, 18:14 |
|
#10 | |
Member
Join Date: Aug 2012
Posts: 33
Rep Power: 13 |
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? |
||
March 21, 2016, 08:37 |
|
#11 |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4Foam and OpenFoam 3.0.x | fs82 | OpenFOAM Community Contributions | 38 | September 10, 2018 17:44 |
[OpenFOAM.org] OpenFOAM 3.0.x compilation error on OpenSUSE 13.1 | Wang@nitech | OpenFOAM Installation | 3 | January 22, 2016 09:02 |
OpenFoam 1.6-ext - RPM build errors | preibie | OpenFOAM | 12 | September 8, 2011 03:12 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |