> make: *** No targets specified and no makefile found. Stop.
> The only file I have in the swig folder is: MakeFile.in
> Besides: running ./configure should create a "Makefile" from each "Makefile.in". If no Makefiles are present, this usually indicates that the configure script did not complete. Can you report the last lines of output of
>"./configure"? Please attach "config.log" as well, so we can see, where the problem originates from.
Yes, pcre was missing, configured and installed, swig installed fine.
Yes, I am running swig on os x 10.6.7.
I have built swig and pcre for 32 bit as I am working with mono.
I built an interface file:
/* hidapi.i */
I then ran the following commands:
swig -csharp hidapi.i
.cs files were generated:
Then I ran:
cc -c -arch i386 -fpic hid.c hidapi_wrap.c
Then I attempted to link:
cc -arch i386 -dynamiclib -install_name,/usr/local/lib/libhidapi.1.dylib hid.o hidapi_wrap.o
I get a bunch of the following errors:
Undefined symbols for architecture i386:
"_CFRelease", referenced from:
_free_hid_device in hid.o
_hid_enumerate in hid.o
_hid_open_path in hid.o
These appear to be mangled names, as the functions do not have the "_" character in the names in the .h or .c files.
Any ideas on how to fix?