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

OpenFOAM 2.4 ParaView 4.1 compilation problem

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

Like Tree1Likes
  • 1 Post By tubois

Reply
 
LinkBack Thread Tools Display Modes
Old   October 22, 2015, 12:03
Default OpenFOAM 2.4 ParaView 4.1 compilation problem
  #1
New Member
 
Zhenlan GAO
Join Date: Oct 2015
Location: France
Posts: 12
Rep Power: 3
tubois is on a distinguished road
Dear all,

I am using Debian 8 Mate desktop. I successfully installed OpenFOAM 2.4 on my laptop, however the compilation for ParaView in the ThirdParty has problem.

Linking CXX shared library ../../../lib/libvtkRenderingVolume-pv4.1.so
[ 56%] Built target vtkRenderingVolume
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2
3348.13user 250.08system 32:19.02elapsed 185%CPU (0avgtext+0avgdata 897992maxresident)k
9448inputs+1800624outputs (13major+61947718minor)pagefaults 0swaps


[ 11%] Building CXX object VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkXOpenGLRenderWindow.cxx.o
In file included from /usr/include/GL/glx.h:333:0,
from /home/gao/OpenFOAM/ThirdParty-2.4.0/ParaView-4.1.0/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx:31:
/usr/include/GL/glxext.h:480:143: error: ‘GLintptr’ has not been declared
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:480:164: error: ‘GLintptr’ has not been declared
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:480:186: error: ‘GLsizeiptr’ has not been declared
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:481:148: error: ‘GLintptr’ has not been declared
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:481:169: error: ‘GLintptr’ has not been declared
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:481:191: error: ‘GLsizeiptr’ has not been declared
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/build.make:1946: recipe for target 'VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkXOpenGLRenderWindow.cxx.o' failed
make[2]: *** [VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkXOpenGLRenderWindow.cxx.o] Error 1
CMakeFiles/Makefile2:2613: recipe for target 'VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/all' failed
make[1]: *** [VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
---
Installation complete for paraview-4.1.0
Set environment variables:

export ParaView_DIR=/home/gao/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
---

Done
tubois is offline   Reply With Quote

Old   October 22, 2015, 16:17
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: http://openfoamwiki.net/index.php/In...u#Ubuntu_15.04 - step #9, sub-step #1, has the fix necessary for this problem.

In addition, this is documented at the end of the README file in the ThirdParty folder: https://github.com/OpenFOAM/ThirdPar...g-paraview-410
wyldckat is offline   Reply With Quote

Old   October 23, 2015, 06:56
Default
  #3
New Member
 
Zhenlan GAO
Join Date: Oct 2015
Location: France
Posts: 12
Rep Power: 3
tubois is on a distinguished road
Thank you very much! Problem solved.

Quote:
Originally Posted by wyldckat View Post
Quick answer: http://openfoamwiki.net/index.php/In...u#Ubuntu_15.04 - step #9, sub-step #1, has the fix necessary for this problem.

In addition, this is documented at the end of the README file in the ThirdParty folder: https://github.com/OpenFOAM/ThirdPar...g-paraview-410
wyldckat likes this.
tubois 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
OpenFOAM 2.4 in Linux Mint 17.2: compiling ParaView with python-support seanread OpenFOAM Installation 4 September 5, 2015 23:44
Problem switching from terminal to paraView Maxime Thomas OpenFOAM Paraview & paraFoam 10 October 4, 2014 10:59
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
OpenFOAM paraView problem Ronnfors OpenFOAM 2 September 22, 2009 05:32
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


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