configure/compile universal binary mac

Michael Chinen mchinen at
Sun Mar 7 18:48:59 CET 2010

I'm trying to obtain a universal libtag.a to use for static linking on mac,
but my attempts thusfar have failed.

I'm configuring with
../configure --disable-shared  --enable-universal --enable-universal-binary
--disable-debug --enable-static --enable-unicode
--disable-dependency-tracking --disable-monolithic

I downloaded the 1.6.1 source and tried this on both 10.4 G4 (ppc), 10.4
core duo (i386), and 10.6 core 2 duo (i386?), and all yield (after make/make
install) a libtag.a that doesn't have i386 architecture in it.  I've also
tried without --enable-universal/--enable-universal-binary and it still
produced a libtag.a without i386 arch (but had ppc even in the build on my
intel mac!).  I also tried to obtain the library from mac ports with "port
install taglib +universal" but it fails with some error.

I'm no expert at configuring feature options, so please tell me if there's
some other feature name I don't know about.  Any ideas?

Even though I haven't gotten it to link yet for intel, it works nicely on
ppc.  Thanks for the work!


P.S. I get the following error, in which LD says it's not there:

normal i386
    cd /Users/apple/svncheckouts/chinentest/NoiseMP3
    /Developer/usr/bin/g++-4.0 -o
-F/Users/apple/svncheckouts/chinentest/NoiseMP3 -filelist
-framework Cocoa -lportaudio -lmad -framework AudioToolbox -framework
AudioUnit -framework CoreAudio -framework CoreServices -ltag -lz -arch i386
-Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning
/Users/apple/svncheckouts/chinentest/NoiseMP3/ppclibs/libtag.a archive's
cputype (18, architecture ppc) does not match cputype (7) for specified
-arch flag: i386 (can't load from it)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined
TagLib::FileRef::FileRef(char const*, bool,
TagLib::FileRef::audioProperties() const
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the taglib-devel mailing list