[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 09:12:11 PST 2010


Andrea Canciani <ranma42 at gmail.com> wrote:

>> On Tue, Nov 9, 2010 at 5:56 PM, Kevin Layer <layer at franz.com> wrote:
>> > 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

Answering the question below, this one.

>> >
>> > 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$
>> 
>> Which environment setting were you using when you ran configure and make?
>> 
>> >
>> >
>> > 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.
>> 
>> If you manage to build cairo for i386 and cairo for x86_64, then
>> you can lipo them together and get an universal library.

As I said, this does nothing to get me to the goal of making a single
gtk2 dmg that includes all depends (with macports).



More information about the cairo mailing list