[Ctk-developers] qttesting cmake error

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Jul 24 03:56:23 UTC 2013


Hi Zovastra,

Does this happen doing a clean built ?

Note that for convenience, I just updated commontk/QtTesting master with
the Paraview QtTesting repo [1]

Could you try using:

git://github.com/commontk/QtTesting.git

 and

 e59b11d9062c9aa747817daa9417016d6e1ae1be


Hth
Jc

[1] http://paraview.org/gitweb?p=QtTesting.git


On Wed, Jul 17, 2013 at 4:41 AM, Zovastra Attah <
Zovastra.Attah at creatis.insa-lyon.fr> wrote:

> Hello ,
>   I am struggling with a problem,
> I fork  the CTK qttesting repository and  I made some  change .
>
> In the configuration step, I  put   CTK_APP_ctkQtTesting    on,
> And in, CTK/CmakeExternal/QtTesting.cmake, I make some changes
>
>  if(CTK_SUPERBUILD)
>
>     if(NOT DEFINED QtTesting_DIR)
>
>        #set(revision_tag 7dbef1003157941e7315220f53cf4e17d78b5e28)
>
>
>
>       if(${proj}_REVISION_TAG)
>         set(revision_tag ${${proj}_REVISION_TAG})
>       endif()
>
>       set(location_args )
>       if(${proj}_URL)
>         set(location_args URL ${${proj}_URL})
>       elseif(${proj}_GIT_REPOSITORY)
>         set(location_args GIT_REPOSITORY ${${proj}_GIT_REPOSITORY}
>                          # GIT_TAG ${revision_tag}
>                           )
>       else()
>         set(location_args GIT_REPOSITORY
> "${git_protocol}://github.com/zoat2/QtTesting.git"
>                          #GIT_TAG ${revision_tag}
>                          )
>       endif()
>
>       # Set CMake OSX variable to pass down the external project
>
>
>
> And the error is :
>
>
>
>
> [ 78%] Performing configure step for 'CTK-Configure'
> -- Generated: /test-CTK/CTK-superbuild/CTK-build/DGraphInput-alldep.txt
> -- Generated:
> /test-CTK/CTK-superbuild/CTK-build/DGraphInput-alldep-withext.txt
> -- Generated: /test-CTK/CTK-superbuild/CTK-build/DGraphInput.txt
> -- Generated: /test-CTK/CTK-superbuild/CTK-build/Project.xml
> -- CTKCore: BFD support disabled
> CMake Error at
> /test-CTK/CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16
> (ADD_LIBRARY):
>   add_library cannot create imported target "QtTesting" because another
>   target with the same name already exists.
> Call Stack (most recent call first):
>
> /home/administrateur/Bureau/CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9
> (include)
>   Libs/Widgets/CMakeLists.txt:13 (find_package)
>
>
> CMake Error at /CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16
> (ADD_LIBRARY):
>   add_library cannot create imported target "QtTesting" because another
>   target with the same name already exists.
> Call Stack (most recent call first):
>   /CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
>   Libs/Visualization/VTK/Widgets/CMakeLists.txt:13 (find_package)
>
>
> /CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16 (ADD_LIBRARY):
>   add_library cannot create imported target "QtTesting" because another
>   target with the same name already exists.
> Call Stack (most recent call first):
>   /CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
>   Libs/QtTesting/CMakeLists.txt:6 (find_package)
>
>
> /CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16 (ADD_LIBRARY):
>   add_library cannot create imported target "QtTesting" because another
>   target with the same name already exists.
> Call Stack (most recent call first):
>   /CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
>   Applications/ctkQtTesting/CMakeLists.txt:6 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
> make[2]: ***
> [CTK-Configure-prefix/src/CTK-Configure-stamp/CTK-Configure-configure]
> Erreur 1
> make[1]: *** [CMakeFiles/CTK-Configure.dir/all] Erreur 2
> make: *** [all] Erreur 2
> It trying to call ADD_LIBRARY for target that already exist.
>
>  Any help would be appreciated
>
> zovastra
>
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20130723/ee700b0d/attachment.htm>


More information about the Ctk-developers mailing list