|
[Sponsors] |
[foam-extend.org] FOAM on Windows, Linux and Mac |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 7, 2015, 13:48 |
FOAM on Windows, Linux and Mac
|
#1 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Dear All,
A joint development effort between Alstom Power and Wikki has resulted in a unified source tree for the upcoming foam-extend-3.2 release. The idea is to produce a unified development line that compiles on all platforms without changes, renaming, hacking, patches or short-cuts. This has been achieved by introducing porting changes in the code, creating a native interface for the Windows OS in OSspecific/MSWindows and creating a proper build environment for all platforms. The next release is now under testing, and under command of the Release Manager (Francois, thank you!). We are keen to have the source build across all platforms and receive reports on success or failure. With the release, we will provide the usual rpm linux packages, and Mac OS X and Windows source and binary releases. On Windows, we use MinGW, gcc-4.8.2 compiler and wmake build system, consistent with all other platforms. Source code support is complete and the release works fine in parallel. Some basic info/instructions: * Linux builds natively, as before. Source etc/bashrc and execute Allwmake.firstinstall * Mac OS X: please switch to scotch600 in etc/bashrc. Source etc/bashrc and execute Allwmake.firstinstall * Windows: prepare build environment by following README.txt in doc/buildInstructions/Windows. Once this is in place, source etc/bashrc.mingw and execute Allwmake.mingw We have also tested binary release of the Windows compilation (libs and exe only), which works fine. If you wish to try building the source RIGHT NOW, please check out the source: git clone --branch nextRelease git://git.code.sf.net/p/openfoam-extend/foam-extend-3.1 and report on your experience. If you have suggestions for changes or how to facilitate the build, please drop me a line. Hrvoje Jasak, Wikki
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
August 27, 2015, 09:03 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning Hrvoje,
Thank you very much for this set of good news. I have not been close to a Windows computer yet, but I will hopefully be able to give it a swing in a week or so. I have one question with respect to the compatibility with Windows. I have noted that several files (and a few directories) have been attached the string "Template", e.g. Vector.H (in foam-extend-3.1) is now VectorTemplate.H (in foam-extend-3.2). Furthermore, I have found that "Time.[H,C]" has been renamed to "foamTime.[H,C]". Is this revised naming scheme adopted, because of problems with the lack of case-sensitivity in Windows? Thank you for your time, Niels P.S. I have succeeded to compile waves2Foam on foam-extend-3.2 with only minor efforts for crossVersionCompatibility. It has been surprisingly effortless, when one considers that foam-extend is now available on multiple operating systems.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 30, 2015, 17:31 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
It's what they (Microsoft/Apple) call a "user friendly feature"... given that a lot of people don't care much about the file names and can easily end up with two files that only differ in the letter case, resulting in some bad user experiences... edit: Sorry, don't what to give the idea of answering for Hrvoje, it's just that I'm very familiar with this topic and have been briefly monitoring from the outside how the port is being handled in foam-extend . Last edited by wyldckat; August 30, 2015 at 17:34. Reason: see "edit:" |
||
August 30, 2015, 18:11 |
|
#4 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Correct Bruno: we have now removed all name clashes, both within the same library or in cross-library linking.
We will re-do the lnInclude next and I am still reconsidering the move to hpp/cpp file naming. Would anyone be interested in building FOAM in Visual Studio, now that it is available for free? Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
August 30, 2015, 18:36 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Regarding name clashes, I suggest you keep a look out for "src/foam/primitives/char/char.H", because I had issues with the system's "char.h" in the past
Quote:
But I thought that it required ugly hacks in the source code and increase maintenance issues? Or is the latest MSVC now able to handle such a complex C++ code? |
||
August 31, 2015, 05:53 |
|
#6 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi Hrvoje,
the option of compiling OF in Visual Studio is an interesting option. Markus |
|
January 21, 2016, 22:46 |
mac os installation?
|
#7 |
Member
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 15 |
Hello
Im trying to install Immersed Boundary on MacOsX I didn't understand what were the specific instructions for Mac. So far I did mkdir -p $FOAM_RUN cd $FOAM_RUN/.. git clone git@github.com:wyldckat/ImmersedBoundary.git ImmersedBoundary cd ImmersedBoundary git checkout fe31 cd src ./Allwmake and Im getting this error: make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryEpsilonWallFunctionFvPatchScalarFi eld.o] Error 1 make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryOmegaWallFunctionFvPatchScalarFiel d.o] Error 1 make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryWallFunctionFvPatchFields.o] Error 1 Any clues? Thanks |
|
January 24, 2016, 07:54 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick questions:
Which foam-extend version are you using? Because if you are using foam-extend 3.2, then you do not need to use the code that is meant for foam-extend 3.1. The other question is this: If you are using foam-extend 3.1, then those error messages appear only at the end; therefore, what are the first error messages? To get a complete log of the build procedure, run: Code:
./Allwmake > log.make 2>&1 gzip < log.make > log.make.gz
__________________
|
|
Tags |
openfoam on mac os x, openfoam on windows |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Caelus: fork of OpenFOAM | cnsidero | OpenFOAM Announcements from Other Sources | 7 | November 11, 2014 23:55 |
[General] Mac Os x system can't connect to X server when using ssh to access Linux system | Ivy Zhou | ParaView | 2 | September 30, 2013 11:21 |
Preference: OF 2.1.1 on Mac or Linux? | BCD | OpenFOAM Installation | 4 | September 17, 2012 10:31 |
Alternatives to Windows and Linux? | CAVT | Hardware | 5 | September 26, 2010 16:28 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |