[Paraview] setting the flags for compilation for offscreen rendering support

Milos Ilak ilak at mech.kth.se
Sat Oct 9 12:30:32 EDT 2010


Hi,

I see now - these are set using the CMake GUI. Thanks!

Milos


On Sat, Oct 9, 2010 at 6:13 PM, Andy Bauer <andy.bauer at kitware.com> wrote:

> Hi Milos,
>
> Please reply to the whole list.
>
> On one of the machines I use I've set them to:
>  OPENGL_INCLUDE_DIR
> /packages/Mesa-7.2/include
>
>  OPENGL_gl_LIBRARY
> /packages/Mesa-7.2/lib64/libGL.so
>
>  OPENGL_glu_LIBRARY
> /packages/Mesa-7.2/lib64/libGLU.so
>
>  OPENGL_xmesa_INCLUDE_DIR
> /packages/Mesa-7.2/include
>
>  OSMESA_INCLUDE_DIR
> /packages/Mesa-7.2/include
>
>  OSMESA_LIBRARY         /packages/Mesa-7.2/lib64/libOSMesa.so
> VTK_OPENGL_HAS_OSMESA            ON
> VTK_USE_OFFSCREEN           ON
>
>
> On Sat, Oct 9, 2010 at 12:05 PM, Milos Ilak <ilak at mech.kth.se> wrote:
>
>> Hi Andy,
>>
>> thanks! I have figured out that these are the options I need, but where
>> and how should I set them? This ccmake business is a bit confusing! I would
>> appreciate some help on that part of the process. Regards,
>>
>> Milos
>>
>>
>>
>>
>> On Sat, Oct 9, 2010 at 5:57 PM, Andy Bauer <andy.bauer at kitware.com>wrote:
>>
>>> You should set VTK_USE_OFFSCREEN to on (I'm assuming you've already
>>> turned on VTK_OPENGL_HAS_OSMESA).  Then you'll need to set the OSMesa
>>> libraries and header files (OSMESA_INCLUDE_DIR and OSMESA_LIBRARY).  When
>>> I've done this in the past I didn't set VTK_USE_DISPLAY so you can probably
>>> leave that as is.  To be safe, you may want to set OPENGL_INCLUDE_DIR,
>>> OPENGL_gl_LIBRARY, and OPENGL_glu_LIBRARY to the OSMesa versions of those
>>> (I'm not sure if this is necessary or not).  Finally, then you'll need the
>>> following in your python script to turn on off screen rendering:
>>>
>>> import paraview.servermanager as sm
>>> options = sm.vtkPVOptions()
>>> options.SetUseOffscreenRendering(1)
>>>
>>> Andy
>>>
>>>
>>> On Sat, Oct 9, 2010 at 11:31 AM, Milos Ilak <ilak at mech.kth.se> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have been using ParaView with Python scripts successfully, but I still
>>>> have the problem of offscreen rendering not working properly, i.e., I always
>>>> get a screen popping up every few seconds while the script is running. From
>>>> the discussion below I understand that setting up offscreen rendering
>>>> properly is done at compile time:
>>>>
>>>> http://www.paraview.org/pipermail/paraview/2010-April/016734.html
>>>>
>>>> But I am not sure where I need to set the flags mentioned, such as
>>>> VTK_USE_OFFSCREEN, VTK_USE_DISPLAY, etc. I would like to try this myself
>>>> before I ask the admins on the cluster I am using to do it for me. I have
>>>> been looking at the Makefiles and config files in the 3.8.1 version, but
>>>> there are so many of them...Should this be done in vtkPVConfig.h.inperhaps? Thanks!
>>>>
>>>> Milos
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>  Miloš Ilak
>>>> Linné Flow Centre
>>>> KTH Mechanics, Stockholm
>>>> +46(0) 8 790-7152
>>>> www2.mech.kth.se/~ilak <http://www2.mech.kth.se/%7Eilak/>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>> http://paraview.org/Wiki/ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>>>>
>>>
>>
>>
>> --
>>  Miloš Ilak
>> Linné Flow Centre
>> KTH Mechanics, Stockholm
>> +46(0) 8 790-7152
>> www2.mech.kth.se/~ilak <http://www2.mech.kth.se/%7Eilak/>
>>
>>
>>
>


-- 
Miloš Ilak
Linné Flow Centre
KTH Mechanics, Stockholm
+46(0) 8 790-7152
www2.mech.kth.se/~ilak <http://www2.mech.kth.se/%7Eilak/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101009/08ee2b00/attachment.htm>


More information about the ParaView mailing list