Fw: [vtkusers] VolumePro1000 Compiling Problems

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Apr 14 12:56:37 EDT 2004


Alex,

	From:
http://www.vtk.org/doc/nightly/html/classvtkVolumeProVP1000Mapper.html

[Superclass for VP1000 board.

vtkVolumeProVP1000Mapper is the superclass for VolumePRO volume 
rendering mappers based on the VP1000 chip. Subclasses are for 
underlying graphics languages. Users should not create subclasses 
directly - a vtkVolumeProMapper will automatically create the object of 
the right type.

This class is not included in the Rendering CMakeLists by default. If 
you want to add this class to your vtk build, you need to have the vli 
header and library files, and you will need to perform the following steps:

1. Run cmake, and set the VTK_USE_VOLUMEPRO flag to true. 2. If the 
libary file (VLI_LIBRARY_FOR_VP1000) is not found by cmake, set the path 
to that file, and rerun cmake. 3. If the header file 
(VLI_INCLUDE_PATH_FOR_VP1000) is not found by cmake, set the path to 
that file, and rerun cmake. 4. Rebuild VTK.]




Did you set the path to the lib properly ? (be carefull it's a path to 
the lib itself and not the path to the library directory).


For more information about linux support with that card, you should 
contact the company itself.

Regards,
Mathieu



