CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM-1.6 on Mac OS X 10.6.1 (https://www.cfd-online.com/Forums/openfoam/69363-openfoam-1-6-mac-os-x-10-6-1-a.html)

elvisjohndowson October 20, 2009 14:57

OpenFOAM-1.6 on Mac OS X 10.6.1
 
Hi,
I am trying to build OpenFOAM-1.6 from the sources tar-ball for Mac OS X 10.6.1. I have applied the v2 patches for Mac OS X, but that didn't seems to work.

Could someone please send me a link to the latest version of patches for OpenFOAM-1.6 for Mac OS X 10.6?

Can I use the system supplied gcc and g++ applications? Compilation fails for both OpenFOAM and ThirdParty libs, and it complains about not being able to find some standard c++ headers, etc.

Which compiler should I use? Can't it work with what is supplied with Snow Leopard by default?

Best regards,

Elvis Dowson

gschaider October 21, 2009 13:23

Quote:

Originally Posted by elvisjohndowson (Post 233431)
Hi,
I am trying to build OpenFOAM-1.6 from the sources tar-ball for Mac OS X 10.6.1. I have applied the v2 patches for Mac OS X, but that didn't seems to work.

Could you be a little bit more specific?

Quote:

Originally Posted by elvisjohndowson (Post 233431)
Could someone please send me a link to the latest version of patches for OpenFOAM-1.6 for Mac OS X 10.6?

The last ones I published are found at
https://openfoam-extend.svn.sourcefo...r/patchMacOSX/
but there may be others on the board

Quote:

Originally Posted by elvisjohndowson (Post 233431)
Can I use the system supplied gcc and g++ applications? Compilation fails for both OpenFOAM and ThirdParty libs, and it complains about not being able to find some standard c++ headers, etc.

Which compiler should I use? Can't it work with what is supplied with Snow Leopard by default?

Snow leopard is a bit tricky as the default for the compilers changed from 32 bit to 64 bit and the Paraview shipped with OF doesn't compile on 64bit for the Mac. But the current CVS-version of paraview will (after a little bit of twidling)

Compiler: OF 1.6 needs a 4.3-compiler. 4.2 won't work on some source files. 4.4 has problems with the sources too (solvable) but some parts of the Paraview-CVS need the system-4.2-compiler. So no easy answer here

Bernhard

elvisjohndowson October 21, 2009 14:24

Hi Bernhard,

I just managed to configure and build qt-4.5.3 from the latest qt repository, to try to build paraview for 64-bits. I have ensured that qt-4.5.3 is built for 64-bits by using the cocoa and x86_64 options.

./configure -platform macx-g++ -cocoa -arch x86_64 -no-xmlpatterns -no-phonon -prefix /Developer/Applications/Qt-4.5

Where should I get the cvs version of paraview? Should I download it from the kitware site?

Best regards,

Elvis

elvisjohndowson October 21, 2009 14:26

Quote:

Originally Posted by gschaider (Post 233567)
Could you be a little bit more specific?

Snow leopard is a bit tricky as the default for the compilers changed from 32 bit to 64 bit and the Paraview shipped with OF doesn't compile on 64bit for the Mac. But the current CVS-version of paraview will (after a little bit of twidling)

Bernhard

I just downloaded the MacPorts version of gcc-4.3, so now I have gcc-mp-4.3, g++-mp-4.3 and cpp-mp-4.3.

So, I hope that takes care of my compiler issue? :-)

Best regards,

Elvis

gschaider October 21, 2009 14:44

Quote:

Originally Posted by elvisjohndowson (Post 233576)
Where should I get the cvs version of paraview? Should I download it from the kitware site?

Yep

Bernhard

gschaider October 21, 2009 14:50

Quote:

Originally Posted by elvisjohndowson (Post 233577)
I just downloaded the MacPorts version of gcc-4.3, so now I have gcc-mp-4.3, g++-mp-4.3 and cpp-mp-4.3.

So, I hope that takes care of my compiler issue? :-)

For OpenFOAM itself yes. For paraview itself it is more tricky: compile that with your 4.3 (otherwise the PV3Reader-Plugin won't work later) but use "generate verbose Makefiles" (you'll have to do same hand-configuration anyway for Cocoa). The 4.3-compiler fails on some ObjectiveC-files. Copy-paste the failing compiler-calls and replace with the Apple-4.2-compiler then resume compilation.
If someone finds a more elegant way: let me know

Bernhard

elvisjohndowson October 21, 2009 15:45

Hi Bernhard,
If I were to download OpenFOAM-1.6.x from the git repository, how do I go about applying the patch that you have created?

The current patch fails, and I was wondering if I will have to manually apply the patch and regenerate a new patch file using git format-patch command.

Also, for the git repository, I did not find any info on list of branches or tags for OpenFOAM, do some branches or tags exist?

Best regards,

Elvis


All times are GMT -4. The time now is 19:19.