[Insight-developers] strange error with export list on modular ITK

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Dec 21 10:40:14 EST 2011


Hi Alex,

During the last CTK Hackfest, we worked with Michael Onken from the OFFIS
Team to push upstream CTK related patches.

As depicted here<https://github.com/commontk/CTK/blob/master/CMakeExternals/DCMTK.cmake#L44>,
the version of DCMTK currently used in CTK is available on:

     git.dcmtk.org/dcmtk.git     using   085525e643cab5ac82

Leading the DICOM effort, I am sure Steve will be able to provide you with
more details.

Hth
Jc

On Wed, Dec 21, 2011 at 9:47 AM, Alexandre GOUAILLARD <agouaillard at gmail.com
> wrote:

> hi steve,
>
> As discussed during the DICOM roadmap meeting, we based our itk dcmtk
> module on CTK's DCMTK module.
> Here is the remote I m using:
> origin  http://github.com/commontk/DCMTK.git (fetch)
> origin  http://github.com/commontk/DCMTK.git (push)
>
> Would it be ok to push to your repo and to let you handle sending the
> changes upstream to DCMTK proper?
>
> regards,
>
> alex.
>
>
> On Wed, Dec 21, 2011 at 9:54 PM, Steve Pieper <pieper at ibility.net> wrote:
> > Hi Alex -
> >
> > Is this a diff against the official version?
> > (http://git.dcmtk.org/dcmtk.git)  I think the right thing to do is
> > post it on the dcmtk forum (http://forum.dcmtk.org/) with some
> > background description and follow up there.
> >
> > Best,
> > Steve
> >
> > On Tue, Dec 20, 2011 at 9:30 PM, Alexandre GOUAILLARD
> > <agouaillard at gmail.com> wrote:
> >> hi steve,
> >>
> >> I extended the patch to include the install directories.
> >> I also cleaned a copy paste left over.
> >> here is the patch:
> >>
> >> diff --git a/CMake/KitCommonBlock.cmake b/CMake/KitCommonBlock.cmake
> >> index 72a500b..fd6c3f5 100644
> >> --- a/CMake/KitCommonBlock.cmake
> >> +++ b/CMake/KitCommonBlock.cmake
> >> @@ -4,7 +4,9 @@ ADD_LIBRARY(${KIT} STATIC ${Kit_SRCS} ${Kit_EXTRA_SRCS})
> >>  TARGET_LINK_LIBRARIES(${KIT} ${KIT_LIBS} ${KIT_EXTRA_LIBS})
> >>
> >>  INSTALL(TARGETS ${KIT}
> >> -  DESTINATION ${DCMTK_INSTALL_LIB_DIR} COMPONENT Development
> >> +  EXPORT ${DCMTK_TARGETS_NAME}
> >> +  DESTINATION ${DCMTK_INSTALL_LIB_DIR}
> >> +  COMPONENT Development
> >>   )
> >>
> >>  # End of common section
> >> diff --git a/CMakeLists.txt b/CMakeLists.txt
> >> index 87326d8..df95f1f 100644
> >> --- a/CMakeLists.txt
> >> +++ b/CMakeLists.txt
> >> @@ -10,9 +10,21 @@ SET(DCMTK_PACKAGE_DATE "20100226")
> >>  SET(DCMTK_DEFAULT_CONFIGURATION_DIR "")
> >>  SET(DCMTK_DEFAULT_SUPPORT_DATA_DIR "")
> >>
> >> -SET(DCMTK_INSTALL_INCLUDE_DIR "include")
> >> -SET(DCMTK_INSTALL_LIB_DIR "lib")
> >> -SET(DCMTK_INSTALL_BIN_DIR "bin")
> >> +IF(NOT DCMTK_INSTALL_INCLUDE_DIR)
> >> +  SET(DCMTK_INSTALL_INCLUDE_DIR "include")
> >> +ENDIF()
> >> +IF(NOT DCMTK_INSTALL_LIB_DIR)
> >> +  SET(DCMTK_INSTALL_LIB_DIR "lib")
> >> +ENDIF()
> >> +IF(NOT DCMTK_INSTALL_BIN_DIR)
> >> +  SET(DCMTK_INSTALL_BIN_DIR "bin")
> >> +ENDIF()
> >> +
> >> +# to be able to "redirect" export
> >> +# to external projects that embbed DCMTK (ITK)
> >> +IF(NOT DCMTK_TARGETS_NAME)
> >> +  SET(DCMTK_TARGETS_NAME DCMTKTargets)
> >> +ENDIF(NOT DCMTK_TARGETS_NAME)
> >>
> >>
>  #-----------------------------------------------------------------------------
> >>  # Output directories.
> >> @@ -24,8 +36,6 @@ IF(NOT EXECUTABLE_OUTPUT_PATH)
> >>  ENDIF(NOT EXECUTABLE_OUTPUT_PATH)
> >>  MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)
> >>
> >> -SET(ITK_LIBRARY_PATH "${LIBRARY_OUTPUT_PATH}")
> >> -SET(ITK_EXECUTABLE_PATH "${EXECUTABLE_OUTPUT_PATH}")
> >>  SET(CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
> >>
> >>  # On Visual Studio 8 MS deprecated C. This removes all 1.276E1265
> security
> >> @@ -216,3 +226,4 @@ FOREACH(lib_include_subdir ${lib_include_subdirs})
> >>     DESTINATION
> >> ${DCMTK_INSTALL_INCLUDE_DIR}/dcmtk/${lib}/${lib_include_subdir}
> >> COMPONENT Deve
> >>     )
> >>  ENDFOREACH()
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20111221/3d9bf1e1/attachment.htm>


More information about the Insight-developers mailing list