[Paraview] Using vtkDelimitedTextReader in a plugin -- Win64

Mark Cartwright mcartwright at microseismic.com
Tue Jan 19 15:16:44 EST 2016


I have a plugin that uses vtkDelimitedTextReader, which compiles and links and runs perfectly on linux64 - but produces a link error on Win64

Error      1              error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkDelimitedTextReader * __cdecl vtkDelimitedTextReader::New(void)" (__imp_?New at vtkDelimitedTextReader@@SAPEAV1 at XZ) referenced in function "public: static class vtkSmartPointer<class vtkDelimitedTextReader> __cdecl vtkSmartPointer<class vtkDelimitedTextReader>::New(void)" (?New@?$vtkSmartPointer at VvtkDelimitedTextReader@@@@SA?AV1 at XZ)                "somepath"\Plugins\MSIAMTISource\MSIAMTISource.obj         MSIAMTISource

Here is the cmake - from searches of the list I think the missing vtkIOInfovis lib goes in TARGET_LINK_LIBRARIES - but maybe not...



SET(PLUGIN_NAME MSIAMTISource)
SET(PLUGIN_VERSION "1.0")

include_directories(${VTK_INCLUDE_DIRS})

ADD_PARAVIEW_PLUGIN(MSIAMTISource "1.0"
     SERVER_MANAGER_XML MSIAMTISource.xml
     SERVER_MANAGER_SOURCES MSIAMTISource.cxx
)

TARGET_LINK_LIBRARIES(vtkIOInfovis)

Any ideas welcome !

Thanks,

MarkC




________________________________

This email and its attachments may contain MicroSeismic Inc. proprietary information, which is PRIVILEGED, CONFIDENTIAL, or subject to COPYRIGHT belonging to MicroSeismic Inc. This email is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this email, or the employee or agent responsible for delivering this email to the intended recipient you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this email is STRICTLY PROHIBITED and may be UNLAWFUL. If you have received this email in error, please notify the sender immediately and permanently delete the original and any copy of this email and any printout. Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160119/ee4120d3/attachment.html>


More information about the ParaView mailing list