[Paraview] (no subject)

Tom f.dshabarow at gmail.com
Mon Jul 9 09:29:16 EDT 2012


Biddiscombe, John A. <biddisco <at> cscs.ch> writes:

> 
> 
> 
> might just be that libxml+xdmf didn’t rebuild themselves when you turned on 
shared libs. Try wiping the build parts of those projects and rerunning cmake 
then build again.
>  
> JB
>  
> 
> 
> From: Boettcher,
>  Prof. Dr. Peter [mailto:Boettcher <at> kleintierklinik.uni-leipzig.de] 
Sent: 26 March 2012 11:27To: Biddiscombe, John A.; paraview <at> paraview.org; 
Jagjeet NainSubject: AW: "another target with the same name already exists" 
whenexecuting CMake for plugin project
> 
> 
>  
> 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 <at>  <at> 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 <at>  <at> QAEPBDPAU_xmlNode <at>  <at>  <at> 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 <at>  <at> QAEPAU_xmlNode <at>  <at> PBDPAPAU_xmlDoc 
<at>  <at>  <at> 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 <at>  <at> QAEPAU_xmlNode <at>  <at> 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 <at>  <at> QAEPAU_xmlNode <at>  <at> 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 <at>  <at> QAEPAU_xmlNode <at>  <at> 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 <at>  <at> QAEPAU_xmlNode <at>  <at> 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 <at>  <at> 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"
>  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:52An: 
Boettcher, Prof. Dr. Peter; paraview <at> paraview.orgBetreff: 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. PeterSent: 25 March 2012 21:54To: paraview <at> paraview.orgSubject: 
[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.
>  
> 
> 


Hi, I have the same problem:

add_executable cannot create imported target "vtkEncodeString" because
  another target with the same name already exists

and there is no option to choose "shared lib" or so. This error appears 
already in the configure step.
I played with the CMakeList file and inserted there all the examples found in 
internet, but it does not work.





More information about the ParaView mailing list