[Insight-users] CMake: ITK-DIR
tejas mehta
tejas9090 at yahoo . com
Tue, 24 Jun 2003 21:04:45 -0700 (PDT)
--0-419792898-1056513885=:22634
Content-Type: text/plain; charset=us-ascii
Hello Luis,
Thank you for your reply, I have read Ch2 of the Guide and am still having trouble building the itk.dsw workspace using CMake.
In CMake I set:
source dir : C:\itk\InsightToolkit-1.2.0
and binary dir : C:\temp
I get some error messages when I try to configure (UseITK.cmake.in system error: no such file or dir)
>From what I understand, I need to create the workspace (itk.dsw) first using CMake
after which I open the file in VC++ and build the toolkit. Is this right ?
Thanks
Tejas
Luis Ibanez <luis . ibanez at kitware . com> wrote:
Hi Tejas,
Please take some time for reading the installation instructions
provided in the SoftwareGuide
http://www . itk . org/ItkSoftwareGuide . pdf
Chapter 2.
The HelloWorld example is described there in detail.
----------------
Since the binary directory that you provided
for building ITK was
c:\InsightToolkit-1.2.0\Examples\Installation
You should now find there a file named
ITK.dsw
Open this file with VC++, and build the toolkit.
When the build is done you should find a number
of libraries in
c:\InsightToolkit-1.2.0\Examples\Installation\bin\Debug
(or ... \bin\Release).
Among those libraries you should see ITKCommon.lib
ITKIO.lib.... for example.
Once you are done with building the ITK libraries,
you can then go and configure and build your application.
In this case, the HelloWorld example:
1) copy the HelloWorld example in an external directory "XYZ",
2) run CMAke and provide the source directory "XYZ" where
you copied the HelloWorld example. Select a binary directory
where you want the HelloWorld example to be built. (this is
different from the ITK-DIR directory).
3) fill in the CMAke variable ITK-DIR with
c:\InsightToolkit-1.2.0\Examples\Installation
4) click Configure and then click Ok
5) Go to the binary directory that you selected for building the
HelloWorld example, and open the .dsw with VC++
6) Build it.
------------
Regards,
Luis
----------------------
tejas mehta wrote:
> Hi Luis
> Thank you for your reply. I am still unsure about how to open the ITK
> Workspace and build the toolkit. Do I open the helloworld.cxx file in
> VC++ and try to build it ?
>
> Tejas
>
> */Luis Ibanez /* wrote:
>
>
> Hi Tejas,
>
> The ITK-DIR variable should point to
> the binary directory where you built ITK.
>
> When you ran CMake, the first thing you do
> is to provide a 'Source' directory and a
> 'Binary' directory. The 'Binary' directory
> is where the toolkit will be built.
> Then you open the ITK workspace with
> VisualStudio (it looks like you are doing
> this on windows..) and build the toolkit.
>
> This same ITK 'Binary' directory is the one
> you should provide for the ITK-DIR variable
> in CMake when you configure an applications
> that uses ITK. (e.g. the "Hellow World" example).
>
>
> Regards,.
>
>
> Luis
>
>
> ---------------------------------
> tejas mehta wrote:
>
> > Hi,
> >
> > I am having problem using CMake. What should the ITK-DIR option
> point
> > to ? I am unable to find ITKConfig.cmake on my system.
> >
> > so! urce dir : c:\InsightToolkit-1.2.0\Examples\Installation
> > bin dir : c:\InsightToolkit-1.2.0\Examples\Installation
> >
> > (I am trying to compile the "Hello World" example given in the ITK
> > tutorial)
> >
> >
> > Thank you in advance
> >
> > Tejas
> >
> ------------------------------------------------------------------------
> > Do you Yahoo!?
> > SBC Yahoo! DSL
> >
> > - Now only $29.95 per month!
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL
>
> - Now only $29.95 per month!
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
--0-419792898-1056513885=:22634
Content-Type: text/html; charset=us-ascii
<DIV>Hello Luis,</DIV>
<DIV>Thank you for your reply, I have read Ch2 of the Guide and am still having trouble building the itk.dsw workspace using CMake. </DIV>
<DIV> </DIV>
<DIV>In CMake I set: </DIV>
<DIV> </DIV>
<DIV>source dir : C:\itk\InsightToolkit-1.2.0</DIV>
<DIV>and binary dir : C:\temp</DIV>
<DIV> </DIV>
<DIV>I get some error messages when I try to configure (UseITK.cmake.in system error: no such file or dir)</DIV>
<DIV> </DIV>
<DIV>From what I understand, I need to create the workspace (itk.dsw) first using CMake<BR>after which I open the file in VC++ and build the toolkit. Is this right ?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Tejas</DIV>
<DIV> </DIV>
<DIV><BR><B><I>Luis Ibanez <luis . ibanez at kitware . com></I></B> wrote:</DIV>
<DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid; WIDTH: 100%"><BR>Hi Tejas,<BR><BR><BR>Please take some time for reading the installation instructions<BR>provided in the SoftwareGuide<BR><BR>http://www . itk . org/ItkSoftwareGuide . pdf<BR><BR>Chapter 2.<BR><BR>The HelloWorld example is described there in detail.<BR><BR><BR>----------------<BR><BR>Since the binary directory that you provided <BR>for building ITK was<BR><BR>c:\InsightToolkit-1.2.0\Examples\Installation<BR><BR>You should now find there a file named<BR><BR><BR>ITK.dsw<BR><BR>Open this file with VC++, and build the toolkit.<BR><BR>When the build is done you should find a number<BR>of libraries in<BR><BR>c:\InsightToolkit-1.2.0\Examples\Installation\bin\Debug<BR><BR>(or ... \bin\Release).<BR>Among those libraries you should see ITKCommon.lib<BR>ITKIO.lib.... for example.<BR><BR>Once you are done with building the ITK libraries,<BR>you can then go and configure and build your
application.<BR>In this case, the HelloWorld example:<BR><BR>1) copy the HelloWorld example in an external directory "XYZ",<BR><BR>2) run CMAke and provide the source directory "XYZ" where<BR>you copied the HelloWorld example. Select a binary directory<BR>where you want the HelloWorld example to be built. (this is<BR>different from the ITK-DIR directory).<BR><BR>3) fill in the CMAke variable ITK-DIR with<BR><BR>c:\InsightToolkit-1.2.0\Examples\Installation<BR><BR>4) click Configure and then click Ok<BR><BR>5) Go to the binary directory that you selected for building the<BR>HelloWorld example, and open the .dsw with VC++<BR><BR>6) Build it.<BR><BR>------------<BR><BR>Regards,<BR><BR><BR>Luis<BR><BR><BR>----------------------<BR>tejas mehta wrote:<BR><BR>> Hi Luis<BR>> Thank you for your reply. I am still unsure about how to open the ITK <BR>> Workspace and build the toolkit. Do I open the helloworld.cxx file in <BR>> VC++ and try to build it ?<BR>> <BR>>
Tejas<BR>><BR>> */Luis Ibanez <LUIS . IBANEZ at KITWARE . COM>/* wrote:<BR>><BR>><BR>> Hi Tejas,<BR>><BR>> The ITK-DIR variable should point to<BR>> the binary directory where you built ITK.<BR>><BR>> When you ran CMake, the first thing you do<BR>> is to provide a 'Source' directory and a<BR>> 'Binary' directory. The 'Binary' directory<BR>> is where the toolkit will be built.<BR>> Then you open the ITK workspace with<BR>> VisualStudio (it looks like you are doing<BR>> this on windows..) and build the toolkit.<BR>><BR>> This same ITK 'Binary' directory is the one<BR>> you should provide for the ITK-DIR variable<BR>> in CMake when you configure an applications<BR>> that uses ITK. (e.g. the "Hellow World" example).<BR>><BR>><BR>> Regards,.<BR>><BR>><BR>> Luis<BR>><BR>><BR>> ---------------------------------<BR>> tejas mehta wrote:<BR>><BR>> > Hi,<BR>> ><BR>> > I am having problem
using CMake. What should the ITK-DIR option<BR>> point<BR>> > to ? I am unable to find ITKConfig.cmake on my system.<BR>> ><BR>> > so! urce dir : c:\InsightToolkit-1.2.0\Examples\Installation<BR>> > bin dir : c:\InsightToolkit-1.2.0\Examples\Installation<BR>> ><BR>> > (I am trying to compile the "Hello World" example given in the ITK<BR>> > tutorial)<BR>> ><BR>> ><BR>> > Thank you in advance<BR>> ><BR>> > Tejas<BR>> ><BR>> ------------------------------------------------------------------------<BR>> > Do you Yahoo!?<BR>> > SBC Yahoo! DSL<BR>> ><BR>> > - Now only $29.95 per month!<BR>><BR>><BR>><BR>><BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> SBC Yahoo! DSL <BR>> <HTTP: evt="1207/*http://promo . yahoo . com/sbc/" rd.yahoo.com *http: pa.yahoo.com><BR>> - Now only $29.95 per month!
<BR><BR><BR><BR><BR></BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://pa . yahoo . com/*http://rd . yahoo . com/evt=1207/*http://promo . yahoo . com/sbc/">SBC Yahoo! DSL</a> - Now only $29.95 per month!
--0-419792898-1056513885=:22634--