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

OpenFoam 14 installation problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2007, 18:36
Default Hi, I just tried to install
  #1
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

I just tried to install openFoam 1.4.

I followed the README instruction, but when I tried to run the test with icoFoam, I got an error message saying that icoFoam was not there.

I then tried to compile, but I got many errors at the applications stage.

I compiled many directory individually, but not everything compiles, although icoFoam now has been created and seems to work.

The result of uname -a is :
Linux xxxxxxxxx 2.6.20-1.2320.fc5 #1 SMP Tue Jun 12 18:50:49 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

I also have a directory Linux64 with
j2sdk1.4.2_05
paraview-2.4.2

The latest error message is
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/sam mToFoam'
/home/gcoppola/OpenFOAM/OpenFOAM-1.4/wmake/wmake: line 162: Allwmake: command not found
make[2]: *** [ccm26ToFoam] Error 127
make[2]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion'
make[1]: *** [conversion] Error 2
make[1]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh'
make: *** [mesh] Error 2
+ '[' 0 = 1 -a '' = doc ']'

Any suggestion ?

Thanks
gfcoppola is offline   Reply With Quote

Old   July 11, 2007, 01:25
Default Replace Allwmake in the script
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Replace Allwmake in the script with ./Allwmake. Check [1].

Please remember to apply the cumulative bug fix patch[2] before recompiling OF 1.4.

[1] http://www.cfd-online.com/OpenFOAM_D...tml?1182889965
[2] http://www.cfd-online.com/OpenFOAM_D...tml?1182157148
msrinath80 is offline   Reply With Quote

Old   July 11, 2007, 07:00
Default Hi, the code compiled witho
  #3
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

the code compiled without errors (I did not recompile it from scratch).

I ran some tutorials and they get completed without errors as well.

Many thanks for your help
gfcoppola is offline   Reply With Quote

Old   July 12, 2007, 18:19
Default Hi, I decided to recompile,
  #4
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

I decided to recompile, so I did
wcleanAll

reapplied the patch and the missing demangle.h

compiled and I get the following error

cannot find -ldecompositionMethods

Could not find anything with search.

Could you please help ?

Thanks
gfcoppola is offline   Reply With Quote

Old   July 13, 2007, 03:02
Default Can you post the relevant log
  #5
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Can you post the relevant log transcript before the error message?
msrinath80 is offline   Reply With Quote

Old   July 13, 2007, 09:15
Default Hi, I did wcleanAll a
  #6
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

I did

wcleanAll

and ./Allwmake

first I get many warnings about "use of old-style cast", which isn't probably very important.

The process then stops with the following error

/usr/bin/ld: cannot find -lOpenFOAM

because it does not find the OpenFOAM library. This happens since anytime one uses
wcleanAll
it wipes out the directory
/OpenFOAM-1.4/src/OpenFOAM/lnInclude/
which contains
demangle.h

At this error I copy the file demangle.h to its directory and type again
./Allmake
and after a while I get

cannot find -ldecompositionMethods

It seems generated upstream by
SOURCE=metisDecomp/metisDecomp.C ; g++ -m64 -Dlinux64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -fno-gcse -DNoRepository -ftemplate-depth-30 -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/lam-7.1.2/platforms/linux64DPOpt/incl ude -IparMetisDecomp/ParMetis-3.1/ParMETISLib -IparMetisDecomp/ParMetis-3.1 -IlnInclude -I. -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64DPOpt/metisDecomp.o
metisDecomp/metisDecomp.C: In member function 'virtual Foam::labelList Foam::metisDecomp::decompose(const Foam::pointField&)':
metisDecomp/metisDecomp.C:362: error: 'METIS_WPartGraphRecursive' was not declared in this scope
metisDecomp/metisDecomp.C:379: error: 'METIS_PartGraphRecursive' was not declared in this scope
metisDecomp/metisDecomp.C:400: error: 'METIS_WPartGraphKway' was not declared in this scope
make[1]: *** [Make/linux64DPOpt/metisDecomp.o] Error 1
make[1]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/parallelProcessing/ decompositionMethods'
+ wmake decomposePar

