Cannot compile simple app with ImageMagick
Original Reporter info from Mantis: aurawin
-
Reporter name: Andrew Brunner
Original Reporter info from Mantis: aurawin
- Reporter name: Andrew Brunner
Description:
Cannot build program with simple Image Magic capabilities.
The libraries are present in /usr/lib.
The linker fails with undefined symbols errors:
ld: symbol(s) not found for architecture i386
Undefined symbols for architecture i386:
"_DestroyMagickWand", referenced from:
_P$IMGOSX_$$_TEST in ImgOSX.o
"_NewMagickWand", referenced from:
_P$IMGOSX_$$_TEST in ImgOSX.o
ld: symbol(s) not found for architecture i386
An error occurred while linking
ImgOSX.lpr(24,1) Error: Error while linking
ImgOSX.lpr(24,1) Fatal: There were 1 errors compiling module, stopping
Steps to reproduce:
Compile attached sample program under i386 Darwin (OSX 10.9)
Additional information:
/usr/lib/
-rwxr-xr-x@ 1 root wheel 806592 Sep 26 13:43 libMagick++-6.Q16.1.dylib
lrwxr-xr-x@ 1 root wheel 25 Sep 26 13:43 libMagick++-6.Q16.dylib -> libMagick++-6.Q16.1.dylib
-rwxr-xr-x@ 1 root wheel 1202 Sep 26 13:43 libMagick++-6.Q16.la
-rwxr-xr-x@ 1 root wheel 4579464 Sep 26 13:43 libMagickCore-6.Q16.1.dylib
lrwxr-xr-x@ 1 root wheel 27 Sep 26 13:43 libMagickCore-6.Q16.dylib -> libMagickCore-6.Q16.1.dylib
-rwxr-xr-x@ 1 root wheel 1132 Sep 26 13:43 libMagickCore-6.Q16.la
lrwxr-xr-x 1 root wheel 29 Nov 25 08:02 libMagickCore.dylib -> ./libMagickCore-6.Q16.1.dylib
-rwxr-xr-x@ 1 root wheel 1327832 Sep 26 13:43 libMagickWand-6.Q16.1.dylib
lrwxr-xr-x@ 1 root wheel 27 Sep 26 13:43 libMagickWand-6.Q16.dylib -> libMagickWand-6.Q16.1.dylib
-rwxr-xr-x@ 1 root wheel 1172 Sep 26 13:43 libMagickWand-6.Q16.la
lrwxr-xr-x 1 root wheel 27 Nov 25 08:04 libMagickWand.dylib -> ./libMagickWand-6.Q16.dylib
Mantis conversion info:
- Mantis ID: 25373
- OS: OSX
- OS Build: 10.9
- Platform: Darwin