CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam 14 installation problem (https://www.cfd-online.com/Forums/openfoam-installation/57470-openfoam-14-installation-problem.html)

gfcoppola July 10, 2007 18:36

Hi, I just tried to install
 
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

msrinath80 July 11, 2007 01:25

Replace Allwmake in the script
 
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

gfcoppola July 11, 2007 07:00

Hi, the code compiled witho
 
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 July 12, 2007 18:19

Hi, I decided to recompile,
 
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

msrinath80 July 13, 2007 03:02

Can you post the relevant log
 
Can you post the relevant log transcript before the error message?

gfcoppola July 13, 2007 09:15

Hi, I did wcleanAll a
 
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

msrinath80 July 13, 2007 12:24

I think this is to do with the
 
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

philippose July 14, 2007 07:42

Hi there, A brilliantly blu
 
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

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif options

Enjoy!

Philippose

msrinath80 July 15, 2007 13:10

Philippose: Thank you very muc
 
Philippose: Thank you very much. Your options file did the trick.

gfcoppola July 15, 2007 15:04

Hi, thanks a lot for the su
 
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

philippose July 15, 2007 16:02

Hello again, Ok... the firs
 
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.

http://www.cfd-online.com/OpenFOAM_D...s/mime_txt.gif buildInstructions.txt

Have a nice day!

Philippose

oscar_j July 16, 2007 13:09

hi, I am trying to get the
 
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!

gfcoppola July 16, 2007 13:37

Hi, thanks for the detailed
 
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

philippose July 16, 2007 14:14

Hello Gianfilippo, A Good d
 
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

gfcoppola July 16, 2007 14:35

Hi, thanks again. I am comp
 
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

philippose July 16, 2007 15:38

Hi :-)! No no.... dont term
 
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

gfcoppola July 16, 2007 16:47

Hi, thanks for he link. pa
 
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

philippose July 16, 2007 17:13

Hi there yet again :-) Did
 
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

gfcoppola July 16, 2007 17:30

Hi, I did follow the instru
 
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 July 16, 2007 18:27

Hi, good news, I ran icoFoa
 
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

deepblue17 November 2, 2007 13:38

Hello Gianfilippo, which co
 
Hello Gianfilippo,

which configuration options do you use for the paraview cmake? I can build it, but at runtime I get a segmentation fault. I've also written an ebuild for OpenFOAM for gentoo boxes. Yet in the emerge/sandbox environment I can't even compile the PVFoamReader. The log's said like:

+ cmake ../..
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
Warning: CMake is forcing CMAKE_CXX_COMPILER to "/usr/bin/c++" to match that imported from VTK. This is required because C++ projects must use the same compiler. If this message appears for more than one imported project, you have conflicting C++ compilers and will have to re-build one of those projects. Was set to /usr/bin/g++
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/sci-libs/openfoam-1.4.1_p20071028/work/OpenFOAM-1.4.1/applicati ons/utilities/postProcessing/graphics/PVFoamReader/PVFoamReader/Make/linux64DPOp t
+ make
make[3]: Entering directory `/var/tmp/portage/sci-libs/openfoam-1.4.1_p20071028/work/OpenFOAM-1.4.1/applicat ions/utilities/postProcessing/graphics/PVFoamReader/PVFoamReader/Make/linux64DPO pt'
make[4]: Entering directory `/var/tmp/portage/sci-libs/openfoam-1.4.1_p20071028/work/OpenFOAM-1.4.1/applicat ions/utilities/postProcessing/graphics/PVFoamReader/PVFoamReader/Make/linux64DPO pt'
make[5]: Entering directory `/var/tmp/portage/sci-libs/openfoam-1.4.1_p20071028/work/OpenFOAM-1.4.1/applicat ions/utilities/postProcessing/graphics/PVFoamReader/PVFoamReader/Make/linux64DPO pt'
[ 14%] Generating vtkFoamDataClientServer.cxx
make[5]: execvp: ../../vtkFoamData.h: Permission denied
make[5]: *** [vtkFoamDataClientServer.cxx] Error 127
[ 28%] Generating vtkFoamReaderClientServer.cxx
make[5]: execvp: ../../vtkFoamReader.h: Permission denied
make[5]: *** [vtkFoamReaderClientServer.cxx] Error 127
make[5]: Target `CMakeFiles/PVFoamReader.dir/depend' not remade because of errors.

Has anybody some ideas?


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