[Insight-users] Re: Re: I could not compile code in VC++.

zhao zhao_c_g at 263 . net
Mon, 19 Aug 2002 9:8:25 +0800


Hi LianJuan,

    I guess you did right in the whole configuration procedure and ITK.dsw must exist!
    On the top left of CMakeSetupDialog, there are two drop-list box, one for source code directory and the other for 
build destination directory. ITK should reside in the later directory (if it is different form the source code directory).
    If the reason is not what I mentioned just now , please read VC_custom_project.doc more carefully. I downloaded the same version, it works perfect.
    BTW: when you are using CMake, you can right-click the option items (or cache item), there will appear a message box explaining the function of this item. Sometimes this will help.
    Good luck!

Zhao

>Hi, Zhao and other experts:
>     Sorry to bother you again. I did not find
>itk.dsw.
>This is what I have done to try to make ITK work on
>VC++ 6.0:
>1)I downloaded "ITK Public Beta 2 (June. 2002)" and
>extracted to harddrive.
>
>2) I read a document "VC_Custom_project.doc" under
>Document folder. I added many possible paths to
>/Tools/Options/Directory under VC++6.
>
>3) I ran a windows based CMAKE, telling it source
>directory and object directory of an
>example(EdgeDetection). I did not get any errors at
>this stage.
>
>4) CMAKE produced project.dsw and other files for this
>example. I opened project.dsw under VC++, compiled it
>and never worked. I also tried other examples and
>neither worked.
>
>Could you please give me a detail procedure of how to
>use ITK under VC++6? I double if ITK works. I need to
>make a registration examle work asap, then decide if
>it worth using ITK or just use my Matlab Image
>procesing toolbox. Do you have souce example using
>both ITK and VTK to do simele image processing task,
>like loading two images, registering, and saving
>images?
>
>Sorry for the long email. Thanks for the help.
>
>
>
>
>
>--- zhao <zhao_c_g@263.net> wrote:
>> Hi LianJun
>> 	If you just open the MRIRegistration project file
>> under VC, there will be compiling errors. Because
>> samples of itk are based on some libraries such as
>> itkCommon.lib, itkIO.lib and so on. These libs need
>> to be created by compiling their project file under
>> VC.
>>     So, if it's your first time compiling ITK, you
>> must open ITK.dsw under VC, then select
>> MRIRegistration project as the active project and
>> compile it. The system will automatically compile
>> the related project (e.g. itkCommon, itkIO). If it's
>> not your first time compiling ITK, you need not open
>> the whole ITK workspace, because the needed libs
>> already exist.
>> 	Good luck!
>> 
>> Zhao   
>> 
>> 
>> Zhao ChenGuang
>> P.O.Box:010,
>> Shanghai Jiao Tong University,
>> 1954# Hua Shan Road,
>> Shanghai,P.R.China,
>> 200030
>> 
>> 
>
>
>__________________________________________________
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>
>.

Zhao ChenGuang
P.O.Box:010,
Shanghai Jiao Tong University,
1954# Hua Shan Road,
Shanghai,
P.R.China,
200030