[Paraview] "another target with the same name already exists" whenexecuting CMake for plugin project
Boettcher, Prof. Dr. Peter
Boettcher at kleintierklinik.uni-leipzig.de
Mon Mar 26 05:27:26 EDT 2012
Thank you all!
Turning on shared libs solved the problem for CMake. However, when I compile ParaView I get an error related to xdmf.dll which is not built because of external linker problem:
Bibliothek "C:\ParaView-3.14.0\bin\bin\Release\Xdmf.lib" und Objekt "C:\ParaView-3.14.0\bin\bin\Release\Xdmf.exp" werden erstellt.
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2___xmlIndentTreeOutput" in Funktion ""public: __thiscall XdmfDOM::XdmfDOM(void)" (??0XdmfDOM@@QAE at XZ)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlNodeDump" in Funktion ""public: char const * __thiscall XdmfDOM::Serialize(struct _xmlNode *)" (?Serialize at XdmfDOM@@QAEPBDPAU_xmlNode@@@Z)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlXIncludeProcess" in Funktion ""public: struct _xmlNode * __thiscall XdmfDOM::__Parse(char const *,struct _xmlDoc * *)" (?__Parse at XdmfDOM@@QAEPAU_xmlNode@@PBDPAPAU_xmlDoc@@@Z)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlXPathFreeContext" in Funktion ""public: struct _xmlNode * __thiscall XdmfDOM::FindElementByPath(char const *)" (?FindElementByPath at XdmfDOM@@QAEPAU_xmlNode@@PBD at Z)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlXPathFreeObject" in Funktion ""public: struct _xmlNode * __thiscall XdmfDOM::FindElementByPath(char const *)" (?FindElementByPath at XdmfDOM@@QAEPAU_xmlNode@@PBD at Z)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlXPathEvalExpression" in Funktion ""public: struct _xmlNode * __thiscall XdmfDOM::FindElementByPath(char const *)" (?FindElementByPath at XdmfDOM@@QAEPAU_xmlNode@@PBD at Z)".
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlXPathNewContext" in Funktion ""public: struct _xmlNode * __thiscall XdmfDOM::FindElementByPath(char const *)" (?FindElementByPath at XdmfDOM@@QAEPAU_xmlNode@@PBD at Z)".
XdmfLightData.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2_xmlStrlen" in Funktion ""protected: char const * __thiscall XdmfLightData::DupChars(void *)" (?DupChars at XdmfLightData@@IAEPBDPAX at Z)".
C:\ParaView-3.14.0\bin\bin\Release\Xdmf.dll : fatal error LNK1120: 8 nicht aufgelöste externe Verweise.
Das Buildprotokoll wurde unter "file://c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htm <file:///c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htm> " gespeichert.
Xdmf - 9 Fehler, 81 Warnung(en)
Thanks - Peter.
Von: Biddiscombe, John A. [mailto:biddisco at cscs.ch]
Gesendet: Sonntag, 25. März 2012 22:52
An: Boettcher, Prof. Dr. Peter; paraview at paraview.org
Betreff: RE: "another target with the same name already exists" whenexecuting CMake for plugin project
I've had this problem too. Seems that if you forget to turn on shared libs when you build paraview, then the find_package stuff for paraview causes these odd errors when you try to build plugins. Try turning on shared libs if you didn't already have it enabled. If it was already, then disregard this email.
JB
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Boettcher, Prof. Dr. Peter
Sent: 25 March 2012 21:54
To: paraview at paraview.org
Subject: [Paraview] "another target with the same name already exists" when executing CMake for plugin project
I try to compile one of the example plugins (GUIView) and get the following error when executing CMake (2.8.6)
CMake Error at C:/ParaView-3.14.0/bin/VTK/ParaViewTargets.cmake:16 (ADD_EXECUTABLE):
add_executable cannot create imported target "vtkEncodeString" because
another target with the same name already exists.
Call Stack (most recent call first):
C:/ParaView-3.14.0/bin/VTK/VTKConfig.cmake:244 (INCLUDE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 (FIND_PACKAGE)
C:/ParaView-3.14.0/ParaViewUse.cmake:9 (FIND_PACKAGE)
CMakeLists.txt:9 (INCLUDE)
I build Paraview (3.14.0) and QT with VS2005 successfully. I have another Paraview binary (3.14.0) installed on the same machine but no separate VTK sources.
Any idea what is going on?
Regards, Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120326/5968b1fd/attachment-0001.htm>
More information about the ParaView
mailing list