It this enough ? do you need more details ?

thanks
gfcoppola is offline   Reply With Quote

Old   July 13, 2007, 12:24
Default I think this is to do with the
  #7
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
I think this is to do with the demangle.H issue. Find error.C and replace it with the one modified by Mattijs[1]. That will help.

[1] http://www.cfd-online.com/OpenFOAM_D.../126/4080.html
msrinath80 is offline   Reply With Quote

Old   July 14, 2007, 07:42
Default Hi there, A brilliantly blu
  #8
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi there,

A brilliantly blue and wonderful day to everyone!

Looks like you have trouble compiling OpenFOAM-1.4. Have you sorted it out yet?

The problem with the "decompositionMethods" seems to be an oversight, which can be easily corrected....

Replace the "options" file in the following directory with the one I have attached:
"applications/utilities/parallelProcessing/decompositionMethods/Make"

Then you can rerun the "./Allwmake" command as usual

options

Enjoy!

Philippose
philippose is offline   Reply With Quote

Old   July 15, 2007, 13:10
Default Philippose: Thank you very muc
  #9
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Philippose: Thank you very much. Your options file did the trick.
msrinath80 is offline   Reply With Quote

Old   July 15, 2007, 15:04
Default Hi, thanks a lot for the su
  #10
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

thanks a lot for the suggestions. I compiled again and applied the new OPTIONS and ERROR.C files after the first error (the one about OpenFOAM library).