Alex Lear wrote:
> Commenting that line got past the problem but now its looking for the vli3 
> library.  Is the library created? Do I need to get it from somewhere?  I only 
> see the windows library on the website and I'm using linux.
> 
> Alex
> 
> On Wednesday 14 April 2004 08:57 am, you wrote:
> 
>>Alex,
>>
>>	Sorry for delay. Could you just simply try to comment the call the
>>function:
>>
>>//  this->Context->SetCorrectGradient (VLItrue);
>>
>>	The rest seems to be only implict cast warnings.
>>
>>HTH
>>Mathieu
>>
>>Alex Lear wrote:
>>
>>>Progress but not quite, with the modified vtkVolumeProMapper.h, the
>>>output is:
>>>
>>>Building object file vtkVolumeProVP1000Mapper.o...
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx: In method `void
>>>vtkVolumeProVP1000Mapper::Render
>>>(vtkRenderer *, vtkVolume *)':
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:888: no matching
>>>function for call to
>>>`VLIContext::SetCorrectGradient (const VLIbool &)'
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:964: warning:
>>>assignment to `int' from `double'
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:964: warning:
>>>argument to `int' from `double'
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:969: warning:
>>>assignment to `int' from `double'
>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:969: warning:
>>>argument to `int' from `double'
>>>make[3]: *** [vtkVolumeProVP1000Mapper.o] Error 1
>>>make[2]: *** [default_target] Error 2
>>>make[1]: *** [default_target_Rendering] Error 2
>>>make: *** [default_target] Error 2
>>>
>>>
>>>Alex
>>>
>>>
>>>>----- Original Message -----
>>>>From: "Mathieu Malaterre" <mathieu.malaterre at kitware.com>
>>>>To: <alear at cns.montana.edu>
>>>>Cc: <vtkusers at public.kitware.com>
>>>>Sent: Tuesday, April 13, 2004 4:22 PM
>>>>Subject: Re: [vtkusers] VolumePro1000 Compiling Problems
>>>>
>>>>
>>>>>Alex,
>>>>>
>>>>>Could you please remove any change you did to vtkVolumeProMapper.h
>>>>>
>>>>>and change:
>>>>>
>>>>>//BTX
>>>>>#if defined (VTK_HAVE_VP1000) || defined (VTK_FORCE_COMPILE_VP1000)
>>>>>namespace vli3 {
>>>>>#endif
>>>>>class VLIContext;
>>>>>class VLIVolume;
>>>>>class VLILookupTable;
>>>>>class VLILight;
>>>>>class VLICutPlane;
>>>>>#if defined (VTK_HAVE_VP1000) || defined (VTK_FORCE_COMPILE_VP1000)
>>>>>}
>>>>>using namespace vli3;
>>>>>#endif
>>>>>//ETX
>>>>>
>>>>>
>>>>>into
>>>>>//BTX
>>>>>class VLIContext;
>>>>>class VLIVolume;
>>>>>class VLILookupTable;
>>>>>class VLILight;
>>>>>class VLICutPlane;
>>>>>//ETX
>>>>>
>>>>>
>>>>>Let me know if you have any problems,
>>>>>Mathieu
>>>>>
>>>>>Alex Lear wrote:
>>>>>
>>>>>>In ccmake, I set:
>>>>>>
>>>>>>VTK_USE_VOLUMEPRO = ON
>>>>>>VLI_INCLUDE_PATH_FOR_VP1000 = /usr/local/VTK/Rendering/vli3/include/
>>>>
>>>>(path to
>>>>
>>>>
>>>>>>vli.h)
>>>>>>VLI_LIBRARY_FOR_VP1000 = /usr/local/VTK/Rendering/vli3/include/ (path
>>>>>>to vli3.lib)
>>>>>>
>>>>>>I did read http://vtk.org/pipermail/vtkusers/2002-October/013894.html
>>>>
>>>>but
>>>>
>>>>
>>>>>>this solution didn't fix the problem, only caused a different problem.
>>>>
>>>>The
>>>>
>>>>
>>>>>>output from doing this is below.
>>>>>>
>>>>>>Thanks for the help,
>>>>>>Alex
>>>>>>
>>>>>>
>>>>>>
>>>>>>[START OUTPUT]
>>>>>>
>>>>>>Building object file vtkVolumeProMapper.o...
>>>>>>In file included from
>>>>
>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:19:
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:243: syntax error before
>>>>
>>>>`*'
>>>>
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:247: syntax error before
>>>>
>>>>`*'
>>>>
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:256: syntax error before
>>>>
>>>>`*'
>>>>
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:263: syntax error before
>>>>
>>>>`*'
>>>>
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:279: syntax error before
>>>>
>>>>`*'
>>>>
>>>>
>>>>>>In file included from
>>>>
>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:27:
>>>>
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.h:142: parse error
>>>>
>>>>before
>>>>
>>>>
>>>>>>`*'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx: In method
>>>>>>`vtkVolumeProMapper::vtkVolumeProMapper
>>>>>>()':/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:48: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Context'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:49: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Volume'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:52: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Lights'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:105: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Cut'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx: In method `int
>>>>>>vtkVolumeProMapper::StatusOK ()':
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:166: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Context'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:171: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`LookupTable'
>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:176: `class
>>>>>>vtkVolumeProMapper' has no member named
>>>>>>`Cut'
>>>>>>make[3]: *** [vtkVolumeProMapper.o] Error 1
>>>>>>make[2]: *** [default_target] Error 2
>>>>>>make[1]: *** [default_target_Rendering] Error 2
>>>>>>make: *** [default_target] Error 2
>>>>>>
>>>>>>[END OUTPUT]
>>>>>>
>>>>>>
>>>>>>>----- Original Message -----
>>>>>>>From: "Mathieu Malaterre" <mathieu.malaterre at kitware.com>
>>>>>>>To: <alear at cns.montana.edu>
>>>>>>>Cc: "vtkusers" <vtkusers at vtk.org>
>>>>>>>Sent: Tuesday, April 13, 2004 3:10 PM
>>>>>>>Subject: Re: [vtkusers] VolumePro1000 Compiling Problems
>>>>>>>
>>>>>>>
>>>>>>>>Alex,
>>>>>>>>
>>>>>>>>No there is a misunderstanding, VolumePro 1000 is still fully
>>>>>>>>supported in VTK CVS:
>>>>>>>
>>>>>>>http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Rendering/vtkVolumeProVP1000Mapp
>>>>>>>er .
>>>>>>>
>>>>>>>
>>>>>>>>h
>>>>>>>>
>>>>>>>>But this is true that VP 500 was removed three months ago from CVS.
>>>>>>>>Anyway they are both in VTK 4.2 branch.
>>>>>>>>
>>>>>>>>Looking quickly at your code there seems to be a small problem:
>>>>>>>>
>>>>>>>>Because we try to support all version we did this in
>>>>>>>>vtkVolumeProMapper.h but apparently this is failing for you:
>>>>>>>>
>>>>>>>>#if defined (VTK_HAVE_VP1000) || defined (VTK_FORCE_COMPILE_VP1000)
>>>>>>>>namespace vli3 {
>>>>>>>>#endif
>>>>>>>>class VLIContext;
>>>>>>>>class VLIVolume;
>>>>>>>>class VLILookupTable;
>>>>>>>>class VLILight;
>>>>>>>>class VLICutPlane;
>>>>>>>>#if defined (VTK_HAVE_VP1000) || defined (VTK_FORCE_COMPILE_VP1000)
>>>>>>>>}
>>>>>>>>using namespace vli3;
>>>>>>>>#endif
>>>>>>>>
>>>>>>>>Are you sure you set VTK_HAVE_VP1000 with cmake properly ?
>>>>>>>>
>>>>>>>>Thanks
>>>>>>>>Mathieu
>>>>>>>>
>>>>>>>>Alex Lear wrote:
>>>>>>>>
>>>>>>>>>I was contacted by another user and told that the VolumePro hardware
>>>>
>>>>is
>>>>
>>>>
>>>>>>>no
>>>>>>>
>>>>>>>
>>>>>>>>>longer supported with VTK and that is why it wasn't compiling for
>>>>>>>>>me.
>>>>>>>
>>>>>>>Can
>>>>>>>
>>>>>>>
>>>>>>>>>someone confirm this issue?  I really just need to get this hardware
>>>>
>>>>up
>>>>
>>>>
>>>>>>>and
>>>>>>>
>>>>>>>
>>>>>>>>>running.  Is there an older version that I can revert to that would
>>>>>>>
>>>>>>>work?
>>>>>>>
>>>>>>>
>>>>>>>>>Thanks,
>>>>>>>>>Alex
>>>>>>>>>
>>>>>>>>>On Monday 12 April 2004 04:57 pm, you wrote:
>>>>>>>>>
>>>>>>>>>>I'm compiling a fresh VTK-4.2-LatestRelease for volume pro (VP1000)
>>>>>>>>>>support. After adding the required vli3 library and header and
>>>>>>>
>>>>>>>configuring
>>>>>>>
>>>>>>>
>>>>>>>>>>with ccmake, I am getting the following make output (trimmed due to
>>>>>>>>>>length):
>>>>>>>>>>
>>>>>>>>>>[START OUTPUT]
>>>>>>>>>>
>>>>>>>>>>Building object file vtkVolumeProMapper.o...
>>>>>>>>>>In file included from
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProVP1000Mapper.h:58, from
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.cxx:27:
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1627: use of `VLIContext' is
>>>>>>>>>>ambiguous
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1597:   first declared as `class
>>>>>>>>>>VLIContext' here
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:60:   also declared
>>>>>>>>>>as
>>>>>>>
>>>>>>>`class
>>>>>>>
>>>>>>>
>>>>>>>>>>vli3::VLIContext' here
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1627: `VLIContext' denotes an
>>>>>>>>>>ambiguous type
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1597:   first type here
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:60:   other type here
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1627: `inContext' was not
>>>>>>>>>>declared
>>>>
>>>>in
>>>>
>>>>
>>>>>>>>>>this scope
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:1629: parse error before `)'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3074: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3082: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3146: use of `VLILookupTable' is
>>>>>>>>>>ambiguous
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3124:   first declared as `class
>>>>>>>>>>VLILookupTable' here
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:62:   also declared
>>>>>>>>>>as
>>>>>>>
>>>>>>>`class
>>>>>>>
>>>>>>>
>>>>>>>>>>vli3::VLILookupTable' here /usr/local/VTK/vli3/include/vli.h:3146:
>>>>>>>>>>`VLILookupTable' denotes an
>>>>>>>>>>ambiguous type
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3124:   first type here
>>>>>>>>>>/usr/local/VTK/Rendering/vtkVolumeProMapper.h:62:   other type here
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3641: type specifier omitted for
>>>>>>>>>>parameter
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3641: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3656: type specifier omitted for
>>>>>>>>>>parameter
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3656: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3675: type specifier omitted for
>>>>>>>>>>parameter
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3675: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3745: type specifier omitted for
>>>>>>>>>>parameter
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3745: parse error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3748: syntax error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3805: syntax error before `*'
>>>>>>>>>>/usr/local/VTK/vli3/include/vli.h:3821: use of `VLIContext' is
>>>>>>>>>>ambiguous
>>>>>>>>>>
>>>>>>>>>>[END OUTPUT]
>>>>>>>>>>
>>>>>>>>>>I want to get VP1000 support going soon, what do I need to do to
>>>>>>>>>>get
>>>>>>>
>>>>>>>this
>>>>>>>
>>>>>>>
>>>>>>>>>>to work?  I saw a similar problem in the archives but the solution
>>>>>>>
>>>>>>>wasn't
>>>>>>>
>>>>>>>
>>>>>>>>>>clear.
>>>>>>>>>>
>>>>>>>>>>Thanks for your help,
>>>>>>>>>>
>>>>>>>>>>Alex
>>>>>>>>>>
>>>>>>>>>>_______________________________________________
>>>>>>>>>>This is the private VTK discussion list.
>>>>>>>>>>Please keep messages on-topic. Check the FAQ at:
>>>>>>>>>><http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
>>>>>>>>>>subscribe/unsubscribe:
>>>>>>>>>>http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>>>>
>>>>>>>>>_______________________________________________
>>>>>>>>>This is the private VTK discussion list.
>>>>>>>>>Please keep messages on-topic. Check the FAQ at:
>>>>>>>
>>>>>>><http://public.kitware.com/cgi-bin/vtkfaq>
>>>>>>>
>>>>>>>>>Follow this link to subscribe/unsubscribe:
>>>>>>>>>http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>_______________________________________________
>>>This is the private VTK discussion list.
>>>Please keep messages on-topic. Check the FAQ at:
>>><http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
>>>subscribe/unsubscribe:
>>>http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 






More information about the vtkusers mailing list