static linking Magick++ executable
Posted: 2013-07-03T22:28:11-07:00
hi,
after compiling a very simple, first time Magick++ application with an installation
of ImageMagick that i have installed in my home directory on a server that i do
not have root access to, i find that the libraries cannot be found at run time, and
messing around with ldconfig, using local cache file etc doesnt help. i am not an
expert in these matters, but i decide it would be good to link, instead, statically
to the ImageMagick libraries so that they will be built in and so no runtime problem.
but there are many things that the linker cannot find now, even though the .a
files are present in my build of Imagemagick. i have read other stuff in the forums
and it seems that i cannot just link the .a files, and so i dont understand why there
is an option to build them when installing ImageMagic, if they are no use without
statically including the other delegate libraries as well...?
basically i would really like to know how to either dynamically link the right libraries
so that they can be found at runtime by the program, or statically link them into
the program. sorry if i have not described the problem well..
after compiling a very simple, first time Magick++ application with an installation
of ImageMagick that i have installed in my home directory on a server that i do
not have root access to, i find that the libraries cannot be found at run time, and
messing around with ldconfig, using local cache file etc doesnt help. i am not an
expert in these matters, but i decide it would be good to link, instead, statically
to the ImageMagick libraries so that they will be built in and so no runtime problem.
but there are many things that the linker cannot find now, even though the .a
files are present in my build of Imagemagick. i have read other stuff in the forums
and it seems that i cannot just link the .a files, and so i dont understand why there
is an option to build them when installing ImageMagic, if they are no use without
statically including the other delegate libraries as well...?
basically i would really like to know how to either dynamically link the right libraries
so that they can be found at runtime by the program, or statically link them into
the program. sorry if i have not described the problem well..