[vtkusers] Building VTK without OpenGL
Moreland, Kenneth
kmorel at sandia.gov
Wed Oct 21 17:03:21 EDT 2015
Thanks for everyone's help. I got this working now.
As Bill and David suggested, I had to change VTK_RENDERING_BACKGROUND to
OpenGL or OpenGL2. However, I don't understand why None is even provided
as an option if it is not supported.
Anyway, doing that caused an error about not finding OpenGL (because there
is none on my system). The solution is to first turn off all VTK_Group_*
options and configure again. At this point you get an error about all
modules being off, but when using the GUI this step is necessary because
the majority of the Module_* options do not show up until this point. Once
I've done that I can flip on the appropriate modules.
That said, I expect Bill's suggestion of running CMake with command line
arguments setting the Module variables on should work just fine. Of
course, that would mean I would know the right variables beforehand, which
I don't. I just muddle along with the GUI because I is not a
sophistimacated user.
-Ken
On 10/21/15, 2:04 PM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
>These are my settings:
>-DBUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF
>-DVTK_BUILD_ALL_MODULES_FOR_\
>TESTS:BOOL=OFF -DVTK_Group_Rendering:BOOL=OFF
>-DVTK_Group_StandAlone:BOOL=OFF -\
>DModule_vtkCommonCore:BOOL=ON -DModule_vtkCommonDataModel:BOOL=ON
>
>
>On Wed, Oct 21, 2015 at 4:04 PM, Bill Lorensen <bill.lorensen at gmail.com>
>wrote:
>> Ken,
>>
>> also make sure you start with a clean build. I think the variable
>> might be cached.
>>
>>
>> On Wed, Oct 21, 2015 at 3:51 PM, David Gobbi <david.gobbi at gmail.com>
>>wrote:
>>> I was about to say the same thing. You have to set
>>>VTK_RENDERING_BACKEND to
>>> a valid value, or else you're likely to see side-effects that aren't
>>> directly related to the issue you're trying to solve.
>>>
>>> - David
>>>
>>>
>>> On Wed, Oct 21, 2015 at 1:49 PM, Bill Lorensen
>>><bill.lorensen at gmail.com>
>>> wrote:
>>>>
>>>> Change the opengl backend to OpenGL2
>>>>
>>>>
>>>> On Wed, Oct 21, 2015 at 3:24 PM, Moreland, Kenneth <kmorel at sandia.gov>
>>>> wrote:
>>>> > I do not, but turning that module off does not help. I try turning
>>>>that
>>>> > module off and I get the exact same error as before:
>>>> >
>>>> >
>>>> > CMake Error at CMake/vtkModuleTop.cmake:53 (message):
>>>> > No such module "vtkRenderingNone" needed by "vtkGUISupportQt"
>>>> > Call Stack (most recent call first):
>>>> > CMake/vtkModuleTop.cmake:69 (vtk_module_check)
>>>> > CMake/vtkModuleTop.cmake:69 (vtk_module_check)
>>>> > CMake/vtkModuleTop.cmake:76 (vtk_module_check)
>>>> > CMakeLists.txt:532 (include)
>>>> >
>>>> > Attached is my updated CMakeCache.txt.
>>>> >
>>>> >
>>>> > -Ken
>>>> >
>>>> > On 10/21/15, 12:58 PM, "Bill Lorensen" <bill.lorensen at gmail.com>
>>>>wrote:
>>>> >
>>>> >>Ken,
>>>> >>Module_vtkIOExport:BOOL=ON
>>>> >>
>>>> >>is the culprit it uses rendering. Do you need it in your app.
>>>> >>vtk_module(vtkIOExport
>>>> >> GROUPS
>>>> >> Rendering
>>>> >> DEPENDS
>>>> >> vtkCommonCore
>>>> >> vtkRenderingAnnotation
>>>> >> vtkRenderingContext2D
>>>> >> vtkRenderingCore
>>>> >> vtkRenderingFreeType
>>>> >> ${opengl_depends}
>>>> >> vtkRenderingLabel
>>>> >> vtkRendering${VTK_RENDERING_BACKEND}
>>>> >> vtkImagingCore
>>>> >>
>>>> >>
>>>> >>On Tue, Oct 20, 2015 at 9:01 PM, Ben Boeckel
>>>><ben.boeckel at kitware.com>
>>>> >>wrote:
>>>> >>> On Tue, Oct 20, 2015 at 23:38:41 +0000, Moreland, Kenneth wrote:
>>>> >>>> Yup. For reference I attached my CMakeCache.txt.
>>>> >>>
>>>> >>> How about the output of CMake when you configure which contains
>>>>the
>>>> >>> list
>>>> >>> of enabled modules?
>>>> >>>
>>>> >>> Is there a backtrace for where OpenGL is trying to be found from
>>>> >>> printed?
>>>> >>>
>>>> >>> --Ben
>>>> >>> _______________________________________________
>>>> >>> 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 VTK FAQ at:
>>>> >>>http://www.vtk.org/Wiki/VTK_FAQ
>>>> >>>
>>>> >>> Search the list archives at:
>>>>http://markmail.org/search/?q=vtkusers
>>>> >>>
>>>> >>> Follow this link to subscribe/unsubscribe:
>>>> >>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>> >>
>>>> >>
>>>> >>
>>>> >>--
>>>> >>Unpaid intern in BillsBasement at noware dot com
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>> _______________________________________________
>>>> 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 VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>>
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>
>
>--
>Unpaid intern in BillsBasement at noware dot com
More information about the vtkusers
mailing list