CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] ParaFoam/ParaView Mesa 11.0.4 (https://www.cfd-online.com/Forums/openfoam-installation/164312-parafoam-paraview-mesa-11-0-4-a.html)

Chrishas December 18, 2015 07:32

ParaFoam/ParaView Mesa 11.0.4
 
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

wyldckat December 19, 2015 13:17

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

Chrishas December 21, 2015 05:02

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.


All times are GMT -4. The time now is 04:58.