[ITK] Use an itk exe on other computer

Matt McCormick matt.mccormick at kitware.com
Sat May 16 12:07:02 EDT 2015


Hi Cyril,

Your error indicates that you need to copy over the shared libraries
that your executable links to to the other computer and make it
available in the search path that the system looks for shared
libraries.  However, even if you do that, the C library and C++
standard library are not guaranteed to be compatible with the build
system.

One option is to build static executables. With ITK Git master [1], set

  BUILD_SHARED_LIBS=OFF
  ITK_DYNAMIC_LOADING=OFF
  CMAKE_EXE_LINKER_FLAGS=-static

Hope this helps,
Matt

[1] http://www.itk.org/Wiki/ITK/Git/Download

On Sat, May 16, 2015 at 5:59 AM, Cyril Jaudet <drcjaudet at gmail.com> wrote:
> Hello Itk community,
>
> i made a program with Itk, compil with cmake (the usual one) on Linux.
> When i try the .exe file on other computer (linux also) there is a error
> message:
>
> ./LookFile: error while loading shared libraries: libitksys-4.7.so.1: cannot
> open shared object file: No such file or directory
>
> It is possible to just produce an exe file that will work on other system
> without installing itk and recompile the program.
>
> thank you,
>
> Cyril Jaudet
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>


More information about the Community mailing list