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

Installing OF 1.6 on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2009, 20:58
Default Installing OF 1.6 on Mac OS X
  #1
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!

I managed to compile OF 1.6 on my MacBook. The necessary patches and some (very short) instructions can be found at:

http://openfoamwiki.net/index.php/Ho...enFOAM_v16_Mac

IMHO the instructions are sufficient for somebody who has already compiled OF (preferably on a Mac) but for someone who has never compiled OF they may be hard to understand. I therefor encourage everyone who finds an error (typo or otherwise) on that page or who finds the instructions on the page too short to extend the page. Maybe it will grow into something that is usable for everyone

Bernhard
gschaider is offline   Reply With Quote

Old   July 29, 2009, 23:35
Default
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
cool, will give it a try

Thanks

PO
podallaire is offline   Reply With Quote

Old   July 30, 2009, 05:54
Default
  #3
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 podallaire View Post
cool, will give it a try
With it you mean augmenting the Wiki-page, I assume? Great. But first try the patches
gschaider is offline   Reply With Quote

Old   July 30, 2009, 08:41
Default
  #4
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Hi !

The compiling was successful under 32 bit. I'm planning to try 64 bit later today. I might try ParaView later but I'm planning to stick to Takuya's reader.

For sure I will contribute to the wiki page !

Thanks

PO
podallaire is offline   Reply With Quote

Old   July 30, 2009, 09:31
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 podallaire View Post
The compiling was successful under 32 bit. I'm planning to try 64 bit later today. I might try ParaView later but I'm planning to stick to Takuya's reader.
In the vanilla compilation fails with an error message that the Carbon-Framework is not supported in 64 bit. I went to $Pareview_Dir and tried to change the configuration manually with "ccmake ." to use Cocoa instead and compile with make, but it seems like it still tries to compile with Carbon.

So I'm afraid Takuya's reader won't work in 64bit, too.

Quote:
Originally Posted by podallaire View Post
For sure I will contribute to the wiki page !
Looking forward to it
gschaider is offline   Reply With Quote

Old   July 30, 2009, 09:34
Default
  #6
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Did you recompile QT with Cocoa 64 bit ? That's the key !
podallaire is offline   Reply With Quote

Old   July 30, 2009, 10:06
Default
  #7
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Hi Bernhard,

for darwinIntel64, I think the patches will need very minor modifications for
the "if defined darwinPpc || defined darwinIntel" statements.

Regards,

PO
podallaire is offline   Reply With Quote

Old   July 30, 2009, 10:14
Default
  #8
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 podallaire View Post
Did you recompile QT with Cocoa 64 bit ? That's the key !
No. I don't think so (I think I'm living off a binary downloaded from Trolltech)
gschaider is offline   Reply With Quote

Old   July 30, 2009, 10:59
Default
  #9
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 podallaire View Post
for darwinIntel64, I think the patches will need very minor modifications for
the "if defined darwinPpc || defined darwinIntel" statements.
That would be in the ThirdParty-patch wouldn't it? I checked and for some reason it compiles anyway. Obviously because in the meantime there is a /usr/include/malloc.h (a symbolic link to /usr/include/sys/malloc.h which was what this condition was working around)

But WHAT I noticed during checking is that for 64 bit in wmake/Makefile the extension for shared libs is NOT set to dylib. But this should be only of cosmetic importance
gschaider is offline   Reply With Quote

Old   August 2, 2009, 06:43
Default Patches for OpenFOAM 1.6 on OSX
  #10
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
Hi all

I found this instructions [1] however I'm unable to download the patches linked there (I just get some html files), does anybody here have this patches? Would be great if you could post them again.


[1] http://openfoamwiki.net/index.php/Ho...enFOAM_v16_Mac
andrewryan is offline   Reply With Quote

Old   August 2, 2009, 09:01
Default
  #11
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Use Firefox instead of Safari to download the files

Cheers

PO
podallaire is offline   Reply With Quote

Old   August 3, 2009, 11:25
Default
  #12
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 podallaire View Post
Use Firefox instead of Safari to download the files
I never noticed that problem (it is more often that I upload than download ). Does it happen for all files on the Wiki?
gschaider is offline   Reply With Quote

