convert: undefined symbol: MagickCoreGenesis

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
paultaylor

convert: undefined symbol: MagickCoreGenesis

Post by paultaylor »

Hi All,

I have Suse 10.2 fully upto date which has ImageMagick 6.3.0 installed as default.

I would like to use some of the new functionality so just downloaded version 6.3.5.

This was unpacked and then :

Code: Select all

./configure
make
make install
I then run '/usr/local/bin/convert --version'
and get the result :

Code: Select all

/usr/local/bin/convert: symbol lookup error: /usr/local/bin/convert: undefined symbol: MagickCoreGenesis
I saw a few messages about changing MagickCoreGenesis to something else or upgrade to lastest version. As I just have upgraded to latest version what am I missing ?

Thanks in advance for your help,
Paul
paultaylor

Re: convert: undefined symbol: MagickCoreGenesis

Post by paultaylor »

as a follow on.

I decided to completely remove the new installation and also the pre loaded Suse packages to have a clean install platform.

I installed as per normal and the resulting configure gave me this :

Code: Select all

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type : i686-pc-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=yes            yes
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --with-hdri=no                no

Delegate Configuration:
BZLIB             --with-bzlib=yes              yes
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FlashPIX          --with-fpx=no         no
FontConfig        --with-fontconfig=yes         yes
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
Ghostscript       None                          gs (8.15.3)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/ghostscript/fonts/
Ghostscript lib   --with-gslib=yes              no (failed tests)
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                yes
LCMS              --with-lcms=yes               yes
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=yes               /usr/bin/perl
PNG               --with-png=yes                yes
RSVG              --with-rsvg=yes               no
TIFF              --with-tiff=yes               no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

X11 Configuration:
  X_CFLAGS        =
  X_PRE_LIBS      = -lSM -lICE
  X_LIBS          =
  X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.3.5
  CC              = gcc
  CFLAGS          = -g -O2 -Wall -W -pthread
  MAGICK_CFLAGS   = -g -O2 -Wall -W -pthread
  CPPFLAGS        = -I/usr/local/include
  PCFLAGS         =
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -lfreetype -lz
  MAGICK_LDFLAGS  = -L/usr/local/lib -lfreetype -lz
  LIBS            = -lMagick -llcms -lfreetype -ljpeg -lfontconfig -lexpat -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -Wall -W -pthread
When make'ing and then make install'ing I saw many strange linking warnings like the following:

Code: Select all

 /bin/sh ./libtool --silent --mode=install /usr/bin/install -c  'Magick++/lib/libMagick++.la' '/usr/local/lib/libMagick++.la'
libtool: install: warning: relinking `Magick++/lib/libMagick++.la'
libtool: ignoring unknown tag CXX
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//liblcms.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libXext.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libSM.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libX11.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libXt.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libfreetype.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//liblcms.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libXext.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libXt.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libfreetype.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libSM.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i586-suse-linux/4.1.2/../../..//libX11.la' seems to be moved
this seems to repeat and retry when make install'ing.

After install completed a test produced :

Code: Select all

/usr/local/bin/convert: error while loading shared libraries: libMagick.so.10: cannot open shared object file: No such file or directory


Any help would be very much appreciated,
Paul
paultaylor

Re: convert: undefined symbol: MagickCoreGenesis

Post by paultaylor »

FIXED :D

I was hunting through the board and simply needed to run

Code: Select all

/sbin/ldconfig
Regards,
Paul
udayk82

Re: convert: undefined symbol: MagickCoreGenesis

Post by udayk82 »

Hey paul,
Thanks a lot for the suggestion. Just today, I registered into this forum and it turned out to be helpful right on the first day.
I was thinking why my display function is not working, and it happened after i installed the latest version. Thanks anyway. Have a good day..

Regards,
uday
Post Reply