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

OpenFOAM14 for Mac OSX Darwin 104

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2007, 15:49
Default Thanks ! Also, openmpi 1.2.
  #61
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Thanks !

Also, openmpi 1.2.3 comes pre-compiled with XCode

g++ --v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
podallaire is offline   Reply With Quote

Old   October 30, 2007, 21:13
Default I compiled openfoam on Leopard
  #62
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
I compiled openfoam on Leopard, some notes :

1) As suggested by Bernhard, a minor modification must be done in uintIO.C

2) With the opengl bug, a flag must be added for foamDebugSwitches : -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries /libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/li bGL.dylib

3) Problem with FoamX and Java -> compiled with error and FoamX does not work ...

Good evening,

PO
podallaire is offline   Reply With Quote

Old   November 1, 2007, 10:34
Default adding "-source 1.4" to java f
  #63
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
adding "-source 1.4" to java flags (in file make/rules/General/java) will solve java critical errors

PO
podallaire is offline   Reply With Quote

Old   November 7, 2007, 18:29
Default Bernhard, Are you putting a
  #64
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 18
egp is on a distinguished road
Bernhard,

Are you putting all of the OSX patches into 1.4.1-dev?

I assumed that you probably had done this, but when I tried to build 1.4.1-dev on 10.5, it complained about not recognizing Darwin.

Closer inspection of OpenFOAM-1.4.1-dev/.bashrc, etc. shows that the patch has not been applied....

Is there an easy way to get the OSX patch off the svn repostitory?

Eric
egp is offline   Reply With Quote

Old   November 8, 2007, 03:11
Default That would be my fault, in two
  #65
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
That would be my fault, in two ways:

- I didn't merge the Darwin bits from 1.3 to 1.4.1-dev

- I haven't re-ported to Mac OSX, in expectation of Leopard. The beast is now in the post and when I upgrade my Macs, the dev line will be ported and packed up into sparse disc images.

Bernhard, if there is a way to push the Darwin porting changes into the dev line, please have a go.

Thanks,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 8, 2007, 10:03
Default Hi Eric, Hi Hrv! The reason
  #66
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
Hi Eric, Hi Hrv!

