CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   ParaView 3.8 in Mac OSX (https://www.cfd-online.com/Forums/openfoam-installation/78975-paraview-3-8-mac-osx.html)

masuarez August 8, 2010 21:42

ParaView 3.8 in Mac OSX
 
I'm trying to build paraview following the instructions on the following website:

http://www.paraview.org/Wiki/ParaView:Build_And_Install

I installed Qt 4.6.3 as recommended by the website mentioned above. As I 'make' paraview, the following error appears:

[ 27%] Generating vtkCompositeZPassShader_fs.cxx, vtkCompositeZPassShader_fs.h
[ 27%] Generating vtkSocketCommunicatorHash.h
dyld: Library not loaded: libvtksys.pv3.8.dylib
Referenced from: /paraview-build/VTK/Parallel/../../bin/vtkHashSource
Reason: image not found
/bin/sh: line 1: 74027 Trace/BPT trap ../../bin/vtkHashSource /ParaView-3.8.0/VTK/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133
make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
make: *** [all] Error 2


I'm new to installing programs through source code... usually i just double click and wait for them to be installed. As of two weeks ago I didn't know how to use the "Terminal"... so please, if you know what i should do, be as detailed as possible.

Thanks.

gschaider August 9, 2010 05:43

Quote:

Originally Posted by masuarez (Post 270734)
I'm trying to build paraview following the instructions on the following website:

http://www.paraview.org/Wiki/ParaView:Build_And_Install

I installed Qt 4.6.3 as recommended by the website mentioned above. As I 'make' paraview, the following error appears:

[ 27%] Generating vtkCompositeZPassShader_fs.cxx, vtkCompositeZPassShader_fs.h
[ 27%] Generating vtkSocketCommunicatorHash.h
dyld: Library not loaded: libvtksys.pv3.8.dylib
Referenced from: /paraview-build/VTK/Parallel/../../bin/vtkHashSource
Reason: image not found
/bin/sh: line 1: 74027 Trace/BPT trap ../../bin/vtkHashSource /ParaView-3.8.0/VTK/Parallel/vtkSocketCommunicator.cxx vtkSocketCommunicatorHash vtkSocketCommunicatorHash.h
make[2]: *** [VTK/Parallel/vtkSocketCommunicatorHash.h] Error 133
make[1]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
make: *** [all] Error 2


I'm new to installing programs through source code... usually i just double click and wait for them to be installed. As of two weeks ago I didn't know how to use the "Terminal"... so please, if you know what i should do, be as detailed as possible.

Thanks.

The problem is that the DYLD_LIBRARY_PATH-variable has to point to the directory where the paraview-libraries (to be concrete libvtksys.pv3.8.dylib) are located. The patches that I provided for the Mac (and others, too) should do that.

So some additional information from your side is required: which version of OF are you using? Which set of patches to make it work on OS X? Have you sourced the appropriate file in etc to "activate" OF?

(if you're compiling Paraview ouside of OF then I would consider your problem to be a pure ParaView-problem and you'd be better off to ask there)

Bernhard

andrewryan August 9, 2010 10:22

@masuarez Did you get the paraview sources from paraview.org? I compiled it myself about two weeks ago and it worked with little trouble. Did you check 64bit / 32bit? As far as I remember I compiled everything for 32 bit.. (but forgot why)

masuarez August 9, 2010 14:05

@ gschaider One of the problems I have is that I already compiled and installed FreeFoam (not OpenFoam; per my Professor's instructions). Does it matter if I installed FreeFoam first?

I will try to use your patches and see if it works. I'm using the latest version of FreeFoam (0.1.0rc4). Since I'm using FreeFoam, do I have to "activate" it in the etc file?


@ andrewryan I did get paraview sources from paraview.org. However, i do not know how to check the 64bit/32bit?

I think Bernhard is right, this seems to be a Paraview issue more than an OpenFoam issue, I just didn't know where to start. Sorry.

7islands August 9, 2010 20:27

Is simply downloading the PV 3.8 binary from paraview.org and using the builtin OF reader not enough? (create an empty stub file with .foam extension under your case directory and open the file from PV)

T

masuarez August 9, 2010 20:35

All,

Thank you for your help. I found the solution in the following website:

http://www.paraview.org/pipermail/paraview/2010-June/017725.html


all I had to do was set
VTK_USE_VIEWS ON
during ccmake.

Once again, thank you for your help.

Miguel

jose_rodrig September 12, 2010 10:07

Quote:

Originally Posted by masuarez (Post 270884)
All,

Thank you for your help. I found the solution in the following website:

http://www.paraview.org/pipermail/paraview/2010-June/017725.html


all I had to do was set
VTK_USE_VIEWS ON
during ccmake.

Once again, thank you for your help.

Miguel

Hi,

I am having the same problem as Miguel did but I am installing it with ./makeParaView provided in OF-1.7.1

I have patched the source package with the patches provided by Gschaider and posted here.
I am using Qt 4.6.3 and ccmake 2.8.1

Miguel,
What do you mean by
Quote:

all I had to do was set
VTK_USE_VIEWS ON
during ccmake.
How do you do that?

Thx

jose_rodrig September 12, 2010 10:12

Hi,

I am having the same problem as Miguel did but I am installing it with ./makeParaView provided in OF-1.7.1

I have patched the source package with the patches provided by Gschaider and posted here.
I am using Qt 4.6.3 and ccmake 2.8.1

Miguel,
What do you mean by
Quote:

Originally Posted by masuarez (Post 270884)
all I had to do was set
VTK_USE_VIEWS ON
during ccmake.

How do you do that?

Thx


All times are GMT -4. The time now is 01:29.