CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam install script Error during paraFoam installation (http://www.cfd-online.com/Forums/openfoam-installation/77301-openfoam-install-script-error-during-parafoam-installation.html)

SePe June 18, 2010 19:09

OpenFoam install script Error during paraFoam installation
 
Hello,
I'm new to this forum. Thanks for that great script. I would never manage to install the program correctly without it!

However, there still occurred an error during the building paraFoam part.
I would be very thankful if someone of the more advanced guys here could help me out, I'm completely new to openFoam and CFD in general.

edit: I just recognized that two ThirdParty-folders were created: "ThirdParty-1.6" and "ThirdParty-1.6.x". Could this be the reason for the script not finding all variables needed?

The last part of the logfile says:

PHP Code:

CMake ErrorThe following variables are used in this projectbut they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR (ADVANCED)
   
used as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Wrapping
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/kwsys
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkzlib
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkjpeg
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkpng
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtktiff
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkexpat
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkfreetype
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtklibxml2
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/DICOMParser
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/MaterialLibrary
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtklibproj4
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/verdict
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtknetcdf
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkmetaio
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtksqlite
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkexodus2
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkalglib
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/Doxygen
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/EncodeString
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/ftgl
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/ParseOGLExt
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Common
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Filtering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Imaging
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Graphics
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GenericFiltering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/IO
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Rendering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/VolumeRendering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Hybrid
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Widgets
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Parallel
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Infovis
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Geovis
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Views
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GUISupport
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GUISupport/Qt
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GUISupport/Qt/Chart
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GUISupport/Qt/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/vtkTclTest2Py
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Common/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Common/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Filtering/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Filtering/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Graphics/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Graphics/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GenericFiltering/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/GenericFiltering/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Imaging/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Imaging/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/IO/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/IO/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Rendering/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Rendering/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/VolumeRendering/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/VolumeRendering/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Hybrid/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Hybrid/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Widgets/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Widgets/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Parallel/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Parallel/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Infovis/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Infovis/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Geovis/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Geovis/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Views/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Views/Testing/Cxx
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Utilities/LastConfigureStep
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Wrapping
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Common
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Filtering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/GenericFiltering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Imaging
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Graphics
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/IO
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Rendering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Hybrid
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Parallel
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/VolumeRendering
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Widgets
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Xdmf2
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Infovis
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Views
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Utilities/VTKClientServer/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Servers/Filters
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Servers/Filters/Testing
   used 
as include directory in directory /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/Servers/Filters/Testing/Cxx

-- Configuring incompleteerrors occurred!
    
Starting make
make
: *** No targets specified and no makefile found.  Stop.
Command exited with non-zero status 2
0.00user 0.00system 0
:00.01elapsed 80%CPU (0avgtext+0avgdata 3616maxresident)k
0inputs
+0outputs (0major+278minor)pagefaults 0swaps
    Done make
    
For quicker developmentlinking lib/paraview-3.6/ -> bin/
    
Creating html documentation
make
: *** No rule to make target `HTMLDocumentation'.  Stop.
    Installing ParaView to /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc
disabled 'make install' for now, just use links
    ---
    Installation complete
    Set environment variables:

        export ParaView_INST_DIR=/home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1
        export ParaView_DIR=/home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc
        export PV_PLUGIN_PATH=/home/sepe/code/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt
        export PATH=
$ParaView_DIR/bin:$PATH
    ---
-- Replacing path hard links for 
$ParaView_DIR
   *.cmake: ###################
-- Replacing path hard links for 
$ParaView_INST_DIR
   *.cmake: ############################
-- Replacing path hard links for 
$CMAKE_HOME
   *cmake*: ###
-- Replacing path hard links for 
$WM_COMPILER_DIR
   *cmake*: ########
done

real    0m54.332s
user    0m30.842s
sys    0m17.857s 


wyldckat June 19, 2010 06:05

Greetings Sebastian and welcome to the forum,

First of all, I can only assume you are speaking of this script: http://code.google.com/p/openfoam-ubuntu/

Secondly, the support thread for it is this one: http://www.cfd-online.com/Forums/ope...er-ubuntu.html
No problem you posting in a separate thread, it's just this way you had a lesser probability of me or Fabio picking up on it.

Now, for the installation issue you've got: fortunately it already has been discovered and fixed. Please follow these instructions:
Quote:

Originally Posted by wyldckat
Have you tried to use the experimental script? Please see post #68 and maybe a couple of more after that one, because I'm not sure where I explain it a bit better :(

Best regards,
Bruno

SePe June 19, 2010 12:09

Hello Bruno,
thanks for the advice, the other installer worked fine, no errors.

But now I get an error when typing in "paraFoam":

PHP Code:

sepe@sepe-laptop:~/code/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam/cavityparaFoam
created temporary 
'cavity.OpenFOAM'
/home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc/bin/paraview-realerror while loading shared librarieslibQtAssistantClient.so.4cannot open shared object fileNo such file or directory 

I'm running a 32-bit-version of Ubuntu 10.04 by the way.

Regards,
Sebastian

wyldckat June 19, 2010 13:01

Hello Sebastian,
Quote:

Originally Posted by SePe (Post 263690)
thanks for the advice, the other installer worked fine, no errors.

You're welcome, and I'm glad it worked.

Quote:

Originally Posted by SePe (Post 263690)
But now I get an error when typing in "paraFoam":

PHP Code:

sepe@sepe-laptop:~/code/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam/cavityparaFoam
created temporary 
'cavity.OpenFOAM'
/home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc/bin/paraview-realerror while loading shared librarieslibQtAssistantClient.so.4cannot open shared object fileNo such file or directory 

I'm running a 32-bit-version of Ubuntu 10.04 by the way.

Arg... I completely forgot about that issue :( I gotta fix that too... OK, the quickest way for you to fix it is to run the following command in a terminal with OpenFOAM's environment already up and running:
Code:

for a in $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/lib/*.4; do b=`echo $a | sed -e 's/.*\/\(.*\)$/\1/'`; ln -s $a $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/$WM_ARCH$WM_COMPILER/bin/$b; done
I know, it's a long line of code, but please don't skip a single character!! It should fix that issue you've gotten!

Best regards,
Bruno

SePe June 19, 2010 13:22

It finally works, thanks to your script and additional help.
You're my hero!

Regards,
Sebastian

wyldckat June 19, 2010 13:36

Hi Sebastian,
Quote:

Originally Posted by SePe (Post 263698)
It finally works, thanks to your script and additional help.
You're my hero!

I'm glad it's finally working :) And the script isn't just mine, it's also Fabio Canesin's and the work was started by Mads Reck, AFAIK.
As for being a hero... the cause is just and I only have been sacrificing some time of my life, and not my life itself, or so I hope :eek:!

And I thank you too for reporting the bugs with the script, which without it would take a few more days, weeks or maybe even months until it would be fixed...

Best regards and happy openfoaming ;)
Bruno

SePe June 19, 2010 14:01

Ok, now I'm completely devastated...

I just loaded the cavity-tutorial-case in paraFoam and again recieved two errors in ParaView.
I don't know what's wrong this time. I just ran the case not changing any of the files.

PHP Code:

ERRORIn /home/sepe/code/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxxline 189
vtkPV3FoamReader 
(0x8cb5bf8): could not find valid OpenFOAM mesh


ERROR
In /home/sepe/code/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Filtering/vtkExecutive.cxxline 757
vtkCompositeDataPipeline 
(0x8cb5680): Algorithm vtkPV3FoamReader(0x8cb5bf8returned failure for requestvtkInformation (0x8c269c8)
  
DebugOff
  Modified Time
82662
  Reference Count
1
  Registered Events
: (none)
  
RequestREQUEST_INFORMATION
  FORWARD_DIRECTION
0
  ALGORITHM_AFTER_FORWARD



wyldckat June 19, 2010 14:33

Quote:

I just ran the case not changing any of the files.
That's odd, what commands did you execute to run the case?

SePe June 19, 2010 14:40

I just typed in "paraFoam".
After that, paraView starts and an "Output Messages"-window pops up with those errors.

wyldckat June 19, 2010 15:05

Then your words were a bit misleading:
Quote:

I just ran the case not changing any of the files.
I assumed you had run the commands that the user guide talks about, and that you didn't change any of the files.
OK, the simplest execution of the cavity tutorial is to run the following commands:
Code:

blockMesh
icoFoam

And then you can run paraFoam :)
Actually, after blockMesh you can already run paraFoam, because a mesh is generated by blockMesh ;)

As for the user guide, I suggest that you read and follow the steps starting here: Chapter 2 Tutorials

Have a good reading and training session :) and read very carefully the steps that the guide shows you! And don't forget that Linux is very sensitive to letter casing... i.e., blockmesh isn't the same as blockMesh!

SePe June 19, 2010 15:15

Oh my god...
I read the tutorial a while ago before realizing my Installation did not work.
And due to the excitement that it could finally work I totally forgot about that :-)
Thanks again, Bruno!!!

Regards,
Sebastian


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