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

[OpenFOAM.org] 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 Search this Thread 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: 17
Rep Power: 6
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: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 17
Rep Power: 6
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 05:48
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview ditmeyer OpenFOAM Installation 3 May 15, 2017 12:04
[OpenFOAM.org] OpenFOAM 2.3.1: installation problem with ParaView 4.1.0 hjw OpenFOAM Installation 5 November 17, 2015 21:14
[OpenFOAM] OpenFOAM 2.4 Thirdparty tools still have paraview 4.1.0 steinLeat ParaView 0 July 11, 2015 02:56
OpenFOAM paraView problem Ronnfors OpenFOAM 2 September 22, 2009 05:32


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