I now get the following errors:
=================================>>FIRST ERROR
....................................
79. ERROR in PatchTool/PatchTool.java
(at line 1454)
TransparencyAttributes transp = new TransparencyAttributes();
^^^^^^^^^^^^^^^^^^^^^^
TransparencyAttributes cannot be resolved to a type
----------
80. ERROR in PatchTool/PatchTool.java
(at line 1454)
TransparencyAttributes transp = new TransparencyAttributes();
^^^^^^^^^^^^^^^^^^^^^^
TransparencyAttributes cannot be resolved to a type
----------
81. ERROR in PatchTool/PatchTool.java
(at line 1455)
transp.setTransparencyMode(TransparencyAttributes. FASTEST);
^^^^^^^^^^^^^^^^^^^^^^
TransparencyAttributes cannot be resolved
----------
82. ERROR in PatchTool/PatchTool.java
(at line 1464)
Appearance.ALLOW_TRANSPARENCY_ATTRIBUTES_READ
^^^^^^^^^^
Appearance cannot be resolved
----------
83. ERROR in PatchTool/PatchTool.java
(at line 1468)
Appearance.ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE
^^^^^^^^^^
Appearance cannot be resolved
----------
84. ERROR in PatchTool/PatchTool.java
(at line 1474)
TransparencyAttributes.ALLOW_VALUE_READ
^^^^^^^^^^^^^^^^^^^^^^
TransparencyAttributes cannot be resolved
----------
85. ERROR in PatchTool/PatchTool.java
(at line 1478)
TransparencyAttributes.ALLOW_VALUE_WRITE
^^^^^^^^^^^^^^^^^^^^^^
TransparencyAttributes cannot be resolved
----------
86. ERROR in PatchTool/PatchTool.java
(at line 1508)
public static Transform3D viewAll(View view, BoundingSphere bounds)
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
87. ERROR in PatchTool/PatchTool.java
(at line 1508)
public static Transform3D viewAll(View view, BoundingSphere bounds)
^^^^
View cannot be resolved to a type
----------
88. ERROR in PatchTool/PatchTool.java
(at line 1508)
public static Transform3D viewAll(View view, BoundingSphere bounds)
^^^^^^^^^^^^^^
BoundingSphere cannot be resolved to a type
----------
89. ERROR in PatchTool/PatchTool.java
(at line 1510)
Transform3D viewTrans = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
90. ERROR in PatchTool/PatchTool.java
(at line 1510)
Transform3D viewTrans = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
91. ERROR in PatchTool/PatchTool.java
(at line 1537)
Point3d ctr=new Point3d();
^^^^^^^
Point3d cannot be resolved to a type
----------
92. ERROR in PatchTool/PatchTool.java
(at line 1537)
Point3d ctr=new Point3d();
^^^^^^^
Point3d cannot be resolved to a type
----------
93. ERROR in PatchTool/PatchTool.java
(at line 1540)
Transform3D dist = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
94. ERROR in PatchTool/PatchTool.java
(at line 1540)
Transform3D dist = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
95. ERROR in PatchTool/PatchTool.java
(at line 1541)
dist.set(new Vector3d(0, 0, viewDistance));
^^^^^^^^
Vector3d cannot be resolved to a type
----------
96. ERROR in PatchTool/PatchTool.java
(at line 1542)
Transform3D rotation = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
97. ERROR in PatchTool/PatchTool.java
(at line 1542)
Transform3D rotation = new Transform3D();
^^^^^^^^^^^
Transform3D cannot be resolved to a type
----------
98. ERROR in PatchTool/PatchTool.java
(at line 1548)
rotation.setEuler(new Vector3d(rx, ry, rz));
^^^^^^^^
Vector3d cannot be resolved to a type
----------
99. ERROR in PatchTool/PatchTool.java
(at line 1551)
viewTrans.set(new Vector3d(ctr.x, ctr.y, ctr.z));
^^^^^^^^
Vector3d cannot be resolved to a type
----------
100. ERROR in PatchTool/PatchTool.java
(at line 1568)
new MainFrame(pp_, 400, 400);
^^^^^^^^^
MainFrame cannot be resolved to a type
----------
100 problems (100 errors)jar cfm ../lib/PatchTool.jar META-INF/MANIFEST.MF -C Make/classes .
`../lib/PatchTool.jar' is up to date.
===============================================
=================================>>SECOND ERROR
make[3]: Entering directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
`/home/gcoppola/OpenFOAM/OpenFOAM-1.4/lib/linux64DPOpt/libvtkFoam.so' is up to date.
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
+ cd PVFoamReader
+ mkdir -p Make/linux64DPOpt
+ cd Make/linux64DPOpt
+ cmake ../..
CMake Error: Error in cmake code at
/home/gcoppola/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.c make:29:
INCLUDE Could not find include file: /home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/platforms/linux64Gcc4DPOpt/Para ViewLibraryDepends.cmake
Current CMake stack: /home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt;/usr/local/share/cmake-2.4/Modules/ CMakeCInformation.cmake;/usr/local/share/cmake-2.4/Modules/CMakeCXXInformation.c make;/home/gcoppola/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ParaViewCon fig.cmake;/home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/platforms/linux64Gcc4 DPOpt/ParaViewLibraryDepends.cmake
CMake Error: Error in cmake code at
/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt:38:
INCLUDE Could not find include file: /home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/ParaViewUse.cmake
Current CMake stack: /home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt;/usr/local/share/cmake-2.4/Modules/ CMakeCInformation.cmake;/usr/local/share/cmake-2.4/Modules/CMakeCXXInformation.c make;/home/gcoppola/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ParaViewCon fig.cmake;/home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/ParaViewUse.cmake
CMake Error: Error in cmake code at
/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt:56:
Unknown CMake command "VTK_WRAP_ClientServer".
-- Configuring done
+ make
make[3]: Entering directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/PVFoamReader/Make/linux64DPOpt'make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/PVFoamReader/Make/linux64DPOpt'
make[2]: *** [PVFoamReader] Error 2
make[2]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics'
make[1]: *** [graphics] Error 2
make[1]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing'
make: *** [postProcessing] Error 2
+ '[' 0 = 1 -a '' = doc ']'
===========================================

The first does not prevent the make process to go on, while the second stops it.

Also, the paraview-2.4.4 from your website does nto run, as it seems to be looking for a missing libtk8.4.so

I have paraview-2.4.2 and that runs and paraview-3.0.2 from the original web site and that runs as well.

Needless to say that paraFoam does not work. There, it seems not to find the command paraview anywhere.
Even if I add it to my .bascrc, and source it, I am not able to run the command paraview.

