[Insight-users] If I want to show my program in other computer ?

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 23 10:47:10 EST 2005


Hi Zien,

When you configure ITK with CMake,
you set


       BUILD_SHARED_LIBRARIES   to   OFF


Then you rebuild ITK.


In that way all the ITK libraries will be Static
and when you build your project they will be bind
to your executable.


If are using other libraries, in addition to ITKs,
then you want to make sure that they are also
Static.


   Regards



      Luis



----------
Zien wrote:
> Can you tell me...
> How to use all the libraries as Static libraries?
> 
> 
> 2005/12/23, Luis Ibanez <luis.ibanez at kitware.com 
> <mailto:luis.ibanez at kitware.com>>:
> 
> 
>     Hi Zien,
> 
>     Thanks for sending details about your platform.
> 
>     You should be ok moving just the executable to the other
>     computer, as long as you use all the libraries as Static
>     libraries.
> 
> 
> 
>         Regards,
> 
> 
>            Luis
> 
> 
> 
>     --------------
>     Zien wrote:
>      > My platform is under win xp and VC6.0.
>      >
>      > And my program will combine other project by other mechanism.
>      >
>      >
>      > 2005/12/23, Luis Ibanez <luis.ibanez at kitware.com
>     <mailto:luis.ibanez at kitware.com>
>      > <mailto:luis.ibanez at kitware.com <mailto:luis.ibanez at kitware.com>>>:
>      >
>      >
>      >     Hi Zien,
>      >
>      >
>      >            What platform are you using ?
>      >
>      >
>      >     You should be able to just carry the executable.
>      >     You don't need to recompile the whole project in
>      >     the other computer.
>      >
>      >     Usually the only problem is related to Shared libraries.
>      >
>      >     You may face some problems if the shared libraries in
>      >     the other computer are not the same version that your
>      >     program is depending on.
>      >
>      >     In general, the best way to be safe is to build ITK
>      >     with Static libraries and try to make sure that any
>      >     other libraries used by your program are also static.
>      >
>      >     In those conditions, your executable is pretty much
>      >     self-suficient and should run in any other machine
>      >     with the same architecture.
>      >
>      >
>      >
>      >         Regards,
>      >
>      >
>      >            Luis
>      >
>      >
>      >     --------------
>      >     Zien wrote:
>      >      > Hi,all:
>      >      >
>      >      > If I want to show my program in other computer.
>      >      > Would I need to  compile  ITK  library and make my program
>     use CMake
>      >      > again in the other computer?
>      >      >
>      >      > Kind Regards.
>      >      >
>      >      >
>      >      >
>      >    
>     ------------------------------------------------------------------------
> 
>      >      >
>      >      > _______________________________________________
>      >      > Insight-users mailing list
>      >      > Insight-users at itk.org <mailto:Insight-users at itk.org>
>     <mailto: Insight-users at itk.org <mailto:Insight-users at itk.org>>
>      >      > http://www.itk.org/mailman/listinfo/insight-users
>      >     < http://www.itk.org/mailman/listinfo/insight-users>
>      >
>      >
> 
> 



More information about the Insight-users mailing list