Page 1 of 1

Compile fails on Mac 10.7

Posted: 2012-02-10T13:48:30-07:00
by mailseth
I don't see any obvious reasons why it's not working. I'm running the latest Imagemagick and Xcode installs. Maybe there's a problem with the recent SyncImagePixelCache() addition? Thoughts?
~Seth

$ ./configure --with-quantum-depth=8 && make
[...]
config.status: executing Wand-config.in commands
config.status: executing Magick++-config.in commands
config.status: executing PerlMagick/check.sh.in commands

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

Host system type: x86_64-apple-darwin11.3.0
Build system type: x86_64-apple-darwin11.3.0

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

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes yes
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (9.00)
Ghostscript fonts --with-gs-font-dir=default /opt/local/share/ghostscript/fontsx/
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes yes
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes yes
LCMS v1 --with-lcms=yes yes
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes yes
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes yes
PERL --with-perl=no no
PANGO --with-pango=yes yes
PNG --with-png=yes yes
RSVG --with-rsvg=yes yes
TIFF --with-tiff=yes yes
WEBP --with-webp=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes yes
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 = -L/usr/X11/lib -R/usr/X11/lib
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.7.5
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -D_THREAD_SAFE -I/opt/local/include/OpenEXR -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -g -O2 -Wall -D_THREAD_SAFE -pthread
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS = -fopenmp
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/X11/lib -R/usr/X11/lib -L/opt/local/lib -L/opt/local/lib
MAGICK_LDFLAGS = -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib -L/opt/local/lib -L/opt/local/lib
LIBS = -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -L/opt/local/lib -llqr-1 -lglib-2.0 -lintl -liconv -lpng12 -lfftw3 -L/opt/local/lib -lfontconfig -lexpat -lfreetype -lz -liconv -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -L/opt/local/lib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -L/opt/local/lib -lpangoft2-1.0 -lpango-1.0 -lm -lfontconfig -lexpat -lfreetype -lz -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv -L/opt/local/lib -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lm -lcairo -lgmodule-2.0 -lgobject-2.0 -lpixman-1 -lfontconfig -lexpat -lfreetype -lpng12 -lz -lXrender -lgthread-2.0 -lglib-2.0 -lintl -liconv -lX11 -lxcb -lXau -lXdmcp -lxml2 -L/opt/local/lib -lgvc -lgraph -lcdt -lz -lm -lgomp -Wl,-framework,OpenCL -lm -lpthread -lltdl
CXX = g++
CXXFLAGS = -g -O2 -D_THREAD_SAFE -pthread
FEATURES = OpenCL OpenMP
[...]
CC coders/magick_libMagickCore_la-jpeg.lo
CC coders/magick_libMagickCore_la-jp2.lo
CC coders/magick_libMagickCore_la-png.lo
CC coders/magick_libMagickCore_la-ept.lo
CC coders/magick_libMagickCore_la-tiff.lo
CC coders/magick_libMagickCore_la-wmf.lo
CC coders/magick_libMagickCore_la-x.lo
CC coders/magick_libMagickCore_la-xwd.lo
CC filters/magick_libMagickCore_la-analyze.lo
CCLD magick/libMagickCore.la
/usr/bin/nm: no name list
ld: warning: cannot export hidden symbol _SyncImagePixelCache from magick/.libs/magick_libMagickCore_la-cache.o
ld: warning: cannot export hidden symbol _ResetQuantumState from magick/.libs/magick_libMagickCore_la-quantum.o
Undefined symbols for architecture x86_64:
"_DrawRender", referenced from:
_ReadWMFImage in magick_libMagickCore_la-wmf.o
"_DrawAllocateWand", referenced from:
_ipa_device_open in magick_libMagickCore_la-wmf.o
"_DestroyDrawingWand", referenced from:
_ipa_device_close in magick_libMagickCore_la-wmf.o
"_PushDrawingWand", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
_ipa_flood_interior in magick_libMagickCore_la-wmf.o
_ipa_flood_exterior in magick_libMagickCore_la-wmf.o
_ipa_draw_pixel in magick_libMagickCore_la-wmf.o
_ipa_draw_line in magick_libMagickCore_la-wmf.o
_ipa_poly_line in magick_libMagickCore_la-wmf.o
_ipa_draw_polygon in magick_libMagickCore_la-wmf.o
...
"_DrawSetViewbox", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
"_DrawComment", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
"_DrawScale", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
_ipa_draw_text in magick_libMagickCore_la-wmf.o
"_DrawTranslate", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
_ipa_draw_text in magick_libMagickCore_la-wmf.o
"_DrawRotate", referenced from:
_ipa_device_begin in magick_libMagickCore_la-wmf.o
_ipa_draw_text in magick_libMagickCore_la-wmf.o
[...]
_ipa_region_clip in magick_libMagickCore_la-wmf.o
"_DrawPopClipPath", referenced from:
_ipa_region_clip in magick_libMagickCore_la-wmf.o
"_DrawSetClipPath", referenced from:
_ipa_region_clip in magick_libMagickCore_la-wmf.o
"_DrawSetStrokeAntialias", referenced from:
_util_set_brush in magick_libMagickCore_la-wmf.o
_util_set_pen in magick_libMagickCore_la-wmf.o
"_DrawSetStrokeWidth", referenced from:
_util_set_brush in magick_libMagickCore_la-wmf.o
_util_set_pen in magick_libMagickCore_la-wmf.o
"_DrawSetStrokePatternURL", referenced from:
_util_set_brush in magick_libMagickCore_la-wmf.o
"_DrawSetStrokeDashArray", referenced from:
_util_set_pen in magick_libMagickCore_la-wmf.o
"_DrawEllipse", referenced from:
_util_draw_arc in magick_libMagickCore_la-wmf.o
"_DrawPathEllipticArcAbsolute", referenced from:
_util_draw_arc in magick_libMagickCore_la-wmf.o
"_DrawArc", referenced from:
_util_draw_arc in magick_libMagickCore_la-wmf.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [magick/libMagickCore.la] Error 1
make: *** [all] Error 2

Re: Compile fails on Mac 10.7

Posted: 2012-02-10T17:18:26-07:00
by magick
Add --without-wmf to your configure script command line and rebuild. Does that fix the problem?

Re: Compile fails on Mac 10.7

Posted: 2012-02-10T17:50:22-07:00
by mailseth
That worked swimmingly!