Could you please help ?

Many thanks
gfcoppola is offline   Reply With Quote

Old   July 15, 2007, 16:02
Default Hello again, Ok... the firs
  #11
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello again,

Ok... the first error is to do with the fact that your Java version is different from the one used in the creation of the java files... but I dont think this will cause any problems, as long as you do have a version of java installed on your computer.

If you really dont like seeing those errors, all you need to do is to install j2sdk1.4.2_05 from the OpenFOAM website into the "linux" folder of the OpenFOAM installation... and make sure that this version of java is used. (Easiest way to check that is to run foamInstallationTest)

As for the second error.... before you recompile OpenFOAM, you need to extract the paraview source files into a directory, compile it, and follow the instructions mentioned in the "buildInstructions.txt" which I shall attach to this post.

This is because, PVFoamReader requires files from the paraview source in order to compile correctly.

buildInstructions.txt

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   July 16, 2007, 13:09
Default hi, I am trying to get the
  #12
New Member
 
Oscar G
Join Date: Mar 2009
Location: Bogotá, Bogotá, Colombia
Posts: 27
Rep Power: 17
oscar_j is on a distinguished road
hi,

I am trying to get the compilation of the laplacianFoam solver with wmake. But some errors happens.

I type within $FOAM_APP/solvers/basic/laplacianFoam directory (OpenFOAM-1.4) simply 'wmake' but I have error messages like these:

/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3916: error: variable or field '_M_initialize_moneypunct' declared void
/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3916: error: 'int std::moneypunct<wchar_t,>::_M_initialize_moneypunc t' is not a static member of 'class std::moneypunct<wchar_t,>'
/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3916: error: '__c_locale' was not declared in this scope
/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3917: error: expected primary-expression before 'const'
/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3917: error: initializer expression list treated as compound expression
/home/oscar/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../. ./../../include/c++/4.1.2/bits/locale_facets.h:3921: error: variable or field '_M_initialize_moneypunct' declared void


What's my mistake?

Thanks!
oscar_j is offline   Reply With Quote

Old   July 16, 2007, 13:37
Default Hi, thanks for the detailed
  #13
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

thanks for the detailed instructions.

Can I just download the latest Paraview src from their website ?

They have available 3.1.0 and 2.6.2 as source. I tried their precompiled 3.0.2 and it seems to work.

Thanks
gfcoppola is offline   Reply With Quote

Old   July 16, 2007, 14:14
Default Hello Gianfilippo, A Good d
  #14
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Gianfilippo,

A Good day to you!

I would suggest that you stay away from Paraview 3.1.0 if you want to use the PVFoamReader library in order to visualise your results, because I think they have changed the way external readers are called. I tried Paraview 3.1.0.... and though the compilation of PVFoamReader and vtkFoam go through fine, I was not able to get the library to work using paraFoam.

(If anyone has a solution, I would love to have it... the paraview 3.0 interface is much much better....and it would be nice to be able to use it)

Paraview 2.6.2..... I tried this version about a month ago, and had trouble starting paraview itself... it refused to start giving some error... but you can try it out... from point of view of paraFoam and the PVFoamReader, it should work fine.

If you want to be really safe... use Paraview 2.4.4.

On the other hand... from Paraview 3.0 onwards, there exists native support for OpenFOAM data. You can write a small plugin for paraview 3.1.0 (check out this link: Paraview 3.xx plugin), which allows you to analyse OpenFOAM data without having to use the PVFoamReader library.... but... :-) I personally find the native support excruciatingly slow... it takes ages to load even relatively simple cases, and I quickly switched back to Paraview 2.4.4

So now you have many options :-)! You can choose the one you think is most suitable for you :-)!

Enjoy!

Philippose
philippose is offline   Reply With Quote

Old   July 16, 2007, 14:35
Default Hi, thanks again. I am comp
  #15
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

thanks again. I am compiling now 2.6.2 since I do not know where to get the 2.4.4 source files.

As far as the 3.x.x versions are concerned, I will certainly rely on your expert advice and stay away from it until it will be implemented officially in OpenFOAM.

