Hi All,
I'm trying to port demo app for libusb written in fpc on OSX.
I installed libusb and libusb dev packages using macport.
I also changed:
{$LINKLIB /usr/lib/libusb-1.0.a} to {$LINKLIB libusb-1.0} (i assume that it will use libusb-1.0dylib).
But when i try to recompile project i get following errors:
Undefined symbols:
"_libusb_exit", referenced from: _UMIKROUSB_CLOSELIBUSB in umikrousb.o
"_libusb_init", referenced from: _UMIKROUSB_OPENLIBUSB in umikrousb.o
ld: symbol(s) not found
Error: Error while linking
Probably I oversee something:
And here are prototypes of functions:
{$LINKLIB libusb-1.0}
function libusb_init(ctx:PPlibusb_context):longint;cdecl;external;
procedure libusb_exit(ctx:Plibusb_context);cdecl;external;
This is the same units and project that works fine on Linux.
Thanks in advance.
Marko