[cairo] problem building cairo 1.10.0 for x86_64 on Mac OS X 10.5 (Leopard)

Kevin Layer layer at franz.com
Tue Nov 9 08:56:49 PST 2010


Andrea Canciani <ranma42 at gmail.com> wrote:

>> On Tue, Nov 9, 2010 at 3:08 PM, Kevin Layer <layer at franz.com> wrote:
>> > Alexander Shulgin <alex.shulgin at gmail.com> wrote:
>> >
>> >>> On Mon, Nov 8, 2010 at 23:31, Kevin Layer <layer at franz.com> wrote:
>> >>> > Andrea Canciani <ranma42 at gmail.com> wrote:
>> >>> >>>
>> >>> >>> Please try building the archive available here:
>> >>> >>> http://www.cairographics.org/releases/cairo-1.10.0.tar.gz
>> >>> >>>
>> >>> >>> It should be as simple as decompressing it and running:
>> >>> >>> ./configure
>> >>> >>> make
>> >>> >>>
>> >>> >>> (assuming that you already added macports to the path).
>> >>> >>> If both these commands run successfully, the problem is likely
>> >>> >>> in the macports packaging.
>> >>> >
>> >>> > They did.  However, that only made the i386 version.  How do I
>> >>> > configure for x86_64?  (I looked at configure and it wasn't obvious)
>> >>>
>> >>> I guess it's ./configure --build=x86_64 or something like that.
>> >
>> > OK, did that.  The make that followed worked, but didn't produce any
>> > dylib's.
>> >
>> > $ find . -name '*.dylib'
>> > $ find . -name 'libcairo.*'
>> > ./src/.libs/libcairo.a
>> > ./src/.libs/libcairo.la
>> > ./src/.libs/libcairo.lai
>> > ./src/libcairo.la
>> > $ find . -name 'libcairo.*' | xargs file
>> > ./src/.libs/libcairo.a:   current ar archive random library
>> > ./src/.libs/libcairo.la:  ASCII English text, with very long lines
>> > ./src/.libs/libcairo.lai: ASCII English text, with very long lines
>> > ./src/libcairo.la:        ASCII English text, with very long lines
>> > $
>> >
>> > Not sure where to go from here.  Any ideas?
>> 
>> You might want to try something like
>> 
>> export MACOSX_DEPLOYMENT_TARGET=10.5
>> export LDFLAGS="-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
>> export CFLAGS="-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
>> ./configure

And make yields this on my 10.5.8 system:

  CC     cairo-svg-surface.lo
  CCLD   libcairo.la
Undefined symbols:
  "___umodti3", referenced from:
      __cairo_uint128_divrem in cairo-wideint.o
  "___udivti3", referenced from:
      __cairo_uint128_divrem in cairo-wideint.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libcairo.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
bigmac$ 


I want to reiterate that successfully building cairo for x86_64 will
do me no good.  My ultimate goal is to build (with macports or any
other means) a single gtk2 dmg for 10.5 that includes everything
needed to run a gtk2 application.

Thanks.



More information about the cairo mailing list