I will let you know how things go.

Many thanks
gfcoppola is offline   Reply With Quote

Old   July 16, 2007, 15:38
Default Hi :-)! No no.... dont term
  #16
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi :-)!

No no.... dont term my advice as "expert" advice.... because in OpenFOAM usually there are always ways of doing almost anything.... :-)! So its only a matter of time before someone knocks down my "advice" with a perfectly sound solution... :-)!

Anyway.... as for paraview-2.4.4... here is the link:
Paraview-2.4.4

Let me know if you get Paraview 2.6.2 working....

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   July 16, 2007, 16:47
Default Hi, thanks for he link. pa
  #17
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,
thanks for he link.

paraview 2.6.2 compiled and was running......
After that I modified two bashrc files in OpenFOAM-1.4 to make them point at the right paraview dir, but I must have missed one, since after I tried ./Allmake under OpenFOAM-1.4 (actually a few times) I get the following

make[3]: Entering directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
make[3]: *** No rule to make target `/home/gcoppola/OpenFOAM/linux64/paraview-2.4.4/include/vtkUnstructuredGrid.h', needed by `vtkFoamAddPatch.dep'. Stop.
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
+ cd PVFoamReader
+ mkdir -p Make/linux64DPOpt
+ cd Make/linux64DPOpt
+ cmake ../..
CMake Error: ParaView_DIR is set to "/home/gcoppola/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4", which is not a directory containing ParaViewConfig.cmake
CMake Error: ParaView is required. Set ParaView_DIR.
-- Configuring done
+ make
make[3]: Entering directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/PVFoamReader/Make/linux64DPOpt'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/PVFoamReader/Make/linux64DPOpt'
make[2]: *** [PVFoamReader] Error 2
make[2]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics'make[1]: *** [graphics] Error 2
make[1]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing'
make: *** [postProcessing] Error 2
+ '[' 0 = 1 -a '' = doc ']'

It seems that the ParaView_DIR does not propagate everywere.
I have to add that now paraview does not run any longer and the error message is
./paraview: error while loading shared libraries: libvtkKWParaViewCS.so: cannot open shared object file: No such file or directory

Does OpenFOAM modifies the paraview lib structure ?

Thanks
gfcoppola is offline   Reply With Quote

Old   July 16, 2007, 17:13
Default Hi there yet again :-) Did
  #18
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi there yet again :-)

Did you follow the instructions in the "buildInstructions.txt" file? Specially, the fact that when you run cmake, you need to enable "shared libraries", and the install prefix being "~/OpenFOAM/linux64/paraview-2.6.2" ? Also... you need to disable "relative paths" in the cmake options. And after the "gmake (or make)" did you run "gmake install (or make install)"?

Finally... did you copy the various files from the Paraview source and object directories into the "linux64/paraview-2.6.2" directory? Again... one important file here is the "ParaViewConfig.cmake" file from the object directory.

Then... you need to go to the file:
"~/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/paraview/bashrc", and change the environment variable "ParaView_VERSION" to 2.6.2

Once you do all that, you need to either close the console and re-open a new one (so that your .bashrc file is sourced again), or you need to run "source ~/.bashrc" at the command line to enable the changes you made.

I think I have covered it all.... it should work with this :-)!

Its interesting to hear that you got paraview 2.6.2 working... shall try it out myself tomorrow! Thanks for the info.

Philippose
philippose is offline   Reply With Quote

Old   July 16, 2007, 17:30
Default Hi, I did follow the instru
  #19
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

I did follow the instructions, for the JAVA (I forgot I had installed under OpenFOAM/linux64) and paraview.I did not recompile OpenFOAM from the beginning though.

At the end I did source my .bashrc.

In any case, the "relative paths" was not disabled. So, I will compile it again and let you know.

Thanks
gfcoppola is offline   Reply With Quote

Old   July 16, 2007, 18:27
Default Hi, good news, I ran icoFoa
  #20
New Member
 
gianfilippo coppola
Join Date: Mar 2009
Posts: 14
Rep Power: 17
gfcoppola is on a distinguished road
Hi,

