|
[Sponsors] |
July 29, 2009, 20:58 |
Installing OF 1.6 on Mac OS X
|
#1 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
July 29, 2009, 23:35 |
|
#2 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
cool, will give it a try
Thanks PO |
|
July 30, 2009, 05:54 |
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
July 30, 2009, 08:41 |
|
#4 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
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 |
|
July 30, 2009, 09:31 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
So I'm afraid Takuya's reader won't work in 64bit, too. Looking forward to it |
||
July 30, 2009, 09:34 |
|
#6 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
Did you recompile QT with Cocoa 64 bit ? That's the key !
|
|
July 30, 2009, 10:06 |
|
#7 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
Hi Bernhard,
for darwinIntel64, I think the patches will need very minor modifications for the "if defined darwinPpc || defined darwinIntel" statements. Regards, PO |
|
July 30, 2009, 10:14 |
|
#8 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
July 30, 2009, 10:59 |
|
#9 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
August 2, 2009, 06:43 |
Patches for OpenFOAM 1.6 on OSX
|
#10 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
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 |
|
August 2, 2009, 09:01 |
|
#11 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
Use Firefox instead of Safari to download the files
Cheers PO |
|
August 3, 2009, 11:25 |
|
#12 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
August 3, 2009, 12:13 |
|
#13 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
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 |
|
August 3, 2009, 12:53 |
|
#14 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
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 |
|
August 3, 2009, 14:02 |
|
#15 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
August 3, 2009, 14:03 |
|
#16 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
They solve the malloc.h-problem, right? |
||
August 3, 2009, 14:12 |
|
#17 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
just sent an email / yes, no malloc problem
|
|
August 3, 2009, 14:38 |
|
#18 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
@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? |
|
August 3, 2009, 16:59 |
|
#19 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
... just minor details which replicate the behavior of the patch for 32 bit (darwinIntel) for the 64 bit (darwinIntel64)
|
|
August 3, 2009, 19:00 |
|
#20 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
find $FOAM_SRC -name missingFile.C whether these files are there. Maybe something happened during untarring |
||||
|
|
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 |