Topic: compilation of libnfc on osx...
Hello i have been trying to compile libnfc for a week (on and off) now and it seems that the guide is out of date, but i am trying to write down what i have changed to make it work...
there where some things there was missing from macport that the guide says should be there
Mac OS X For installing dependencies, MacPorts download manager is used (available at: link for/MacPorts/) Install MacPorts following instructions from link for macports Install pkg-config: $ sudo port install pkgconfig Install glib: $ sudo port install glib2 //// here i changed glib to glib2 as glib does not exist in macport anymore //// Install glib: $ sudo port install libusb Make sure it's the x86_64 version (when on the latest OS X): $ lipo -info /opt/local/lib/libusb-1.0.0.dylib ////here I needed to add -1.0.0 to libusb.dylib //// Manual installation First make sure you have required compilation dependencies, ie. you will need headers from: libusb //// can someone tell me that headers for libusb is?//// Download and extract libnfc archive $ curl "link for libnfc-1.7.1.tar.bz2" -o "libnfc.bz2" $ tar -xvzf libnfc-x.x.x.tar.gz Configure and compile $ cd libnfc-x.x.x $ ./configure --prefix=/usr --sysconfdir=/etc ////here it fails telling me that libusb is not found//// $ make
I have not tryed the below at i see no reason for it to work.
Please note that ./configure have an installation path prefix set as /usr/local and sysconfdir set as $PREFIX/etc as default. Use --prefix and sysconfdir option, if you want another setup (see ./configure --help). Make sure you have required run-time dependencies. libusb Optionnal (only if you enable obsolete acr122 through PCSC driver) pcsc-lite (with pcscd), libccid Plug in NFC device, and test if libnfc detect it $ libnfc/utils/nfc-scan-device -v Place a tag on it and show it $ libnfc/utils/nfc-list Install libnfc into your system $ sudo make install
can anyone help me with what i need to do to libusb for this to work?