configure/compile universal binary mac

tom at mixerson.com tom at mixerson.com
Sun Mar 7 23:06:53 CET 2010


Hi - I just joined the list today because I'm having problems building
a python extension that uses taglib.  I checked the list archives prior
to posting my question and I was very happy to see this thread.

>> On Mar 7, 2010, at 6:48 PM, Michael Chinen wrote:
>> > I'm trying to obtain a universal libtag.a to use for static linking
>> > on mac, but my attempts thusfar have failed.

I was able to build a universal version of the dynamic library using:

env CFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
./configure --disable-dependency-tracking

I could build the python extension using the resulting dynamic library,
but I got the following error when importing the module in python:

  ImportError: dlopen(/Library/Python/2.5/site-packages/_myreader.so, 2):
Symbol not found: __ZTIN6TagLib3MP43TagE

I tried to build the static version by adding --enable-static to the
configure command above, but the resulting libtag.a was i386 only.

I was able to get the python extension working by using the libTagLib.a
posted earlier, but I still can't build the static library myself.

>> I've typically found qmake the easiest for building mac libs.  I just
>> updated the .pro file in svn, but you can drop this into 1.6.1 and it
>> should work:
>>
>> http://dl.dropbox.com/u/364670/taglib.pro

Does using qmake with taglib.pro replace the configure step?

Is there something wrong with the taglib.pro file that comes with
taglib.1.6.1 that I downloaded a few days ago?


Thanks,

Tom





More information about the taglib-devel mailing list