Old   August 3, 2009, 12:13
Default
  #13
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
I tried to compile OF as described in the wiki. I could apply the patches by using patch -p1 < patchfile. However it still didn't compile. I posted the build log [1] could anybody have a look at it? Also it complained that it could not find malloc.h which is in /usr/include/sys. As a workaround i created a symlink in /usr/include for malloc.h.

[1] http://emerging-patterns.com/tmp/compile.log
andrewryan is offline   Reply With Quote

Old   August 3, 2009, 12:53
Default
  #14
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Bernhard,

I have applied minor modifs to your patches regarding the darwinIntel64 arch / should I send it you via email for your review ? We could add those files on the Wiki

Andrew - those modifs should help you

Thanks

PO
podallaire is offline   Reply With Quote

Old   August 3, 2009, 14:02
Default
  #15
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 andrewryan View Post
I tried to compile OF as described in the wiki. I could apply the patches by using patch -p1 < patchfile. However it still didn't compile. I posted the build log [1] could anybody have a look at it? Also it complained that it could not find malloc.h which is in /usr/include/sys. As a workaround i created a symlink in /usr/include for malloc.h.

[1] http://emerging-patterns.com/tmp/compile.log
The line

could not open file PrimitivePatch.H for source file db/regIOobject/regIOobject.C
leads me to the question: you're compiling OF on a case-sensitive-filesystem, are you? Got to $FOAM_SRC/OpenFOAM/lnInclude and chack if there is a primitivePatch.H AND a PrimitivePatch.H. If not got back to the start (create a disk-image or a partition with a case-sensitve file-system and do the compilation there)

Bernhard
gschaider is offline   Reply With Quote

Old   August 3, 2009, 14:03
Default
  #16
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 podallaire View Post
Bernhard,

I have applied minor modifs to your patches regarding the darwinIntel64 arch / should I send it you via email for your review ? We could add those files on the Wiki
Yes please. Send them to me

Quote:
Originally Posted by podallaire View Post
Andrew - those modifs should help you
They solve the malloc.h-problem, right?
gschaider is offline   Reply With Quote

Old   August 3, 2009, 14:12
Default
  #17
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
just sent an email / yes, no malloc problem
podallaire is offline   Reply With Quote

Old   August 3, 2009, 14:38
Default
  #18
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
@gschaider: I was asking myself that too and checked it:

macbook:~ nils$ cd /Users/nils/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/
macbook:lnInclude nils$ ls [pP]rimitivePatch.H
PrimitivePatch.H primitivePatch.H

Otherwise I would already get trouble when trying to expand the archive, right? I also noticed the "could not open file" errors, but don't have an idea why they appear..

@podallaire What else problems does your new patch fix?
andrewryan is offline   Reply With Quote

Old   August 3, 2009, 16:59
Default
  #19
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
... just minor details which replicate the behavior of the patch for 32 bit (darwinIntel) for the 64 bit (darwinIntel64)
podallaire is offline   Reply With Quote

Old   August 3, 2009, 19:00
Default
  #20
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 andrewryan View Post
@gschaider: I was asking myself that too and checked it:

macbook:~ nils$ cd /Users/nils/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/
macbook:lnInclude nils$ ls [pP]rimitivePatch.H
PrimitivePatch.H primitivePatch.H
OK. The case-sensitivity is not the problem
Quote:
Originally Posted by andrewryan View Post
Otherwise I would already get trouble when trying to expand the archive, right?
No. when untarring PrimitivePatch.H would overwrite primitivePatch.H (or the other way round. whoever comes last)
Quote:
Originally Posted by andrewryan View Post
I also noticed the "could not open file" errors, but don't have an idea why they appear..
Either because they are not there or some script 'thinks' they are not there . Check with

find $FOAM_SRC -name missingFile.C

whether these files are there. Maybe something happened during untarring
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
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 13:54
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 02:36
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 08:46
MAC + SOLA for free surface T Main CFD Forum 1 April 11, 2001 14:43


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