[Paraview] "another target with the same name already exists" when executing CMake for plugin project

Biddiscombe, John A. biddisco at cscs.ch
Sun Mar 25 16:52:22 EDT 2012


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/20120325/6cdbe80b/attachment.htm>


More information about the ParaView mailing list