Issue with creating shared library

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
jvisu
Posts: 4
Joined: 2011-02-17T02:58:38-07:00
Authentication code: 8675308

Issue with creating shared library

Post by jvisu »

Hi

I'm new to this form.

I created a shared library (libimconvert.so) using ImageMagick-6.3.0 to convert a image file in RHEL5 linux.
g++ -g -shared -o libimconvert.so imgconvert.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
The libimconvert.so library is loading fine and the conversion is working fine but my program is giving segmentation fault when closing the library (dlclose).

When I created an application (imconvert.exe) instead of library it is working fine.
g++ -g -o imconvert.exe imgconvert.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`

Could any one help me what could be the problem with creating a shared library or did I missed anything.

Thanks in advance.

Regards
J.Visu
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Issue with creating shared library

Post by magick »

Download the latest release of ImageMagick, 6.6.7-7 and install. If your program still fails, post the output of this command:
  • identify -list configure
Post a URL to your source code. We'll need to download it and reproduce the problem before we can offer a solution.
jvisu
Posts: 4
Joined: 2011-02-17T02:58:38-07:00
Authentication code: 8675308

Re: Issue with creating shared library

Post by jvisu »

Hi,

Thanks for the quick reply and Sorry from my side for the delayed response.

Its working with the new library.

Regards
JVisu
Post Reply