[LesionSizingKit] LesionSizingKit Digest, Vol 10, Issue 1

Xiaoxiao Liu xiaoxiao.liu at kitware.com
Fri Sep 20 12:59:56 EDT 2013


Hi Liangsheng,
I just tested LSTK on a windows machine: win64 bit, with VS Express 2010.
The LesionSegmentation.exe was built fine ( except a tiny  type conversion
error that can be fixed easily in LesionSegmentation.cxx, i will check the
fix in soon.)

I can't get a commercial version of VS at the moment to debug it.
Make sure you are using the lasted LSTK code, cmake should take care of the
include path for the LesionSegmentationCommandLineProgressReporter class.

Hope you can figure it out soon!
Keep me posted!
Thanks!

-Xiaoxiao




On Mon, Sep 16, 2013 at 11:16 AM, Liansheng Wang <lswang at xmu.edu.cn> wrote:

> Yes, you are right. I commented all codes related to
> "LesionSegmentationCommandLineProgressReporter", then the project
> "LesionSegmentation" is built successfully.
> But LesionSegmentationCommandLineProgressReporter class can not be used
> now.
>
>
>
> Best regards,
> Liansheng Wang (王连生)
> Xiamen University (厦门大学信息学院)
>
>
> On Mon, Sep 16, 2013 at 6:56 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>wrote:
>
>> I see.
>> The LesionSegmentationCommandLineProgressReporter class was not found by
>> the linker when trying to build the executable.
>> I haven't seen this error before with LSTK.
>> Let me try to set up a build on a windows machine and get back to you
>> later.
>> If you made some progress on your end, please report back as well.
>> Thank you.
>>
>>
>> On Mon, Sep 16, 2013 at 2:11 AM, Liansheng Wang <lswang at xmu.edu.cn>wrote:
>>
>>> Dear Dr. Liu,
>>>
>>> Please find the attached screeshot of built ITK tree .
>>>
>>> The project "LesionSegmentation" is in the tree of ITK, but cannot be
>>> built correctly. Other projects can be built correctly.
>>> We build ITK in the Windows 7 and VS2010.
>>>
>>>
>>> Best regards,
>>> Liansheng Wang (王连生)
>>> Xiamen University (厦门大学信息学院)
>>>
>>>
>>> On Fri, Sep 13, 2013 at 9:58 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>wrote:
>>>
>>>> Hmm, I am not sure about this linking error.
>>>> It might be the include path problem.
>>>>
>>>> But why  not just use the CMakeLists file in the LSTK itself?
>>>> The executable will be built with ITK, if  LSTK_USE_VTK is ON.
>>>> In the build tree of ITK, under "/bin" directory.
>>>> Make sure the VTK version is 6.0+.
>>>>
>>>>
>>>> Let me know then.
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Sep 13, 2013 at 2:14 AM, Liansheng Wang <lswang at xmu.edu.cn>wrote:
>>>>
>>>>> Dear Dr. Liu,
>>>>>
>>>>> Thank you for your help.
>>>>>
>>>>> We checked. LSTK_USE_VTK is turned on. LSTK is built in ITK
>>>>> successfully.
>>>>> And another project "LesionSurfaceExtraction" is also built
>>>>> successfully. Only the project "LesionSegmentation" cannot be built.
>>>>>
>>>>> Error info:
>>>>> LesionSegmentation.obj : error LNK2019: unresolved external symbol
>>>>> "__declspec(dllimport) public: static class itk::SmartPointer<class
>>>>> itk::LesionSegmentationCommandLineProgressReporter> __cdecl
>>>>> itk::LesionSegmentationCommandLineProgressReporter::New(void)"
>>>>> (__imp_?New at LesionSegmentationCommandLineProgressReporter@itk@
>>>>> @SA?AV?$SmartPointer at VLesionSegmentationCommandLineProgressReporter
>>>>> @itk@@@2 at XZ),referenced in function __catch$_main$0
>>>>> 2>itkLesionSegmentationCommandLineProgressReporter.obj : error
>>>>> LNK2019: unresolved external symbol "__declspec(dllimport) const
>>>>> itk::LesionSegmentationCommandLineProgressReporter::`vftable'"
>>>>> (__imp_??_7LesionSegmentationCommandLineProgressReporter at itk@@6B@),referenced
>>>>> in function "protected: __thiscall
>>>>> itk::LesionSegmentationCommandLineProgressReporter::LesionSegmentationCommandLineProgressReporter(void)"
>>>>> (??0LesionSegmentationCommandLineProgressReporter at itk@@IAE at XZ)
>>>>>
>>>>>
>>>>> Our CMakeLists.txt:
>>>>>
>>>>> cmake_minimum_required(VERSION 2.8)
>>>>>
>>>>> project(Visualization)
>>>>>
>>>>> # Find ITK.
>>>>> find_package(VTK REQUIRED)
>>>>> find_package(ITK REQUIRED)
>>>>>
>>>>>
>>>>> INCLUDE_DIRECTORIES(${Visualization_SOURCE_DIR})
>>>>> include(${ITK_USE_FILE} ${VTK_USE_FILE} )
>>>>>
>>>>> add_executable(LesionSegmentation
>>>>>    LesionSegmentation.cxx
>>>>>    itkLesionSegmentationCommandLineProgressReporter.cxx )
>>>>>
>>>>> target_link_libraries(LesionSegmentation ${ITK_LIBRARIES}
>>>>> ${VTK_LIBRARIES} ${ITKLesionSizingToolkit_LIBRARIES})
>>>>>
>>>>> Best regards,
>>>>> 厦门大学信息学院
>>>>> 王连生
>>>>>
>>>>>
>>>>> On Fri, Sep 13, 2013 at 12:00 AM, <
>>>>> lesionsizingkit-request at public.kitware.com> wrote:
>>>>>
>>>>>> Send LesionSizingKit mailing list submissions to
>>>>>>         lesionsizingkit at public.kitware.com
>>>>>>
>>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>>>
>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/lesionsizingkit
>>>>>> or, via email, send a message with subject or body 'help' to
>>>>>>         lesionsizingkit-request at public.kitware.com
>>>>>>
>>>>>> You can reach the person managing the list at
>>>>>>         lesionsizingkit-owner at public.kitware.com
>>>>>>
>>>>>> When replying, please edit your Subject line so it is more specific
>>>>>> than "Re: Contents of LesionSizingKit digest..."
>>>>>>
>>>>>>
>>>>>> Today's Topics:
>>>>>>
>>>>>>    1. help on LSTK example (Liansheng Wang)
>>>>>>    2. Re: help on LSTK example (Xiaoxiao Liu)
>>>>>>
>>>>>>
>>>>>> ----------------------------------------------------------------------
>>>>>>
>>>>>> Message: 1
>>>>>> Date: Thu, 12 Sep 2013 17:41:40 +0800
>>>>>> From: Liansheng Wang <lswang at xmu.edu.cn>
>>>>>> Subject: [LesionSizingKit] help on LSTK example
>>>>>> To: lesionsizingkit at public.kitware.com
>>>>>> Message-ID:
>>>>>>         <CAPdDrMyHSLmrw0cB4_qisqA+UZNr3xWM=
>>>>>> JJ0HvYaoCX4-pyWVw at mail.gmail.com>
>>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>>
>>>>>> Dear all,
>>>>>>
>>>>>> We have used remote module to build LSTK in the ITK successfully.
>>>>>> But when we build the project "LesionSegmentation", it cannot be built
>>>>>> without errors. it seems the CMakeLists.txt file doesn't include all
>>>>>> needed
>>>>>> libs.
>>>>>>
>>>>>> Dose anybody can help us or provide a CMakeLists.txt? thank you.
>>>>>>
>>>>>> Best regards,
>>>>>> LS
>>>>>> -------------- next part --------------
>>>>>> An HTML attachment was scrubbed...
>>>>>> URL: <
>>>>>> http://public.kitware.com/pipermail/lesionsizingkit/attachments/20130912/f0c64129/attachment-0001.htm
>>>>>> >
>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>> Message: 2
>>>>>> Date: Thu, 12 Sep 2013 09:45:39 -0400
>>>>>> From: Xiaoxiao Liu <xiaoxiao.liu at kitware.com>
>>>>>> Subject: Re: [LesionSizingKit] help on LSTK example
>>>>>> To: Liansheng Wang <lswang at xmu.edu.cn>
>>>>>> Cc: lesionsizingkit at public.kitware.com
>>>>>> Message-ID:
>>>>>>         <
>>>>>> CAOTT+b_zKeZenMxmpbEtvA9kW7oW0UZXAdx4y_9Z1fCDkCLmkA at mail.gmail.com>
>>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>>
>>>>>> Did you turn on LSTK_USE_VTK when you configure ITK?
>>>>>>
>>>>>> Here is a video demo about building and running LSTK with ITK:
>>>>>> http://www.youtube.com/watch?v=dFtipGL6SEs
>>>>>> (Note that ITK recently has deprecated a couple of CMake Variables:
>>>>>> Fetch_{} is deprecated, ITK_BUILD_ALL_MODULES is replaced by
>>>>>> ITK_BUILD_DEFAULT_MODULES, etc.)
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 12, 2013 at 5:41 AM, Liansheng Wang <lswang at xmu.edu.cn>
>>>>>> wrote:
>>>>>>
>>>>>> > Dear all,
>>>>>> >
>>>>>> > We have used remote module to build LSTK in the ITK successfully.
>>>>>> > But when we build the project "LesionSegmentation", it cannot be
>>>>>> built
>>>>>> > without errors. it seems the CMakeLists.txt file doesn't include
>>>>>> all needed
>>>>>> > libs.
>>>>>> >
>>>>>> > Dose anybody can help us or provide a CMakeLists.txt? thank you.
>>>>>> >
>>>>>> > Best regards,
>>>>>> > LS
>>>>>> >
>>>>>> > _______________________________________________
>>>>>> > LesionSizingKit mailing list
>>>>>> > LesionSizingKit at public.kitware.com
>>>>>> > http://public.kitware.com/cgi-bin/mailman/listinfo/lesionsizingkit
>>>>>> >
>>>>>> >
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------
>>>>>> *Xiaoxiao Liu*, Ph.D.
>>>>>> R & D Engineer
>>>>>> Kitware Inc <http://www.kitware.com/>.
>>>>>> Clifton Park, NY
>>>>>> Phone: (518) 881-4924  or  (518) 371-3971 x124
>>>>>> -------------- next part --------------
>>>>>> An HTML attachment was scrubbed...
>>>>>> URL: <
>>>>>> http://public.kitware.com/pipermail/lesionsizingkit/attachments/20130912/00d4a278/attachment-0001.htm
>>>>>> >
>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> LesionSizingKit mailing list
>>>>>> LesionSizingKit at public.kitware.com
>>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/lesionsizingkit
>>>>>>
>>>>>>
>>>>>> End of LesionSizingKit Digest, Vol 10, Issue 1
>>>>>> **********************************************
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> LesionSizingKit mailing list
>>>>> LesionSizingKit at public.kitware.com
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/lesionsizingkit
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> ---------------------------------------------
>>>> *Xiaoxiao Liu*, Ph.D.
>>>> R & D Engineer
>>>> Kitware Inc <http://www.kitware.com/>.
>>>> Clifton Park, NY
>>>> Phone: (518) 881-4924  or  (518) 371-3971 x124
>>>>
>>>>
>>>
>>
>>
>> --
>>
>>
>> ---------------------------------------------
>> *Xiaoxiao Liu*, Ph.D.
>> R & D Engineer
>> Kitware Inc <http://www.kitware.com/>.
>> Clifton Park, NY
>> Phone: (518) 881-4924  or  (518) 371-3971 x124
>>
>>
>


-- 


---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924  or  (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/lesionsizingkit/attachments/20130920/d3575b02/attachment.html>


More information about the LesionSizingKit mailing list