good news, I ran icoFoam test and paraFOAM after it and they both seem to be working!!!

I did get some warnings and I will post them in case they could be useful for further debugging:

===============================================
make[3]: Entering directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
SOURCE=vtkFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -fno-gcse -DNoRepository -ftemplate-depth-30 -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include -I../PVFoamReader -IlnInclude -I. -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64DPOpt/vtkFoam.o
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/st rstream:51,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIOStream.h:36,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSystemIncludes.h:40,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIndent.h:24,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObjectBase.h:43,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObject.h:41,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkAlgorithm.h:32,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkProcessObject.h:45,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSource.h:45,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetSource.h:22,
from ../PVFoamReader/vtkFoamReader.h:40,
from vtkFoam.C:38:
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/ba ckward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <x> header for the <x.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkAlgorithm.h: In member function 'virtual void vtkAlgorithm::AbortExecuteOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkAlgorithm.h:151: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkAlgorithm.h: In member function 'virtual void vtkAlgorithm::AbortExecuteOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkAlgorithm.h:151: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSource.h: In member function 'virtual void vtkSource::ReleaseDataFlagOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSource.h:91: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSource.h: In member function 'virtual void vtkSource::ReleaseDataFlagOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSource.h:91: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyScalarsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:23 1: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyScalarsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:23 1: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyVectorsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:25 0: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyVectorsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:25 0: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyNormalsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:26 9: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyNormalsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:26 9: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTCoordsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:28 8: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTCoordsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:28 8: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTensorsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:30 7: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTensorsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:30 7: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyGlobalIdsOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:32 6: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyGlobalIdsOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSetAttributes.h:32 6: warning: use of old-style cast
SOURCE=vtkFoamAddInternalMesh.C ; g++ -m64 -Dlinux64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -fno-gcse -DNoRepository -ftemplate-depth-30 -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include -I../PVFoamReader -IlnInclude -I. -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64DPOpt/vtkFoamAddInternalMesh.o
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/st rstream:51,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIOStream.h:36,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSystemIncludes.h:40,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIndent.h:24,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObjectBase.h:43,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObject.h:41,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:35,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSet.h:40,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkPointSet.h:29,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkUnstructuredGrid.h:25,
from vtkFoamAddInternalMesh.C:33:
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/ba ckward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <x> header for the <x.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
SOURCE=vtkFoamAddPatch.C ; g++ -m64 -Dlinux64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -fno-gcse -DNoRepository -ftemplate-depth-30 -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include -I../PVFoamReader -IlnInclude -I. -I/home/gcoppola/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64DPOpt/vtkFoamAddPatch.o
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/st rstream:51,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIOStream.h:36,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkSystemIncludes.h:40,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkIndent.h:24,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObjectBase.h:43,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkObject.h:41,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:35,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataSet.h:40,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkPointSet.h:29,
from /home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkUnstructuredGrid.h:25,
from vtkFoamAddPatch.C:32:
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/ba ckward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <x> header for the <x.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:118: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOn()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOff()':
/home/gcoppola/OpenFOAM/linux64/paraview-2.6.2/include/vtkDataObject.h:275: warning: use of old-style cast
`/home/gcoppola/OpenFOAM/OpenFOAM-1.4/lib/linux64DPOpt/libvtkFoam.so' is up to date.
make[3]: Leaving directory `/home/gcoppola/OpenFOAM/OpenFOAM-1.4/applications/utilities/postProcessing/grap hics/PVFoamReader/vtkFoam'
=============================================

Thanks a lot for your help and certainly your expert advice.

good night
gfcoppola is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with installation of OpenFoam sheyer OpenFOAM Installation 8 July 28, 2008 03:45
OpenFOAM installation Mark Main CFD Forum 2 March 29, 2008 07:45
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 01:40
Installation OpenFoam on SUSE 101 t42 OpenFOAM Installation 1 August 1, 2007 06:15
OpenFOAM installation problem on Linux 32bit kumar OpenFOAM Installation 0 April 27, 2007 05:41


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