The reason I never put the Mac-Patches into the dev is that I didn't have the disk space on my iBook for two separate OpenFOAM-Installations and I didn't want to inject it into svn from my Linux-machines (where I obviously can't test it)

I will try to do it over the weekend (if the mighty god of diskspace allows it)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 20, 2008, 21:56
Default Hi all, I'm trying to compi
  #67
New Member
 
Holly Corbett
Join Date: Mar 2009
Posts: 3
Rep Power: 17
hollyc is on a distinguished road
Hi all,

I'm trying to compile on my Macbook running Leopard. Have added the rules to the directory, and applied the patch, but when .OpenFOAM-1.4.1/.bashrc runs, I get the following error message:


Your Darwin operating system is not supported by this release of OpenFOAM. For further assistance, please contact www.openfoam.org

I'm using MacPorts 1.6.0 - really not sure where to go from here. Any help would be greatly appreciated.

Cheers,
Holly.
hollyc is offline   Reply With Quote

Old   January 21, 2008, 14:03
Default Hi! In .OpenF.OpenFOAM-1.4.
  #68
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
Hi!

In .OpenF.OpenFOAM-1.4.1/bashrc there should be an entry concerning darwin just before the comment that says "An unsupported operating system". Otherwise the patch was not correctly applied/the patch-file is faulty.

What does patch say if you apply the patch again (at least it should complain about a previously applied patch in some places)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 21, 2008, 21:23
Default Hi, Thanks for the assistan
  #69
New Member
 
Holly Corbett
Join Date: Mar 2009
Posts: 3
Rep Power: 17
hollyc is on a distinguished road
Hi,

Thanks for the assistance - the darwin part is there, and it says this:

Mac OS X 10.4 Darwin
# ~~~~~~~~~~~~~~~~~~~~
elif [ "$machineTest" = "Darwin" ]; then

export WM_ARCH=darwin
export WM_COMPILER=
export WM_MPLIB=OPENMPI

MACOSX_DEPLOYMENT_TARGET="10.4"

Then when I run the patch, this is what happens:

b-macbookpenFOAM-1.4.1 Holly$ patch -p0 <OpenFOAM-1.4.1-MacOSX.patch
patching file .bashrc
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file .OpenFOAM-1.4.1/bashrc
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 156 (offset 1 line).
patching file .OpenFOAM-1.4.1/apps/paraview/bashrc
patching file wmake/src/lex.yy.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file wmake/rules/darwin/c++Debug
patching file wmake/rules/darwin/c
patching file wmake/rules/darwin/mplibMPICH
patching file wmake/rules/darwin/cDebug
patching file wmake/rules/darwin/mplibOPENMPI
patching file wmake/rules/darwin/c++Opt
patching file wmake/rules/darwin/.gdb_history
patching file wmake/rules/darwin/mplibLAM
patching file wmake/rules/darwin/c++Prof
patching file wmake/rules/darwin/mplib
patching file wmake/rules/darwin/cOpt
patching file wmake/rules/darwin/X
patching file wmake/rules/darwin/c++
patching file wmake/rules/darwin/cProf
patching file wmake/rules/darwin/general
patching file wmake/wmakeLnInclude
patching file wmake/wmake
patching file wmake/Makefile
patching file applications/utilities/postProcessing/graphics/PVFoamReader/Allwmake
patching file applications/utilities/miscellaneous/foamDebugSwitches/Make/options
patching file applications/utilities/preProcessing/mapFields/Make/options
patching file applications/utilities/preProcessing/FoamX/C++/FoamXLib/ITypeDescriptorImpl.C
patching file applications/utilities/parallelProcessing/decompositionMethods/metis-5.0pre2/GKl ib/trunk/error.c
patching file applications/utilities/parallelProcessing/decompositionMethods/metis-5.0pre2/GKl ib/trunk/memory.c
patching file applications/utilities/parallelProcessing/decompositionMethods/metis-5.0pre2/GKl ib/trunk/gk_externs.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file applications/utilities/parallelProcessing/decompositionMethods/metis-5.0pre2/GKl ib/Make/options
patching file applications/utilities/parallelProcessing/decompositionMethods/parMetisDecomp/Pa rMetis-3.1/ParMETISLib/stdheaders.h
patching file applications/utilities/mesh/conversion/ccm26ToFoam/libccmio/libcgns/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/Allwmake
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel.H
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/MGridGenGamgAgglomeration/ParMGridGen-1.0/MGridGen/Lib/mgridgen.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/MGridGenGamgAgglomeration/ParMGridGen-1.0/MGridGen/Lib/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/MGridGenGamgAgglomeration/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/OSspecific/Unix/printStack.C
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/OSspecific/Unix/clockTime/clockTime.H
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/OSspecific/Unix/fileStat.C
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/primitives/ulong/ulongIO.C
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/primitives/Scalar/doubleFloat.H
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/OpenFOAM/primitives/Scalar/Scalar.H
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/triSurface/triSurface/interfaces/NAS/readNAS.C
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/patchTool
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/FoamX
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/killFoamX
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/foamEndJob
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/foamInstallationTest
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file bin/runFoamXHB
Reversed (or previously applied) patch detected! Assume -R? [n] y

and then I try and . $HOME/.bashrc I get this:

Your Darwin operating system is not supported by this release of OpenFOAM. For further assistance, please contact www.openfoam.org.

Executing: /Volumes/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/ensightFoam/bashrc
Executing: /Volumes/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/paraview/bashrc


Thanks for the assistance
hollyc is offline   Reply With Quote

Old   January 22, 2008, 08:19
Default OK. The patch seems to be alri
  #70
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
OK. The patch seems to be alright (sorry for doubting you). Obviously (but I'm not really good with shell-programming )"$machineTest" is "Darwin" because it is printed like this by the catch-all-else from the original and the elif-condition printed above should be true.

Could you source the bashrc from the command line with
. ~/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
and see what happens? Add some echo-commands to the script and see what parts actually get sexecuted (I really don't know what could be the problem)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 22, 2008, 23:53
Default Well that was exciting... S
  #71
New Member
 
Holly Corbett
Join Date: Mar 2009
Posts: 3
Rep Power: 17
hollyc is on a distinguished road
Well that was exciting...

So just before I sourced the bashrc, I thought I'd check it - and lo and behold.. no Darwin section. So I reapplied the patch again.. checked it.. and there was a Darwin section.. so I sourced it - it ran perfectly. I ran OpenFOAM-1.4.1/Allwmake and it appears that everything went great :D

So I attempt to run FoamX.. and I get this:

b-macbook:tutorials Holly$ FoamX
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94458) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94464) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94471) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94478) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94485) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94492) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94499) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX:
.
. (so it goes on...)
.
.
line 88: kill: (94741) - No such process
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/killFoamX: line 88: kill: (94748) - No such process
Starting NameServer with inet:b-macbook.aibn.uq.edu.au:1234 ...
Starting FoamX Host Browser with inet:b-macbook.aibn.uq.edu.au:1234 ...
/Volumes/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 139: FoamXHostBrowser: command not found
runFoamXHB : cleanup
runFoamXHB: Name server is not running.

