<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.Sprechblasentext, li.Sprechblasentext, div.Sprechblasentext
        {mso-style-name:Sprechblasentext;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">JB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"> Boettcher,
Prof. Dr. Peter [mailto:Boettcher@kleintierklinik.uni-leipzig.de] <br>
<b>Sent:</b> 26 March 2012 11:27<br>
<b>To:</b> Biddiscombe, John A.; paraview@paraview.org; Jagjeet Nain<br>
<b>Subject:</b> AW: "another target with the same name already exists" whenexecuting CMake for plugin project<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE" style="color:#1F497D">Thank you all!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">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:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_vtk_libxml2___xmlIndentTreeOutput" in Funktion ""public:
__thiscall XdmfDOM::XdmfDOM(void)" (??0XdmfDOM@@QAE@XZ)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">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)".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">C:\ParaView-3.14.0\bin\bin\Release\Xdmf.dll : fatal error LNK1120: 8 nicht aufgelöste externe Verweise.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">Das Buildprotokoll wurde unter "<a href="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</a>"
gespeichert.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="DE" style="font-size:8.0pt;font-family:"Courier New","serif"">Xdmf - 9 Fehler, 81 Warnung(en)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="color:#1F497D">Thanks – Peter.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE"> Biddiscombe, John A.
<a href="mailto:[mailto:biddisco@cscs.ch]">[mailto:biddisco@cscs.ch]</a> <br>
<b>Gesendet:</b> Sonntag, 25. März 2012 22:52<br>
<b>An:</b> Boettcher, Prof. Dr. Peter; <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<b>Betreff:</b> RE: "another target with the same name already exists" whenexecuting CMake for plugin project<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">JB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">
<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> <a href="mailto:[mailto:paraview-bounces@paraview.org]">
[mailto:paraview-bounces@paraview.org]</a> <b>On Behalf Of </b>Boettcher, Prof. Dr. Peter<br>
<b>Sent:</b> 25 March 2012 21:54<br>
<b>To:</b> <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<b>Subject:</b> [Paraview] "another target with the same name already exists" when executing CMake for plugin project<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I try to compile one of the example plugins (GUIView) and get the following error when executing CMake (2.8.6)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-US" style="color:red">CMake Error at C:/ParaView-3.14.0/bin/VTK/ParaViewTargets.cmake:16 (ADD_EXECUTABLE):</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">add_executable cannot create imported target "vtkEncodeString" because</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">another target with the same name already exists.</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">Call Stack (most recent call first):</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">C:/ParaView-3.14.0/bin/VTK/VTKConfig.cmake:244 (INCLUDE)</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 (FIND_PACKAGE)</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">C:/ParaView-3.14.0/ParaViewUse.cmake:9 (FIND_PACKAGE)</span><span lang="EN-US"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span lang="EN-US" style="color:red">CMakeLists.txt:9 (INCLUDE)</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any idea what is going on?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards, Peter.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>