<span style="font-family: Arial; font-size: 13px;"><div>That should'nt be the problem ;-)</div><div>Chris</div><div><br>On Montag, 14. April 2014 at 3:10 PM, "Utkarsh Ayachit" <utkarsh.ayachit@kitware.com> wrote:</div><blockquote style="padding-left: 10px; margin-left: 10px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">Can you attach the complete source as a tarball/zip?  That'll make it<br>easier to just try it out.<br><br>On Mon, Apr 14, 2014 at 2:52 AM,  <moder22@hush.com> wrote:<br>> Unfortunately not...<br>><br>><br>> int vtkTestSource::RequestInformation(vtkInformation *reqInfo,<br>> vtkInformationVector **inVector, vtkInformationVector *outVector)<br>> {<br>><br>> if(this->vtkPolyDataAlgorithm::RequestInformation(reqInfo,inVector,outVector))<br>>   return 0;<br>><br>>     vtkInformation *info = outVector->GetInformationObject(0);<br>><br>>     double tRange[2] = {stepValues[0], stepValues[steps-1]};<br>>     info->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), tRange, 2);<br>>     info->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), stepValues,<br>> steps);<br>>     info->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),<br>> -1);<br>><br>>     return 1;<br>> }<br>><br>><br>><br>> int vtkTestSource::RequestData(vtkInformation *reqInfo, vtkInformationVector<br>> **inVector, vtkInformationVector *outVector)<br>> {<br>>     vtkInformation *outInfo = outVector->GetInformationObject(0);<br>>     vtkPolyData *output =<br>> vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));<br>><br>>     if (!output)<br>>         return 0;<br>><br>>     double time = 0.0;<br>>     if (outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))<br>>         time =<br>> outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());<br>><br>>     output->Initialize();<br>>     output->GetInformation()->Set(vtkDataObject::DATA_TIME_STEP(), time);<br>>     this->setPolyData(time, output);<br>><br>>     return 1;<br>> }<br>><br>> Any other ideas?<br>> Chris<br>><br>><br>> On Freitag, 11. April 2014 at 3:09 PM, "Utkarsh Ayachit"<br>> <utkarsh.ayachit@kitware.com> wrote:<br>><br>> Try adding implementations for RequestInformation and RequestData in<br>> the testplugin.cpp file. Does that help?<br>><br>> On Fri, Apr 11, 2014 at 7:49 AM, <moder22@hush.com> wrote:<br>>> Hello,<br>>> I have tried to write my own source for ParaView using an plug-in. The<br>>> code<br>>> seems to be correct, the Compile works without errors, but the Linker<br>>> fails:<br>>> "TestSourceInit.obj : error LNK2019: unresolved external symbol "void<br>>> __cdecl testplugin_Init(class vtkClientServerInterpreter *)"<br>>> (?testplugin_Init@@YAXPAVvtkClientServerInterpreter@@@Z) referenced in<br>>> function _TestSource_Initialize"<br>>><br>>> testplugin.h:<br>>><br>>> #include ...<br>>> class VTK_EXPORT vtkTestSource : public vtkPolyDataAlgorithm<br>>> {<br>>> public:<br>>> vtkTypeRevisionMacro(vtkTestSource, vtkPolyDataAlgorithm);<br>>> static vtkTestSource* New();<br>>> void PrintSelf(ostream& os, vtkIndent indent);<br>>><br>>> protected:<br>>> vtkTestSource();<br>>> ~vtkTestSource();<br>>> int RequestInformation(vtkInformation *reqInfo, vtkInformationVector<br>>> **inVector, vtkInformationVector *outVector);<br>>> int RequestData (vtkInformation *reqInfo, vtkInformationVector<br>>> **inVector, vtkInformationVector *outVector);<br>>> private:<br>>> vtkTestSource(const vtkTestSource&); // Not implemented.<br>>> void operator=(const vtkTestSource&); // Not implemented.<br>>> };<br>>><br>>><br>>> testplugin.cpp:<br>>><br>>> #include "testplugin.h"<br>>> #include <vtkObjectFactory.h><br>>> #include <vtkNew.h><br>>><br>>> vtkStandardNewMacro(vtkTestSource);<br>>> vtkCxxRevisionMacro(vtkTestSource, "$Revision$");<br>>><br>>> vtkTestSource::vtkTestSource() { ... }<br>>> vtkTestSource::~vtkTestSource() { ... }<br>>> void vtkTestSource::PrintSelf(ostream& os, vtkIndent indent)<br>>> {<br>>> this->Superclass::PrintSelf(os,indent);<br>>> }<br>>><br>>> ...<br>>><br>>> TestPlugin.xml:<br>>><br>>> <ServerManagerConfiguration><br>>> <ProxyGroup name="sources"><br>>> <SourceProxy name="TestSource" class="vtkTestSource"<br>>> label="Test"><br>>> ...<br>>><br>>> <IntVectorProperty<br>>> name="OutputDataSetType"<br>>> command="SetOutputDataSetType"<br>>> number_of_elements="1"<br>>> default_values="0"><br>>> <!-- value of 0 means vtkPolyData --><br>>> </IntVectorProperty><br>>> </SourceProxy><br>>> </ProxyGroup><br>>> </ServerManagerConfiguration><br>>><br>>> CMakeLists.txt:<br>>><br>>> CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)<br>>> IF(NOT ParaView_BINARY_DIR)<br>>> FIND_PACKAGE(ParaView REQUIRED)<br>>> INCLUDE(${PARAVIEW_USE_FILE})<br>>> ENDIF(NOT ParaView_BINARY_DIR)<br>>><br>>> INCLUDE(ParaViewPlugins)<br>>><br>>> ADD_PARAVIEW_PLUGIN(TestSource "1.0"<br>>> SERVER_MANAGER_XML TestPlugin.xml<br>>> SERVER_MANAGER_SOURCES testplugin.cpp<br>>> REQUIRED_ON_SERVER)<br>>><br>>> I seek for hours, but I can not find my own mistake... Where is the error?<br>>> Chris<br>>><br>>><br>>><br>>> _______________________________________________<br>>> Paraview-developers mailing list<br>>> Paraview-developers@paraview.org<br>>> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>>></blockquote></span>