I think you need TARGET_LINK_LIBRARIES(MSIAMTISource LINK_PRIVATE vtkIOInfovis). You need to specify the name of the target first.
On Tue, Jan 19, 2016 at 3:16 PM, Mark Cartwright <[email protected]> wrote: > > > 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@vtkDelimitedTextReader@@SAPEAV1@XZ) referenced in function > "public: static class vtkSmartPointer<class vtkDelimitedTextReader> __cdecl > vtkSmartPointer<class vtkDelimitedTextReader>::New(void)" > (?New@?$vtkSmartPointer@VvtkDelimitedTextReader@@@@SA?AV1@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. > > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
