CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   paraFoam error (http://www.cfd-online.com/Forums/openfoam/80412-parafoam-error.html)

N. A. September 24, 2010 14:27

paraFoam error
 
Hi Foamers,

Recently we installed new ubuntu (10.04 / Lucid Lynx) on our head node of the cluster. After this I am trying to open paraFoam and I get following error (which i was not getting before installing of the new Operating system).

______________________________________________
NA@emerald:~/OpenFOAM/NA1.6/run/tuto...tryFoam/BYU32$ created temporary 'BYU32.OpenFOAM'
ERROR: In /home/NA/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 405
vtkXOpenGLRenderWindow (0x257f830): Could not find a decent visual
ERROR: In /home/NA/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 405
vtkXOpenGLRenderWindow (0x257f830): Could not find a decent visual
X Error: BadValue (integer parameter out of range for operation) 2
Extension: 144 (Uknown extension)
Minor opcode: 3 (Unknown request)
Resource id: 0x23
ERROR: In /home/NA/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 632
vtkXOpenGLRenderWindow (0x257f830): Cannot create GLX context. Aborting.
Aborted
[1]+ Done paraFoam
NA@emerald:~/OpenFOAM/NA1.6/run/tuto...tryFoam/BYU32$
______________________________________________
If you knowhow to get rid of this error of "decent visual", please let me know.

Thanks,
Nir

wyldckat September 26, 2010 12:36

Greetings Nir,

You didn't mention what was the previous OS version ;)

Either way, it seems that you'll have to rebuild ParaView 3.6.1. The libraries for OpenGL are probably too different from the previous OS you had, so the only solution I know of is to build ParaView again!

The other possibility is that whichever means you used to install OpenFOAM in the previous OS, you installed libraries that haven't been installed in the new Ubuntu. For example, the package freeglut-dev comes to mind.

Best regards,
Bruno

N. A. September 27, 2010 15:40

Hello Bruno,

Thanks for the inputs. I tried rebulding paraView as follows:
step -1: ./Allclean and ./makeParaView
step -2: go to "cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader" and
./Allwclean
./Allwmake

In the step-2, I get following error:

/home/NA/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkType.h:231:3: error: #error "No native data type can represent a 64-bit floating point value."
make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
./Allwmake: 1: cmake: not found
+ make
make: *** No targets specified and no makefile found. Stop.

This looks that there is no cmake installed in the new OS. Can cmake be installed standalone just like installing Qt in the ThirdParty home directory?

Thanks,
Nir

wyldckat September 27, 2010 17:52

Hi Nir,

Quote:

Originally Posted by N. A. (Post 276826)
step -1: ./Allclean and ./makeParaView

Allclean wasn't necessary... But it shouldn't influence OpenFOAM's operationability :)

Quote:

Originally Posted by N. A. (Post 276826)
This looks that there is no cmake installed in the new OS. Can cmake be installed standalone just like installing Qt in the ThirdParty home directory?

Yes. There isn't any script for building CMake like the ones for Qt and ParaView, but I think it's simple enough.
Additionally, OpenFOAM already expects CMake 2.6.4 to be installed at "$WM_THIRD_PARTY_DIR/cmake-2.6.4/platforms/$WM_ARCH". So, as soon as cmake is built, start a new terminal and source OpenFOAM's bashrc file and the new cmake will be visible :)

Wait a minute: how on Earth did you manage to build ParaView without CMake??

Anyway, here's a thread that explains how to build ParaView 3.6.1: New user needs help

Best regards,
Bruno

N. A. September 27, 2010 18:13

Hi Bruno,

Thanks for the cmake. i also figured out and told my computer administrator. he installed cmake and I could go a little ahead in compilation (Still compilation is not successful). Now I get the following error in the step-2 above when I compile ParaView. Following is the error that I get about OPENGL_INCLUDE_DIR. I am not sure what this error is. Any clue to you.

Thanks,
Nir

Error (during following step-2 above):
...
...
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.3.5 (using /home/NA/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/platforms/linux64GccDPOpt/bin/qmake)
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR
used as include directory in directory /home/NA/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader
-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.

wyldckat September 27, 2010 18:31

Hi Nir,

I forgot about the artillery necessary for building ParaView and OpenFOAM... Here is a thread that has a list of packages necessary for building both: http://www.cfd-online.com/Forums/ope...tml#post268828 - start reading from post #4. That thread is for OpenFOAM 1.7.0 and above, but it's also relevant to 1.6 and 1.6.x :)

Additionally, in the link in my signature you will find a whole lot of pearls of wisdom on how to build OpenFOAM and ThirdParty tools.

Best regards,
Bruno

N. A. September 29, 2010 13:34

Hi Bruno,

Thanks for the link. I was trying to find out my recent error about OpenGL. Do you know if CMAKE is not able to read in OPENGL directory or that OpenGL is not at all installed and I need to install it.

Thanks,
Nir

wyldckat September 29, 2010 13:43

Hi Nir,

AFAIK the OpenGL libraries in Ubuntu have about two ties:
  • The freeglut3-dev package has the development related tools for using OpenGL;
  • The include+library files that should come with the graphics card drivers. This depends on whether you have the proper drivers installed (NVidia or ATI) or simply the generic Mesa drivers (which usually also work with Intel cards/GPUs).
Most likely, the missing package is just freeglut3-dev, but all of those libx*-dev packages will be necessary during the building process of ParaView.

Best regards,
Bruno


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