AVbin/AVbin — Issue #2: avbin-darwin-x86-32-v8 is actually a 64-bit version?
Author: paulfurber
Created: 2012-01-23 12:01:43+00:00
State: open

I downloaded avbin-darwin-x86-32-v8.tar.bz2 from the front page and discovered that it's 64-bit linked.

$ tar xjvf avbin-darwin-x86-32-v8.tar.bz2
$ cd avbin-darwin-x86-32-v8
$ ls -al
total 7912
drwxr-xr-x@ 5 maverick staff 170 Jan 23 13:49 .
drwx------+ 558 maverick staff 18972 Jan 23 13:48 ..
-rwxr-xr-x@ 1 maverick staff 280 Dec 11 02:59 install.sh
-rwxr-xr-x@ 1 maverick staff 4041176 Dec 11 02:59 libavbin.8.dylib
-rw-r--r--@ 1 maverick staff 272 Dec 11 02:59 readme.txt
$ file libavbin.8.dylib
libavbin.8.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Snow Leopard 10.6.8, brew-installed python-2.7.2 running in 32-bit mode, pyglet1.2dev is my setup. The old libavbin.5.dylib is still in /usr/local/lib and it reports:

$ file libavbin.5.dylib
libavbin.5.dylib: Mach-O universal binary with 2 architectures
libavbin.5.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
libavbin.5.dylib (for architecture ppc):	Mach-O dynamically linked shared library ppc

so I know it's not just me going crazy. I discovered this eventually by drilling down into pyglet.lib.LoadLibrary and checking the the output of cytpes.cdll.LoadLibrary("/usr/local/lib/libavbin.dylib") . It said:

/usr/local/lib/libavbin.dylib: mach-o, but wrong architecture