[Insight-users] Re: Use of ITK lib on other system

Luis Ibanez luis.ibanez at kitware.com
Tue Aug 10 02:32:05 EDT 2004


Hi Nawab,

If that system has the same architecture,
you can simply copy binaries.

In this case, you may want to make sure that
you use ITK as static libraries, that will
make things easier.


   Regards,


      Luis


-----------------------

Nawab Singh Baghel wrote:

> Dear Luis,
> 
> Thanks for reply. I could compile helloworld by keeping same mode as ITK. If
> I have 2 load libraries to another system. Shell I have 2 compile there or
> just copy binary dir to other system.
> 
> Regards
> Nawab
> 
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Nawab Singh Baghel" <rmcmumbai at vsnl.com>
> Cc: <Insight-users at itk.org>
> Sent: Monday, August 09, 2004 10:29 PM
> Subject: Re: [Insight-users] itk build problems in ms windows
> 
> 
> 
>>Hi Nawab,
>>
>>Thanks for your clarification.
>>
>>If your HelloWorld cannot find the ITKCommon library,
>>it is quite likely that you are using a different
>>compilation mode for your HelloWorld.
>>
>>It is a common mistake to compile ITK for a particular
>>mode (e.g. Debug, Release), and then compile the
>>application for a different mode.
>>
>>Compilation modes *must not* be mixed, even if you
>>can force libraries from different compilation modes
>>to link, the executables built that way can display
>>unpredictable behavior.
>>
>>You certainly don't want to do that when processing
>>medical images, specially if the results are going to
>>be used for assisting diagnosis or delivering treatment.
>>
>>Just make sure that when you build HelloWorld you
>>are using the exact same compilation mode that you
>>used for building ITK.
>>
>>
>>    Regards,
>>
>>
>>      Luis
>>
>>
>>
>>----------------------------
>>Nawab Singh Baghel wrote:
>>
>>
>>>Dear Luis,
>>>
>>>Thnaks for prompt reply. I m sorry, I configured for VC++ 6.0 not 7.0.
> 
> Now I
> 
>>>downloaded service pack 6 and compiled ITK successfully all lib files
> 
> are in
> 
>>>"d:\nsb-dcm\insight-bin\bin\relwithdebinfo". I, then, tried to compiled
>>>"helloworld" example where dsw is made using cmake 2.0. I gives error
>>>"Linking...
>>>LINK : fatal error LNK1104: cannot open file "ITKCommon.lib"
>>>Error executing link.exe.
>>>
>>>ALL_BUILD - 1 error(s), 0 warning(s)"
>>>
>>>But it is available in above dir. I am new to ITK. Please tell me how to
>>>link lib file for compilation..
>>>
>>>Thanks once again
>>>With Regards
>>>Nawab
>>>
>>>
>>>----- Original Message -----
>>>From: "Luis Ibanez" <luis.ibanez at kitware.com>
>>>To: "Nawab Singh Baghel" <nawabsingh at bigfoot.com>
>>>Cc: <insight-users at itk.org>
>>>Sent: Sunday, August 08, 2004 10:31 PM
>>>Subject: Re: [Insight-users] itk build problems in ms windows
>>>
>>>
>>>
>>>
>>>>Hi Nawab,
>>>>
>>>>1) Your process seems to be inconsistent.
>>>>
>>>>   You said that
>>>>
>>>>     a) You configured ITK for      VC++ 7.0
>>>>     b) You loaded the ITK.dsw with VC++ 6.0
>>>>
>>>>   Why would you do such a thing ?
>>>>
>>>>   In any case, when you configure for VC++7.0
>>>>   you don't get an ITK.dsw but a ITK.sln file.
>>>>
>>>>
>>>>2) You seem to be using ITK 1.4.
>>>>   Note that ITK 1.6 has been available
>>>>   since February 2004, and ITK 1.8 will
>>>>   be released on August 16th 2004. (one week
>>>>   from now).
>>>>
>>>>
>>>>3) If you get an internal compiler error (ICE)
>>>>   with Visual Studio, that leads to suspect
>>>>   that you have not installed the Service Pack 6
>>>>   for this compiler. For details on where to
>>>>   find the Service Pack please look at the Visual
>>>>   Studio 6.0 entry in the Compiler-Issues page:
>>>>
>>>>     http://www.itk.org/HTML/CompilerIssues.htm
>>>>
>>>>
>>>>4) Please read the Tutorials
>>>>
>>>>     http://www.itk.org/HTML/Tutorials.htm
>>>>
>>>>    in particular the Getting Starting Tutorial
>>>>http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm
>>>>
>>>>
>>>>
>>>>
>>>>Regards,
>>>>
>>>>
>>>>
>>>>   Luis
>>>>
>>>>
>>>>
>>>>---------------------------
>>>>Nawab Singh Baghel wrote:
>>>>
>>>>
>>>>
>>>>>Dear ITK users,
>>>>>I configured step by step to make itk lib using vc++ 7.0. downloaded
>>>>>cmakesetup and made itk.dsw and opened workspace in VC++ 6.0 and all
>>>>>build with RelWithDebInfo . It is giving one error to make it. please
>>>>>advise. Every thing is compiled properly execpt this..
>>>>>The error is below
>>>>>Compiling...
>>>>>" test_complex.cxx
>>>>>
>>>
>>>
> D:\nsb-dcm\InsightToolkit-1.4.0\Utilities\vxl\vnl\tests\test_complex.cxx(95)
> 
>>>>>: fatal error C1001: INTERNAL COMPILER ERROR
>>>>> (compiler file 'E:\8168\vc98\p2\src\P2\main.c', line 494)
>>>>>   Please choose the Technical Support command on the Visual C++
>>>>>   Help menu, or open the Technical Support help file for more
>>>
>>>information
>>>
>>>
>>>>>Error executing cl.exe.
>>>>>
>>>>>ALL_BUILD - 1 error(s), 0 warning(s) "
>>>>>
>>>>>Thanks
>>>>>Nawab
>>>>>
>>>>>
>>
>>>>------------------------------------------------------------------------
>>>>
>>>>>_______________________________________________
>>>>>Insight-users mailing list
>>>>>Insight-users at itk.org
>>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>Insight-users mailing list
>>>>Insight-users at itk.org
>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
> 
> 
> 






More information about the Insight-users mailing list