[Insight-users] thanx.it works.

Julien Jomier jjomier@cs.unc.edu
Mon, 28 Apr 2003 16:48:55 -0400


Hi Yasser,

That's good news.

You are having two different problems here:

1) You have to open the HelloWorld.dsw file. If you want to run the
HelloWorld example you must select the active project (under Visual =
C++). Go
to menu "Project"->"Set Active Project" and select HelloWorld project. =
Then
you can execute the example.

2) itkcommon.lib is not found:
Did you compile ITK? you *must* compile ITK libraries before compiling =
the
HelloWorld example.
You can look at the Software Guide to see how to compile ITK.
If you already compiled ITK, check that you are compiling the HelloWorld
application in the same mode, i.e Debug, Release or RelWithDebInfo, as =
ITK.

Julien

> -----Original Message-----
> From: insight-users-admin@public.kitware.com=20
> [mailto:insight-users-admin@public.kitware.com] On Behalf Of=20
> yasser salman
> Sent: Monday, April 28, 2003 4:19 PM
> To: Julien Jomier
> Cc: insight-users@public.kitware.com
> Subject: [Insight-users] thanx.it works.
>=20
>=20
> hi julien..
> WOOW it works now..i already have hellow.dsp.. The right step=20
> is to open this workspace using VC++ eh? i did it and the=20
> messageBox appears to force Build_All i cancle it and anthor=20
> message tell me to specify the .exe file??? what can i do?=20
> (if i don't cancle the Build_ALL the error message that it=20
> can't find itkcommon.lib i search to find it but it 's not=20
> found.. thanx julien and luis for ur support.. yasser..
>=20
>=20
> --- "Julien Jomier" <jjomier@cs.unc.edu> wrote:
> >Yasser,
> >
> >"ITKConfig.cmake" is automatically generated by CMake from the=20
> >"ITKConfig.cmake.in" file. If you do not have the=20
> "ITKConfig.cmake" in=20
> >your Insight binary directory, this means you didn't run CMake on=20
> >Insight. You have to run CMake on the Insight directory and=20
> compile the=20
> >libraries before starting with the HelloWorld example.
> >
> >1) Run CMake and specify the
> >"Where is the source code: " : your_path/Insight
> >"Where to build the binaries " : your_path/InsightBin
> >
> >2) Check that the "ITKConfig.cmake" file is in your_path/InsightBin
> >
> >3) Run CMake on the HelloWorld example and point ITK_DIR to=20
> >your_path/InsightBin
> >
> >Julien
> >
> >> -----Original Message-----
> >> From: insight-users-admin@public.kitware.com
> >> [mailto:insight-users-admin@public.kitware.com] On Behalf Of=20
> >> yasser salman
> >> Sent: Sunday, April 27, 2003 4:44 PM
> >> To: Julien Jomier
> >> Cc: insight-users@public.kitware.com
> >> Subject: RE: [Insight-users] ITKConfig..
> >>=20
> >>=20
> >> hi julien..
> >> i think "Where to build the binaries" can be any output
> >> directory as a read in userguid.pdf and if it's not found=20
> >> cmake can create it.., the problem that i have only the two=20
> >> files "ITKConfig.cmake.in" and=20
> >>  "itkGenerateITKConfig.cmake" and cmake search for=20
> >> "ITKConfig.cmake.in"=20
> >> ..
> >> yasser
> >>=20
> >>=20
> >> --- "Julien Jomier" <jjomier@cs.unc.edu> wrote:
> >> >Hi Yasser,
> >> >
> >> >When you run CMake on the Insight directory, you have to specify:
> >> >
> >> >"Where is the source code: " : This is your source directory
> >> "Where to
> >> >build the binaries " : This is the binary directory
> >> >
> >> >So when you run Cmake on the HelloWord you have to point the
> >> ITK_DIR to
> >> >the Insight binary directory you've previously defined.
> >> >
> >> >Let me know if this is clear enough.
> >> >
> >> >Julien
> >> >
> >> >> -----Original Message-----
> >> >> From: yasser salman [mailto:yass@uscx.net]
> >> >> Sent: Sunday, April 27, 2003 4:18 PM
> >> >> To: Julien Jomier
> >> >> Subject: RE: [Insight-users] ITKConfig..
> >> >>=20
> >> >>=20
> >> >> hi julien..,
> >> >> i'm using itk ver 1.2 it has only "ITKConfig.cmake.in" and=20
> >> >> "itkGenerateITKConfig.cmake" in the same directory (ther root=20
> >> >> directory).  file "itkconfig.cmake" not found. where is=20
> the binary=20
> >> >> directory and source one?
> >> >>=20
> >> >> --- "Julien Jomier" <jjomier@cs.unc.edu> wrote:
> >> >> >Hi Yasser,
> >> >> >
> >> >> >You have to specify ITK_DIR as your ITK *binary* directory.=20
> >> >> >ITKConfig.cmake should be located in this directory.
> >> >> ITKConfig.cmake.in
> >> >> >is in the *source* directory. If you don't have the
> >> ITKConfig.cmake
> >> >> >file in your binary directory you should re-run CMake=20
> on Insight.
> >> >> >
> >> >> >Let us know if you have further problems.
> >> >> >
> >> >> >Julien
> >> >> >
> >> >> >> -----Original Message-----
> >> >> >> From: insight-users-admin@public.kitware.com
> >> >> >> [mailto:insight-users-admin@public.kitware.com] On Behalf Of=20
> >> >> >> yasser salman
> >> >> >> Sent: Sunday, April 27, 2003 3:14 PM
> >> >> >> To: insight-users@public.kitware.com
> >> >> >> Subject: [Insight-users] ITKConfig..
> >> >> >>=20
> >> >> >>=20
> >> >> >> hi lueis..,
> >> >> >> i reinstalled VC & cmake ver1.6.6 and the problem for
> >> compilation
> >> >> >> solved  i try to compile demo file for Cmake and=20
> it's ok.. when=20
> >> >> >> i try to compile the example helloword.cxx for itk. it seems=20
> >> >> >> cmake can't found the ITK_DIR (itkconfig.cmake) i=20
> found it but=20
> >> >> >> named
> >> >> >> (itkconfig.cmake.in) so i rename the file without .in
> >> >> >> (if it's wrong tell me plz) and cmake found it
> >> >> >> after that when cmake is processing this file it produced=20
> >> >> >> this error message.. " can't find include file=20
> >> >> >> @itk_use_file@" what i can do? thanx.. yasser..
> >> >> >>=20
> >> >> >> _____________________________________________________________
> >> >> >> Your own email, free website, free software and services at
> >> >> >>=20
> >> >> >http://www.uscomputer.net/portal.htm
> >> >> >- courtesy of U.S. Computer Corporation -
> >> >> >
> >> >> >_____________________________________________________________
> >> >> >Select your own custom email address for FREE! Get
> >> >> you@yourchoice.com
> >> >> >w/No Ads, 6MB, POP & more!=20
> >> >> >http://www.everyone.net/selectmail?campaign=3Dtag
> >> >> >_______________________________________________
> >> >> >Insight-users mailing list Insight-users@public.kitware.com
> >> >> >http://public.kitware.com/mailman/listinfo/insight-users
> >> >>=20
> >> >> _____________________________________________________________
> >> >> Your own email, free website, free software and services at
> >> >>=20
> >> >http://www.uscomputer.net/portal.htm
> >> >- courtesy of U.S. Computer Corporation -
> >> >
> >> >_____________________________________________________________
> >> >Select your own custom email address for FREE! Get
> >> you@yourchoice.com
> >> >w/No Ads, 6MB, POP & more!
> >> >http://www.everyone.net/selectmail?campaign=3Dtag
> >>=20
> >> _____________________________________________________________
> >> Your own email, free website, free software and services at
> >>=20
> >http://www.uscomputer.net/portal.htm
> >- courtesy of U.S. Computer Corporation -
> >
> >_____________________________________________________________
> >Select your own custom email address for FREE! Get=20
> you@yourchoice.com=20
> >w/No Ads, 6MB, POP & more!=20
> >http://www.everyone.net/selectmail?campaign=3Dtag
> >_______________________________________________
> >Insight-users mailing list
> >Insight-users@public.kitware.com
> >http://public.kitware.com/mailman/listinfo/insight-users
>=20
> _____________________________________________________________
> Your own email, free website, free software and services at=20
>=20
http://www.uscomputer.net/portal.htm=20
- courtesy of U.S. Computer Corporation -

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com =
w/No
Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=3Dtag
_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users