CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

Installing OF 1.6 on Mac OS X

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 22, 2010, 05:44
Default
  #121
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Daniele Trimarchi View Post
Hello foamers, I'm really struggling with compiling Paraview.
I'm following the useful installation guide provided by Elvis, and (it seems that OF works now).
Then I try to follow the Paraview installation guide, but I'm quite lost when applying the patches. I try to copy the whole content:

[
diff --git a/Applications/Client/CreateBundle.sh
....
VTK_USE_RPATH=ON
]

in a text file, that I called Paraview.patch.v1, in ~/Tool/Paraview
Then I patch it, with:
cd Paraview3
patch -p1 < ../Paraview.patch.v1

So, I get the message:
patching file Applications/Client/CreateBundle.sh.in
patch: **** malformed patch at line 7: PluginsDir="/$ParaView_App/Contents/Plugins"

so I try to modify my .bash_profile, typing:
export ParaView_App=/Applications/ParaView.app/

and, since it was not working, I also try to modify the path in the patch file:
PluginsDir="/Applications/ParaView.app/Contents/Plugins"

Best regards and thank you,

Daniele
You're refering to the patch in Posting Nr 100 http://www.cfd-online.com/Forums/ope...tml#post234987 in this thread (use the permalinks that are found in the upper right corner when referring to a posting in a lengthy thread), right? Seems to me that the message-board-software messed up that patch. There should be a newline after the second @@ (and all the other second @@s)

Can't comment on the rest, as I don't use that patch

Bernhard
gschaider is offline   Reply With Quote

Old   March 23, 2010, 10:10
Default Paraview Help..! /2/
  #122
New Member
 
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 8
Daniele Trimarchi is on a distinguished road
Hi Bernard, thank you for your reply. Unfortunately it does not seems to be working. So I might ask you, reading your answer, how did you manage to have paraview working? I'll be happy to follow any other procedure, if it solves the problem!

I also have the precompiled version of Paraview, which works, but crashes when reading OpenFOAM files.

Thank you,
Daniele
Daniele Trimarchi is offline   Reply With Quote

Old   March 23, 2010, 12:26
Default
  #123
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Daniele Trimarchi View Post
Hi Bernard, thank you for your reply. Unfortunately it does not seems to be working. So I might ask you, reading your answer, how did you manage to have paraview working? I'll be happy to follow any other procedure, if it solves the problem!
The problem is that my current setup is very specific: I'm using Paraview 3.6.2, 64-Bit, with Cocoa instead of X11 and a non-apple compiler. And there are some points where the compilation fails and I have to manually do some stuff (use the Apple-compiler for the Cocoa-ObjectiveC-files). To make a decent write-up of what has to be done I'd have to go through the whole thing from start to finish and frankly I currently don't have the time for that right now. I'll attach you the makeParaview I'm using, but as I said it is only half the truth.

Quote:
Originally Posted by Daniele Trimarchi View Post
I also have the precompiled version of Paraview, which works, but crashes when reading OpenFOAM files.
The old build-in OF-reader is no good (if I remember it correctly it doesn't like zipped files for instance).

Bernhard

makeParaViewMacBG.gz
gschaider is offline   Reply With Quote

Old   March 31, 2010, 08:55
Default
  #124
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 464
Rep Power: 10
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Wouldn't it be nice if someone of you uploaded the compiled version of OpenFoam? I could give you some space on my virtual hd…
lovecraft22 is offline   Reply With Quote

Old   June 18, 2010, 06:50
Default
  #125
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 8
jose_rodrig is on a distinguished road
Quote:
Originally Posted by elvisjohndowson View Post
Hi,
I'm trying to build paraview-3.6.1 from the ThirdParty-1.6 folder, but I get the following errors. I have installed gsed and gawk. I also installed doxygen from cvs and built it, after making a small modification to qtools/qglobal.h, to change the max allowed OS X version to 10.6 as follows
# if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_6)

[ 21%] Building C object VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftbase.o
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /Users/elvis/Tool/OpenFOAM/ThirdParty-1.6.x-patches/paraview-3.6.1/VTK/Utilities/vtkfreetype/src/base/ftmac.c:85,
from /Users/elvis/Tool/OpenFOAM/ThirdParty-1.6.x-patches/paraview-3.6.1/VTK/Utilities/vtkfreetype/src/base/ftbase.c:35:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: error: format string argument not a string type
make[3]: *** [VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftbase.o] Error 1
make[2]: *** [VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/all] Error 2
make[1]: *** [Servers/ServerManager/CMakeFiles/HTMLDocumentation.dir/rule] Error 2
make: *** [HTMLDocumentation] Error 2


Best regards,

Elvis
Hi,

I'm getting the same error as Elvis (as quoted) and I can't get around it. I started the endeavor of build OF and paraview this week and so my knowledge on this building and compiling is still a bit fuzzy.

So, I have a couple of questions for you guys:

1) - Isn't it possible to use one of the builds of paraview already supplied by Kitware on this site http://www.paraview.org/paraview/res.../software.html and some how link it to the OpenFOAM reader? They work nicely on mac OS 10.6 but I can't get it linked to the OF reader. Any thoughts in this?

