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

paraFoam error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 24, 2010, 15:27
Default paraFoam error
  #1
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 6
N. A. is on a distinguished road
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
N. A. is offline   Reply With Quote

Old   September 26, 2010, 13:36
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   September 27, 2010, 16:40
Default
  #3
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 6
N. A. is on a distinguished road
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
N. A. is offline   Reply With Quote

Old   September 27, 2010, 18:52
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Nir,

Quote:
Originally Posted by N. A. View Post
step -1: ./Allclean and ./makeParaView
Allclean wasn't necessary... But it shouldn't influence OpenFOAM's operationability

Quote:
Originally Posted by N. A. View Post
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
wyldckat is offline   Reply With Quote

Old   September 27, 2010, 19:13
Default
  #5
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 6
N. A. is on a distinguished road
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.
N. A. is offline   Reply With Quote

Old   September 27, 2010, 19:31
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   September 29, 2010, 14:34
Default
  #7
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 6
N. A. is on a distinguished road
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
N. A. is offline   Reply With Quote

Old   September 29, 2010, 14:43
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,450
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 06:17
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 11:46
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
user defined function cfduser CFX 0 April 29, 2006 11:58


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