[Paraview-developers] Cannot compile PV plugin by adding non-vtk classes in server manager sources
Burlen Loring
burlen.loring at gmail.com
Fri Mar 14 17:34:53 EDT 2014
yep, sorry about that. Glad you got it going!
On 03/14/2014 02:31 PM, Sunrise wrote:
> Thank you for the response, Burlen! It worked!
>
> I guess you meant SOURCES tag instead. Because CXX_SOURCE is not
> recognized.
>
> ADD_PARAVIEW_PLUGIN(
> myVTKfilterPlugin
> "1.0"
> DOCUMENTATION_DIR SomePath/doc
> SERVER_MANAGER_XML SomePath/myVTKfilter.xml
> GUI_RESOURCE_FILES SomePath/myVTKfilterGUI.xml
> SERVER_MANAGER_SOURCES SomePath/myVTKfilter.cxx
> SOURCES SomePath/Class1.cxx SomePath/Class2.cxx
> )
>
>
>
> On 03/14/2014 09:24 AM, Burlen Loring wrote:
>> I think you should be able to use the CXX_SOURCES argument. for eg
>>
>> ADD_PARAVIEW_PLUGIN(
>> myVTKfilterPlugin
>> "1.0"
>> DOCUMENTATION_DIR SomePath/doc
>> SERVER_MANAGER_XML SomePath/myVTKfilter.xml
>> GUI_RESOURCE_FILES SomePath/myVTKfilterGUI.xml
>> SERVER_MANAGER_SOURCES SomePath/myVTKfilter.cxx
>> CXX_SOURCES SomePath/Class1.cxx SomePath/Class2.cxx
>> )
>>
>>
>>
>> On 03/14/2014 08:52 AM, Sunrise wrote:
>>> Hello,
>>>
>>> I am creating a ParaView plugin for my code. The main class is a vtk
>>> class, which is inherited from vtkDataSetAlgorithm, called
>>> myVTKfilter. However, in it's implementation I used few other
>>> classes of mine that are not derived from VTK classes (lets call
>>> them Class1, Class2 and Class3 for simplicity), and they have a
>>> simple public constructor and destructor, etc, and I do not want to
>>> derive them from vtk algorithms and add many vtk methods to them.
>>>
>>> In CMakeLists,txt, the part that deals with the plugin is:
>>> ADD_PARAVIEW_PLUGIN( &a
>>> mp;nbs p; ;
>>> myVTKfilterPlugin
>>> "1.0"
>>> DOCUMENTATION_DIR SomePath/doc
>>> SERVER_MANAGER_XML SomePath/myVTKfilter.xml
>>> GUI_RESOURCE_FILES SomePath/myVTKfilterGUI.xml
>>> SERVER_MANAGER_SOURCES SomePath/myVTKfilter.cxx
>>> SomePath/Class1.cxx SomePath/Class2.cxx SomePath/Class3.cxx)
>>>
>>> While I compile the code, I am getting the following error:
>>>
>>> MainPathToCode/build/Class1ClientServer.cxx:13: error:
>>> 'SafeDownCast' is not a member of 'Class1'
>>> make[2]: ***
>>> [CMakeFiles/myVTKfilterPlugin.dir/Class1ClientServer.cxx.o] Error 1
>>> make[1]: *** [CMakeFiles/myVTKfilterPluginPlugin.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> It seems that in order to compile all sources for plugin, it is
>>> assumed that all classes should be derived from a vtk algorithm. But
>>> what if not all of them are vtk classes?
>>>
>>> I appreciate your comments on how to fix it.
>>>
>>> Thank you,
>>> Sia
>>>
>>>
>>> _______________________________________________
>>> Paraview-developers mailing list
>>> Paraview-developers at paraview.org
>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140314/d7cf6d8a/attachment-0001.html>
More information about the Paraview-developers
mailing list