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@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@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@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@XdmfDOM@@QAEPAU_xmlNode@@PBD@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@XdmfDOM@@QAEPAU_xmlNode@@PBD@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@XdmfDOM@@QAEPAU_xmlNode@@PBD@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@XdmfDOM@@QAEPAU_xmlNode@@PBD@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@XdmfLightData@@IAEPBDPAX@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:[email protected]] 
Gesendet: Sonntag, 25. März 2012 22:52
An: Boettcher, Prof. Dr. Peter; [email protected]
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: [email protected] [mailto:[email protected]] On 
Behalf Of Boettcher, Prof. Dr. Peter
Sent: 25 March 2012 21:54
To: [email protected]
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.

 

_______________________________________________
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

Reply via email to