CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OF 1.6 on Mac OS X (https://www.cfd-online.com/Forums/openfoam-installation/66969-installing-1-6-mac-os-x.html)

gschaider March 22, 2010 04:44

Quote:

Originally Posted by Daniele Trimarchi (Post 251034)
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

Daniele Trimarchi March 23, 2010 09:10

Paraview Help..! /2/
 
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

gschaider March 23, 2010 11:26

1 Attachment(s)
Quote:

Originally Posted by Daniele Trimarchi (Post 251268)
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 (Post 251268)
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

Attachment 2661

lovecraft22 March 31, 2010 08:55

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…

jose_rodrig June 18, 2010 06:50

Quote:

Originally Posted by elvisjohndowson (Post 233871)
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

gschaider June 18, 2010 08:47

Quote:

Originally Posted by jose_rodrig (Post 263571)
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

jose_rodrig June 18, 2010 10:21

Quote:

Originally Posted by gschaider (Post 263589)
- set the CMAKE setting that produces verbose Makefiles.

How do I do that?

jose_rodrig June 18, 2010 12:21

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

7islands June 19, 2010 00:30

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

jose_rodrig June 19, 2010 09:23

Yeah!! it works perfect!! THX OSHIMA

I wasn't aware of this function!!


All times are GMT -4. The time now is 03:41.