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

[Other] ParaFoam/ParaView Mesa 11.0.4

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2015, 07: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, 13:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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 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, 05: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


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] Problem with apply button in paraFoam/paraView mukut ParaView 2 December 7, 2014 06:53
Installing OpenFoam on windows 7-64 Dadou OpenFOAM Installation 10 February 11, 2014 16:20
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Start cfx5pre and cfd5post with -gr mesa Lance CFX 5 January 26, 2010 03:18
[OpenFOAM] symbol lookup error paraFoam/paraview OFU ParaView 1 August 5, 2009 05:11


All times are GMT -4. The time now is 05:48.