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

ParaFoam/ParaView Mesa 11.0.4

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 18, 2015, 08:32
Default ParaFoam/ParaView Mesa 11.0.4
  #1
New Member
 
Join Date: Dec 2015
Posts: 2
Rep Power: 0
Chrishas is on a distinguished road
Hi all,

I'm trying to compile Paraview 4 from the Third Party package using the following command:

Code:
./makeParaView4 VTK_OPENGL_HAS_OSMESA=ON VTK_USE_X=OFF PARAVIEW_BUILD_QT_GUI=ON OSMESA_LIBRARY=/usr/local/mesa/gallium/11.0.4/lib/libOSMesa.so OSMESA_INCLUDE_DIR=/usr/local/mesa/gallium/11.0.4/include OPENGL_INCLUDE_DIR=/usr/local/mesa/gallium/11.0.4/include OPENGL_gl_LIBRARY=/usr/local/mesa/gallium/11.0.4/lib/libOSMesa.so OPENGL_glu_LIBRARY=/usr/local/glu/9.0.0/lib/libGLU.so
This results in the following error:

Code:
[ 48%] Linking CXX shared library ../../../lib/libvtkGUISupportQt-pv4.4.so
[ 48%] Building CXX object VTK/Rendering/LIC/CMakeFiles/vtkRenderingLIC.dir/vtkLineIntegralConvolution2D.cxx.o
Building CXX object VTK/Filters/ParallelMPI/CMakeFiles/vtkFiltersParallelMPI.dir/vtkPExtractGrid.cxx.o
[ 48%] Building CXX object VTK/IO/Parallel/CMakeFiles/vtkIOParallel.dir/vtkMultiBlockPLOT3DReader.cxx.o
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `QVTKWidget::x11_setup_window()':
QVTKWidget.cxx:(.text+0x985): undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
QVTKWidget.cxx:(.text+0xa22): undefined reference to `XGetWindowAttributes'
QVTKWidget.cxx:(.text+0xa62): undefined reference to `XCreateWindow'
QVTKWidget.cxx:(.text+0xa90): undefined reference to `XGetWMColormapWindows'
QVTKWidget.cxx:(.text+0xaef): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0xb80): undefined reference to `XSetWMColormapWindows'
QVTKWidget.cxx:(.text+0xb90): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0xb98): undefined reference to `XFlush'
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `vtkXOpenGLRenderWindow::GetGenericDisplayId()':
QVTKWidget.cxx:(.text._ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv[_ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv]+0x1): undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkGUISupportQt-pv4.4.so.1] Error 1
make[1]: *** [VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Everything is compiled using gcc 5.2.0 and Python 2.7.10.
In the Paraview with Mesa/llvmpipe page the flag --disable-shared-glapi is used for Mesa but for 11.0.4 it needs to be enabled. Also the PARAVIEW_BUILD_QT_GUI is OFF in that same page but no paraview gui is compiled at all?

Thanks,

Chris
Chrishas is offline   Reply With Quote

Old   December 19, 2015, 14: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 question: Which Linux Distribution are you using?
I ask this because it will make it easier for me to reproduce the same problem.

In addition, how did you install Mesa?

In the meantime, maybe this can help: http://www.openfoam.org/mantisbt/view.php?id=793
__________________
wyldckat is offline   Reply With Quote

Old   December 21, 2015, 06:02
Default
  #3
New Member
 
Join Date: Dec 2015
Posts: 2
Rep Power: 0
Chrishas is on a distinguished road
Thanks for the reply.

The distro is Scientific Linux 6.6 and mesa was compiled using the following configure command:

Code:
./configure --prefix=/usr/local/mesa/gallium/11.0.4 CXXFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31"     CFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31"     --disable-xvmc     --disable-glx     --disable-dri     --with-dri-drivers=""     --with-gallium-drivers="swrast"     --enable-texture-float     --enable-shared-glapi     --disable-egl     --with-egl-platforms=""     --enable-gallium-osmesa     --enable-gallium-llvm=yes     --enable-llvm-shared-libs
I will try the files in the bug report as well.
Chrishas 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
Problem with apply button in paraFoam/paraView mukut OpenFOAM Paraview & paraFoam 2 December 7, 2014 07:53
Installing OpenFoam on windows 7-64 Dadou OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 10 February 11, 2014 17:20
Nuisance output messages in ParaView 3.12.0 64-bit (OpenFOAM version) gcengineer OpenFOAM Paraview & paraFoam 9 October 8, 2013 08:27
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
Start cfx5pre and cfd5post with -gr mesa Lance CFX 5 January 26, 2010 04:18


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