[Insight-users] INSTALL TARGETS given no DESTINATION
pradeepa Gunaratne
gunadp at yahoo.com
Wed Apr 2 19:37:36 EDT 2008
Hi Luis,
Thanks for your support, I got it working. I have done a simple mistake, pointing only to the code directory. Now I got the CMake done for ITK, but faced with a new problem.
I cmake the helloworld program as given in the Getting Started document as well as ItkSoftwareGuide.pdf. Igot the CMake done , but when tried to build in VC Studio 8, It gives these errors.
Compiling...
HelloWorld.cxx
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : error C2065: '_String' : undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : error C2275: '_locale_t' : illegal use of this type as an expression
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\crtdefs.h(2045) : see declaration of '_locale_t'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : error C2065: '_Locale' : undeclared identifier
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : error C2491: '_strlwr_l' : definition of dllimport data not allowed
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(135) : error C2078: too many initializers
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(173) : warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(173) : error C2275: '_locale_t' : illegal use of this type as an expression
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\crtdefs.h(2045) : see declaration of '_locale_t'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(173) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(173) : error C2491: '_strupr_l' : definition of dllimport data not allowed
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(173) : error C2078: too many initializers
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(299) : warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(299) : error C2275: '_locale_t' : illegal use of this type as an expression
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\crtdefs.h(2045) : see declaration of '_locale_t'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(299) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(299) : error C2491: '_wcslwr_l' : definition of dllimport data not allowed
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(299) : error C2078: too many initializers
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(305) : warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(305) : error C2275: '_locale_t' : illegal use of this type as an expression
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\crtdefs.h(2045) : see declaration of '_locale_t'
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(305) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(305) : error C2491: '_wcsupr_l' : definition of dllimport data not allowed
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(305) : error C2078: too many initializers
c:\pradeepa\anu\imageprocessing\applications\itk\insighttoolkit-3.4.0\code\common\itkMacro.h(45) : fatal error C1083: Cannot open include file: 'strstream.h': No such file or directory
Any idea on what I should do?
Thanks,
Pradeepa
----- Original Message ----
From: Luis Ibanez <luis.ibanez at kitware.com>
To: pradeepa Gunaratne <gunadp at yahoo.com>; Insight Users <insight-users at itk.org>
Sent: Tuesday, 1 April, 2008 7:28:06 PM
Subject: Re: [Insight-users] INSTALL TARGETS given no DESTINATION
Hi Pradeepa,
The CMake variable:
CMAKE_INSTALL_PREFIX
expects the path to the directory where you
plan to install ITK after you build it.
If you are pointing it to a file, that will
explain the CMake error.
Please point this variable to an new directory.
Note that you don't need to install ITK in
order to use it. You can simply use it from
its build directory.
Regards,
Luis
--------------------------
pradeepa Gunaratne wrote:
> Hi Luis,
>
> Thanks for the reply. My platform is Windows vista and I am using visual
> studio 8 2005. I unzipped both ITK and CMake. Then I ran CMakesetup. Th
> GUI asks for the source code and the binary locations. I gave them and
> clicked on "configure". Then this error shows saying that INSTALL
> TARGETS given no DESTINATION.
>
> The CMAKE_INSTALL_PREFIX was having a wrong value. I set it to the path
> where I unzipped CMake. Then clicked confifure again. This time also the
> same error given. Pls let me know whether there is any setting I have
> missed.
>
> Thank you very much.
>
> Pradeepa
>
> ----- Original Message ----.
> From: Luis Ibanez <luis.ibanez at kitware.com>
> To: pradeepa Gunaratne <gunadp at yahoo.com>
> Cc: Insight-users at itk..org
> Sent: Tuesday, 1 April, 2008 4:47:48 PM
> Subject: Re: [Insight-users] INSTALL TARGETS given no DESTINATION
>
>
> Hi Pradeepa,
>
> Did you modify the settings of the CMake variable:
>
> CMAKE_INSTALL_PREFIX
>
> when you configured ITK using CMake ??
>
>
> Also, what is your platform ?
>
>
> Please let us know,
>
>
> Thanks
>
>
>
> Luis
>
>
> ------------------------
> pradeepa Gunaratne wrote:
> > Hi All,
> >
> > I have just started building itk through cmake. When I give the source
> > and binary locations and click on "configure", it gives me an error
> > message saying that INSTALL TARGETS given no DESTINATION. My environment
> > is Windows Vista, CMake 2.4 patch 8 and InsightToolkit-3.4.0.
> >
> > Please help me to solve this as I couldn't find any solution.
> >
> > thanks,
> >
> > Pradeepa
> >
> >
> > ------------------------------------------------------------------------
> > Get the name you always wanted with the new y7mail email address
> >
> <http://au.rd.yahoo.com/mail/taglines/au/y7mail/default/*http://au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=other
> <http://au.rd..yahoo.com/mail/taglines/au/y7mail/default/*http://au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=other>>.
>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org <mailto:Insight-users at itk.org>
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
> ------------------------------------------------------------------------
> Get the name you always wanted with the new y7mail email address
> <http://au.rd.yahoo.com/mail/taglines/au/y7mail/default/*http://au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=other>.
>
Get the name you always wanted with the new y7mail email address.
www..yahoo7.com.au/y7mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080402/1bf1f3e5/attachment-0001.htm>
More information about the Insight-users
mailing list