[Paraview] [Paraview Help] error in building

Karl König kkoenig11 at web.de
Wed Jun 15 04:33:28 EDT 2011


Hi,

I'm not perfectly sure the error you're seeing is caused by it, but
there is at least the following error in your setup: It's been recently
discussed on this mailing list that with newer versions of Mesa (> 7.5
or 7.7, I don't recall this right now) the OSMesa library does not
depend on GL (or X) and can not be linked with any other GL library. See
http://markmail.org/message/wutdc3yp56l4nmay. (Not sure which version of
Mesa ships with Fedora 14.)

Kevin also pointed out in the same thread (attachment of
http://markmail.org/message/d74tvmox4afwjqkh) that you need to leave
OPENGL_gl_LIBRARY empty for newer Mesa versions. You need to reconfigure
and recompile from scratch, though.

 cmake \
               -DOPENGL_INCLUDE_DIR:STRING=/usr/include \
               -DOPENGL_gl_LIBRARY:STRING= \
               -DOPENGL_glu_LIBRARY=/usr/lib64/libGLU.so \
               -DOSMESA_INCLUDE_DIR:STRING=/usr/include \
               -DOSMESA_LIBRARY:STRING=/usr/lib64/libOSMesa.so
               -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF \
               -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
               -DVTK_USE_OFFSCREEN:BOOL=ON \
               -DVTK_USE_X:BOOL=OFF

Hope that helps

Karl


le Anh Dung wrote, On 15.06.2011 10:11:
> Hi,
> Thanks for your response. I'm sorry, I forgot to attach the CMakeCache.
> Here's what I set:
> 
> OPENGL_INCLUDE_DIR:PATH=/usr/include
> OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so
> OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so
> OSMESA_INCLUDE_DIR:PATH=/usr/include
> OSMESA_LIBRARY:FILEPATH=/usr/lib64/libOSMesa.so
> 
> I'm compiling Paraview in a Fedora14 64bits
> and the file CMakeCache is attached.
> Thanks again :)
> 
> ----------------------------------------------------
> Anh Dung LE.
> INSA de Lyon - Télécommunications, Services & Usages
> 
> 
> Karl König <kkoenig11 at web.de> a écrit :
> 
>> Hi,
>>
>> In addition to VTK_OPENGL_HAS_OSMESA, VTK_USE_OFFSCREEN, and VTK_USE_X
>> what are the settings you used for
>>
>>       OPENGL_INCLUDE_DIR
>>       OPENGL_gl_LIBRARY
>>       OPENGL_glu_LIBRARY
>>       OSMESA_INCLUDE_DIR
>>       OSMESA_LIBRARY
>>
>> ? You might want to attach your CMakeCache.txt, makes it easier in
>> general to track things like this down.
>>
>> Karl
>>
>>
>> le Anh Dung wrote, On 15.06.2011 09:42:
>>> Hello everybody,
>>> I'm trying to compile paraview to a sever without an X server, so the
>>> configuration is VTK_OPENGL_HAS_OSMESA = ON, VTK_USE_OFFSCREEN=ON and
>>> VTK_USE_X=OFF then I get this error:
>>> [ 97%] Built target vtkPVServerManagerPython
>>> Linking CXX executable ../../bin/vtkSMExtractDocumentation
>>> ../../bin/libvtkXdmf.so: undefined reference to `typeinfo for
>>> vtkXRenderWindowInteractor'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::~vtkXRenderWindowInteractor()'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::PrintSelf(std::basic_ostream<char,
>>> std::char_traits<char> >&, vtkIndent)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::Initialize(_XtAppStruct*)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::SetTopLevelShell(_WidgetRec*)'
>>> ../../bin/libvtkXdmfCS.so: undefined reference to
>>> `vtkXRenderWindowInteractorCommand(vtkClientServerInterpreter*,
>>> vtkObjectBase*, char const*, vtkClientServerStream const&,
>>> vtkClientServerStream&)'
>>> ../../bin/libvtkXdmf.so: undefined reference to `XtAppPending'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::Initialize()'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::Disable()'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::vtkXRenderWindowInteractor()'
>>> ../../bin/libvtkXdmf.so: undefined reference to `XtAppNextEvent'
>>> ../../bin/libvtkXdmfCS.so: undefined reference to
>>> `vtkXRenderWindowInteractor_Init(vtkClientServerInterpreter*)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::BreakLoopFlag'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::TerminateApp()'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::Start()'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::GetMousePosition(int*, int*)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::SetWidget(_WidgetRec*)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::InternalDestroyTimer(int)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::App'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::InternalCreateTimer(int, int, unsigned
>>> long)'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::UpdateSize(int, int)'
>>> ../../bin/libvtkXdmf.so: undefined reference to `XtDispatchEvent'
>>> ../../bin/libvtkXdmf.so: undefined reference to
>>> `vtkXRenderWindowInteractor::Enable()'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/vtkSMExtractDocumentation] Error 1
>>> make[1]: ***
>>> [ParaViewCore/ServerManager/CMakeFiles/vtkSMExtractDocumentation-real.dir/all]
>>>
>>> Error 2
>>> make: *** [all] Error 2
>>>
>>> Could anybody help me out of this ?
>>>
>>>
>>> Thank you so much and have a nice day !
>>>
>>>
>>> ----------------------------------------------------
>>> Anh Dung LE.
>>> INSA de Lyon - Télécommunications, Services & Usages
>>>
>>
>>
> 
> 



More information about the ParaView mailing list