[Insight-users] If I want to show my program in other computer ?
Luis Ibanez
luis.ibanez at kitware.com
Fri Dec 23 11:39:47 EST 2005
Hi Zien,
You are almost there...
The MSVCP60D.dll is the Debug library from Visual Studio,
this library is only available in machines that have
Visual studio installed.
At this point you have two options:
1) Recompile your program for Release
(that will require to recompile ITK for Release too).
OR
2) Copy the MSVCP60D.dll *along* with the executable
of your program and keep them together in the same
directory.
If you are in a hurry,
then option #2 is the easy way out.
If you need a permanent solution,
then you should rather take option #1.
Your program will run a lot faster in Release mode
anyways, so, if this is a demo, then you may want to
go for that extra speed.
In some ITK filters, the difference may be up to 10X
faster compiled for Release than for Debug. The reason
is that most of the inlining for which ITK has been
designed, is only done when compiling for Release.
Beware that programs may behave different in Debug and
Release mode. Again, if this is a demo, and you rebuild
it for Release, make sure that you play with it in
advance, and make sure that everything works as you
expected.
There are nasty bugs that only show up in Release mode...
(they exist with the only purpose of driving developers
crazy...).
Regards,
Luis
-----------
Zien wrote:
> Hi,Luis:
> After I try to set
> BUILD_SHARED_LIBRARIES to OFF
> and rebuild ITK.
> I make my program with CMake again,
> and then copy my .exe file to other computer and execute it ...
> But I get a error message as :
> " can't find MSVCP60D.dll "...
> It's so confusing me...
> Please help me ...
>
> Thanks .
>
>
>
> 2005/12/23, Luis Ibanez <luis.ibanez at kitware.com
> <mailto:luis.ibanez at kitware.com>>:
>
>
> 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>
> > <mailto: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>>
> > > <mailto: 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>>
> > <mailto: 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>
> > > < http://www.itk.org/mailman/listinfo/insight-users>
> > >
> > >
> >
> >
>
>
More information about the Insight-users
mailing list