You basically have to create a plugin for your code. Looks like you're creating a reader, take a look at http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_Reader
You'll create a new plugin for your reader and tell ParaView to build that plugin as one of its own built in plugin, by setting the EXTRA_EXTERNAL_PLUGIN_DIRS cmake variable. Now when all is built, you can load the plugin using Plugin Manager (it will show up automatically) and even make it "auto-load" on startup. Hope that helps, Utkarsh On Tue, Feb 28, 2012 at 5:45 AM, Parker, Andrew (UK Filton) <andrew.park...@baesystems.com> wrote: > So my issue then I think is that I used the following method, and have all > the files that relate to this approach: > > http://www.paraview.org/Wiki/index.php?title=Extending_ParaView_at_Compile_Time&oldid=13197 > > However, after your post I've now just read this: > > http://paraview.org/Wiki/Extending_ParaView_at_Compile_Time > > Can you advise, I'm not really sure where to go from here. I think I'm > trying to use a deprecated approach. I want to still add the code at compile > time, but I need to use the new method to do so, is there an update of the > first link for the > 3.12 method? Any other advice would be appreciated. > > Cheers, > Andy > > -----Original Message----- > From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com] > Sent: 28 February 2012 13:20 > To: Parker, Andrew (UK Filton) > Cc: Utkarsh Ayachit; paraview@paraview.org > Subject: Re: [Paraview] vtkPVMessage.pb.h > > *** WARNING *** > > This message has originated outside your organisation, > either from an external partner or the Global Internet. > Keep this in mind if you answer this message. > > Hi Andy, > > yes there is a change that may affect you but you might be able to fix it by > updating your CMake and the way you define your plugin. > > I can not guarantee the issue that you are facing is what I have in mind, but > if your proxy create a class that was not defined inside your ParaView plugin > but in a library that you build against, then you need to tell ParaView to > add that library in the list of VTK objects to process so they can be handle > with client/server stream. To do so, we added a new field (CS_KITS) to the > plugin declaration. The ParaView Manta plugin is a good example for that. > > Here is the striped off Manta plugin declaration for CMake > > add_paraview_plugin( > MantaView "2.0" > SERVER_MANAGER_SOURCES ....cxx > SERVER_MANAGER_XML ....xml > GUI_SOURCES .....cxx > CS_KITS > vtkManta <-- List of external VTK library > that you are using > ) > > Hope that helps, otherwise you will need to send us your XML proxy definition, > > Seb > > On Tue, Feb 28, 2012 at 5:36 AM, Parker, Andrew (UK Filton) > <andrew.park...@baesystems.com> wrote: >> Hi, >> >> So that worked straight off, nice one thanks for your help. If you need any >> system specific build info to bug fix this let me know. However, having >> built paraview from source to incorporate my readers, which worked perfectly >> in 3.10, I now get this when trying to use them in 3.14: >> >> ERROR: In ParaView/ParaViewCore/ServerImplementation/vtkSIProxy.cxx, >> line 307 vtkSISourceProxy (0x17c35640): Failed to create MyReader. Aborting >> for debugging purposes. >> >> Before I debug this, is this an obvious bug due to interface changes between >> the two releases? Any advice? >> >> Cheers, >> Andy >> >> -----Original Message----- >> From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] >> Sent: 28 February 2012 00:35 >> To: Sebastien Jourdain >> Cc: Parker, Andrew (UK Filton); paraview@paraview.org >> Subject: Re: [Paraview] vtkPVMessage.pb.h >> >> *** WARNING *** >> >> This message has originated outside your organisation, >> either from an external partner or the Global Internet. >> Keep this in mind if you answer this message. >> >> Andy, >> >> check this thread out, it may provide some pointer as to what may be >> happening: >> http://www.paraview.org/pipermail/paraview/2012-January/023668.html >> >> It maybe an issue with ExecuteProtoC.cmake.in >> >> Utkarsh >> >> On Mon, Feb 27, 2012 at 8:46 AM, Sebastien Jourdain >> <sebastien.jourd...@kitware.com> wrote: >>> Hi Andy, >>> >>> so doing a clean clone with the -recursive flag did not solved the issue ? >>> >>> What is the system that you are trying to build on ? Are you doing >>> any cross-compiling ? >>> >>> Seb >>> >>> On Mon, Feb 27, 2012 at 11:36 AM, Parker, Andrew (UK Filton) >>> <andrew.park...@baesystems.com> wrote: >>>> Hi, >>>> >>>> So that didn't work.... >>>> >>>> >>>> -----Original Message----- >>>> From: paraview-boun...@paraview.org >>>> [mailto:paraview-boun...@paraview.org] On Behalf Of Sebastien >>>> Jourdain >>>> Sent: 27 February 2012 15:54 >>>> To: Parker, Andrew (UK Filton) >>>> Cc: paraview@paraview.org >>>> Subject: Re: [Paraview] vtkPVMessage.pb.h >>>> >>>> *** WARNING *** >>>> >>>> This message has originated outside your organisation, >>>> either from an external partner or the Global Internet. >>>> Keep this in mind if you answer this message. >>>> >>>> I believe it is a submodule update issue... >>>> >>>> try to reclone ParaView or at least make sure when you type "git status" >>>> everything is up to date. >>>> >>>> Seb >>>> >>>> On Mon, Feb 27, 2012 at 9:48 AM, Parker, Andrew (UK Filton) >>>> <andrew.park...@baesystems.com> wrote: >>>>> Compiling on 64 linux using the 6.4.1 tool-chain...don't think the >>>>> patch will work for me seems to be for windows only.. Any thoughts? >>>>> >>>>> >>>>> >>>>> From: Paul Edwards [mailto:paul.m.edwa...@gmail.com] >>>>> Sent: 27 February 2012 14:41 >>>>> To: Parker, Andrew (UK Filton) >>>>> Cc: paraview@paraview.org >>>>> Subject: Re: [Paraview] vtkPVMessage.pb.h >>>>> >>>>> >>>>> >>>>> *** WARNING *** >>>>> >>>>> This message has originated outside your organisation, >>>>> either from an external partner or the Global Internet. >>>>> Keep this in mind if you answer this message. >>>>> >>>>> Take a look at my post from last week. I had the same problem and >>>>> Utkarsh sent a patch. I assume you are using nmake on windows? >>>>> >>>>> >>>>> >>>>> Regards, >>>>> Paul >>>>> >>>>> On 27 February 2012 14:36, Parker, Andrew (UK Filton) >>>>> <andrew.park...@baesystems.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> >>>>> >>>>> Compiling a git checkout of the 3.14.0 tag of paraview, any >>>>> thoughts on this compile error? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> [ 80%] Building CXX object >>>>> ParaViewCore/ServerImplementation/CMakeFiles/vtkPVServerImplementat >>>>> i >>>>> on >>>>> .dir/vtkPVSessionBase.cxx.o >>>>> >>>>> In file included from >>>>> repos/paraview/ParaView/ParaViewCore/ServerImplementation/vtkPVSessionBase.cxx:23:0: >>>>> >>>>> epos/paraview/ParaView/ParaViewCore/ServerImplementation/vtkSMMessage.h:30:29: >>>>> fatal error: vtkPVMessage.pb.h: No such file or directory >>>>> >>>>> compilation terminated. >>>>> >>>>> >>>>> >>>>> Cheers, >>>>> Andy >>>>> >>>>> >>>>> ******************************************************************* >>>>> * This email and any attachments are confidential to the intended >>>>> recipient and may also be privileged. If you are not the intended >>>>> recipient please delete it from your system and notify the sender. >>>>> You should not copy it or use it for any purpose nor disclose or >>>>> distribute its contents to any other person. >>>>> ******************************************************************* >>>>> * >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>> _______________________________________________ >>>> 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 >>>> >>> _______________________________________________ >>> 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 >> > _______________________________________________ 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