2) - I tried to run the ./makeParaView to compile a different version of ParaView (3.8.0 instead of 3.6.1) simply by changing the version variable on the /WM_PROJECT_DIR/etc/apps/paraview3/bashrc but with no success. It kept sending this error:

-QMAKESPEC has not been set, so configuration cannot be deduced.

and then

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

What should be here the problem? Any ideas? Does anybody succeed in compiling paraview on mac with no further problems when loading a OF casefile?

I am using the same compiler as I used to build OF 1.6: gcc43 from macports

The system i m using is:
-mac OX X 10.6.3 64 bits
-OF 1.6 compiled with gcc43 from macports
-qt4-mac also from macports
-cmake 2.8.1


That is all
THX
Jose
jose_rodrig is offline   Reply With Quote

Old   June 18, 2010, 08:47
Default
  #126
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,920
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by jose_rodrig View Post
Hi,

I'm getting the same error as Elvis (as quoted) and I can't get around it. I started the endeavor of build OF and paraview this week and so my knowledge on this building and compiling is still a bit fuzzy.

So, I have a couple of questions for you guys:

1) - Isn't it possible to use one of the builds of paraview already supplied by Kitware on this site http://www.paraview.org/paraview/res.../software.html and some how link it to the OpenFOAM reader? They work nicely on mac OS 10.6 but I can't get it linked to the OF reader. Any thoughts in this?

2) - I tried to run the ./makeParaView to compile a different version of ParaView (3.8.0 instead of 3.6.1) simply by changing the version variable on the /WM_PROJECT_DIR/etc/apps/paraview3/bashrc but with no success. It kept sending this error:

-QMAKESPEC has not been set, so configuration cannot be deduced.

and then

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

What should be here the problem? Any ideas? Does anybody succeed in compiling paraview on mac with no further problems when loading a OF casefile?

I am using the same compiler as I used to build OF 1.6: gcc43 from macports

The system i m using is:
-mac OX X 10.6.3 64 bits
-OF 1.6 compiled with gcc43 from macports
-qt4-mac also from macports
-cmake 2.8.1


That is all
THX
Jose
No idea about that specific error (maybe I solved it once, but forgot it). Just some random tips:
- set the CMAKE setting that produces verbose Makefiles. That way when you get an error you also have the compiler call that triggered it and can retry it by hand
- there is a handful of ObjectiveC-files in Paraview (the Cocoa-interface). In my experience these can only be compiled with an Apple-compiler (that means: compilation fails. You retry the last printed compiler call but replace gcc-mp-4.3 with /usr/bin/gcc-4.2. After that succeeds restart make)

Bernhard
gschaider is offline   Reply With Quote

Old   June 18, 2010, 10:21
Default
  #127
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 8
jose_rodrig is on a distinguished road
Quote:
Originally Posted by gschaider View Post
- set the CMAKE setting that produces verbose Makefiles.
How do I do that?
jose_rodrig is offline   Reply With Quote

Old   June 18, 2010, 12:21
Default
  #128
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 8
jose_rodrig is on a distinguished road
Hi, Bernard

I managed to set CMAKE the way you suggested and I also eliminated the prob with QMAKESPEC.

Now, I get this error message:

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

----------
$ cmake -DCMAKE_VERBOSE_MAKEFILE=on
CMake Error: The source directory "/Volumes/OpenFOAM/ThirdParty-1.6" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Any idea what could this be? I actually find a lot of files named "CMakeLists.txt". However I cant find any "classes.nib" in my whole disc.

Is this because of the gcc43 compiler? I cant even find a compiler call before it stops!

cheers
Jose
jose_rodrig is offline   Reply With Quote

Old   June 19, 2010, 00:30
Default
  #129
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 12
7islands is on a distinguished road
Hi Josť,

Just in case, did you try the built-in OF reader in PV 3.8? ("touch case.foam" in your case directory and open case.foam from PV)

T
7islands is offline   Reply With Quote

Old   June 19, 2010, 09:23
Default
  #130
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 8
jose_rodrig is on a distinguished road
Yeah!! it works perfect!! THX OSHIMA

I wasn't aware of this function!!
jose_rodrig is offline   Reply With Quote

Reply

Thread Tools
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 On
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 05:06
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 12:54
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01: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 13:43


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