CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

OpenFOAM-1.6 on Mac OS X 10.6.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2009, 15:57
Default OpenFOAM-1.6 on Mac OS X 10.6.1
  #1
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
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
elvisjohndowson is offline   Reply With Quote

Old   October 21, 2009, 14:23
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by elvisjohndowson View Post
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 View Post
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 View Post
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
gschaider is offline   Reply With Quote

Old   October 21, 2009, 15:24
Default
  #3
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
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 is offline   Reply With Quote

Old   October 21, 2009, 15:26
Default
  #4
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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
elvisjohndowson is offline   Reply With Quote

Old   October 21, 2009, 15:44
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by elvisjohndowson View Post
Where should I get the cvs version of paraview? Should I download it from the kitware site?
Yep

Bernhard
gschaider is offline   Reply With Quote

Old   October 21, 2009, 15:50
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by elvisjohndowson View Post
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
gschaider is offline   Reply With Quote

Old   October 21, 2009, 16:45
Default
  #7
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
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
elvisjohndowson is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
OpenFOAM 1.6 CreatePatch Problem TarifaPirata OpenFOAM Bugs 1 September 10, 2009 05:35
OpenFOAM 1.6 package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 36 September 2, 2009 13:46
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 18:55


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