Hopefully this makes sense to someone - I have no idea. Any help much appreciated

- Holly
hollyc is offline   Reply With Quote

Old   January 23, 2008, 20:03
Default Hi Holly! I hardly use Foam
  #72
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
Hi Holly!

I hardly use FoamX. I remember that some of the shell-scripts that call FoamX got patched because some commands on MacOSX behave BSDy (as opposed to the Linuxy behaviour that is assumed by the original OF-scripts). MAYBE (I don't have Leopard) this behaviour has changed and now these patches are contraproductive. Look at the patch-file. Maybe manually reversing the relevant patches helps.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 5, 2008, 15:32
Default Hi Bernhard, Greetings fro
  #73
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
Hi Bernhard,

Greetings from D.C. Any progress on MAC patch to the dev version?
sek is offline   Reply With Quote

Old   February 7, 2008, 15:10
Default Hi! You mean Hrv's version
  #74
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
Hi!

You mean Hrv's version on
https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/O penFOAM-1.4.1-dev/ ?

The patches were submitted some time back (and are in the repository) but I forgot to announce it.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 14, 2008, 12:41
Default Hi, I compiled 1.4.1 on MA
  #75
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
Hi,

I compiled 1.4.1 on MAc OX10.4 darwin intel processor, and tried to run paraview. This is what I got.

===========================================
ParaView error: InitializeTcl failed
Tk_Init error: no display name and no $DISPLAY environment variable
============================================

Cab someone tell me what's going on and what I should do?

Thanks,
sek is offline   Reply With Quote

Old   February 14, 2008, 13:52
Default Did you start it from xterm +
  #76
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Did you start it from xterm + are you running X?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 14, 2008, 16:10
Default I thought I was running X, but
  #77
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
I thought I was running X, but I actually wasn't. M X11 applications were not working because of that, Thanks for poining this out. BTW how are you handling going back and force between xterm and shell terminal on MAC?

Thanks in advance,
sek is offline   Reply With Quote

Old   February 15, 2008, 13:37
Default Hi, Hrv's dev version doesn
  #78
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
Hi,

Hrv's dev version doesn't compile properly because the linker can't locate libraries. The rror message looks like

/usr/bin/ld: can;t locate file for: -lfiniteVolume

Can anybody tell me how to resolve this? It appears there's something to do with $LIB_SRC.

TIA
sek is offline   Reply With Quote

Old   March 15, 2008, 13:18
Default Hello All, I'm trying to in
  #79
hjg
New Member
 
Heinz-Jürgen Geurtz
Join Date: Mar 2009
Location: Althengstett-Neuhengstett, Baden-Württemberg, Deutschland
Posts: 10
Rep Power: 17
hjg is on a distinguished road
Hello All,

I'm trying to install OpenFoam-1.4.1. My current platform is a iMac Intel DuoCore with MacOsX-10.5.2.
Iwas following the instructions also given on the Wiki (Installation of 1.4.1). Allwmake exits at the same point with message:

make[2]: *** [/Users/heinzjuergengeurtz/OpenFOAM/OpenFOAM-1.4.1/applications/bin/darwinDPOpt/ mixtureAdiabaticFlameT] Error 1
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
+ '[' 0 = 1 -a '' = doc ']'

Has anybody an idea how to solve this???

Live long and prosper...

HJG
__________________
Live long and prosper ...

Glückauf
HJG
hjg is offline   Reply With Quote

Old   March 17, 2008, 11:01
Default Hi HJ! There must be anothe
  #80
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
Hi HJ!

There must be another error message before the one you posted (I really appreciate that you do not post the whole compile-output). Just run it again with (assuming bash)

./Allwake 2>&1 | tee compile.log

and look in the compile.log for the first error before the message you were posting

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


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
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 06:06
VTK errors in ParaFOAM on OpenFOAM14 stevemchale OpenFOAM Installation 5 August 29, 2007 16:39
Compilation from source failed OpenFOAM14 hsieh OpenFOAM Installation 1 June 20, 2007 11:06
Probes in OpenFOAM14 otsuki OpenFOAM Running, Solving & CFD 2 May 16, 2007 07:18
Port of OpenFOAM14 to FreeBSD thierry OpenFOAM Installation 0 April 28, 2007 10:36


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