configure/compile universal binary mac

Michael Chinen mchinen at gmail.com
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!

Michael

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

Ld
/Users/apple/svncheckouts/chinentest/NoiseMP3/build/NoiseMP3104.build/Release/NoiseMP3.build/Objects-normal/i386/NoiseMP3
normal i386
    cd /Users/apple/svncheckouts/chinentest/NoiseMP3
    /Developer/usr/bin/g++-4.0 -o
/Users/apple/svncheckouts/chinentest/NoiseMP3/build/NoiseMP3104.build/Release/NoiseMP3.build/Objects-normal/i386/NoiseMP3
-L/Users/apple/svncheckouts/chinentest/NoiseMP3/build/Release
-L/Users/apple/svncheckouts/chinentest/NoiseMP3
-L/Users/apple/svncheckouts/chinentest/NoiseMP3
-L/Users/apple/svncheckouts/chinentest/NoiseMP3
-L/Users/apple/svncheckouts/chinentest/NoiseMP3
-L/Users/apple/svncheckouts/chinentest/NoiseMP3/ppclibs
-L/Users/apple/svncheckouts/chinentest/NoiseMP3/intellibs
-L/Users/apple/svncheckouts/chinentest/NoiseMP3
-F/Users/apple/svncheckouts/chinentest/NoiseMP3/build/Release
-F/Users/apple/svncheckouts/chinentest/NoiseMP3 -filelist
/Users/apple/svncheckouts/chinentest/NoiseMP3/build/NoiseMP3104.build/Release/NoiseMP3.build/Objects-normal/i386/NoiseMP3.LinkFileList
-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/SDKs/MacOSX10.4u.sdk
/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
symbols:
TagLib::FileRef::FileRef(char const*, bool,
TagLib::AudioProperties::ReadStyle)
TagLib::FileRef::~FileRef()
TagLib::FileRef::audioProperties() const
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20100307/d76478d6/attachment.htm 


More information about the taglib-devel mailing list