Topic: Mac Builds
Hey all,
I've spent sometime today & yesterday trying to get libnfc to build on my macbook. Os X 10.6.8, in the end I've given up and used MacPorts to install a slightly older version (newest isn't that important to me). I'm reporting my problems, hopefully they're helpful to you. I've was using the instructions here:
http://www.libnfc.org/documentation/installation
After updating macports using:
sudo port -v selfupdate
I can't install glib (ports gives a "Error: Port glib not found") error. Libusb installs but under the name 'libusb-1.0', which means the libnfc ./configure can't find it. I tried renaming the /opt/local/lib/pkgconfig/libusb-1.0.pc to libusb.pc, and that's good enough for ./configure to complete successfully. I also needed to add some paths for pkg-config to use the /opt/local/lib dir, but that might just be my machine. Before trying the rename I had libusb-devel installed, made no difference.
Now when building it's giving me a:
pn53x_usb.c:42:19: error: usb.h: No such file or directory
I can find this header in /opt/local/include, but even after using ./configure includedir=/opt/local/include, the build fails.
I notice though that ports has the dependency of 'libusb-compat'. But even with that installed the code fails to build here.
James