Problem building commandline examples on OS X
Posted: Sat Apr 23, 2011 10:16 pm
Hi,
first i wanted to thank the developers for this great software!
I tried building the hid-data example. Everything concerning the firmware worked fine, but compiling the commandline application on an OS X 10.6 didn't work. I installed libusb 1.0.8 and couldn't find the libusb-config file. This file also was not created when installing libusb 1.0.6 or libusb-devel via macports. After several days of research i couldn't figure out what to do in order to get the files compiled.
When calling "make", i always get:
gcc `libusb-config --cflags` -O -g -Wall -c opendevice.c
/bin/sh: libusb-config: command not found
In file included from opendevice.c:18:
opendevice.h:26:77: error: usb.h: No such file or directory
In file included from opendevice.c:18:
opendevice.h:29: error: expected ‘)’ before ‘*’ token
opendevice.h:40: error: expected ‘)’ before ‘*’ token
opendevice.c:86: error: expected ‘)’ before ‘*’ token
opendevice.c:116: error: expected ‘)’ before ‘*’ token
make: *** [opendevice.o] Error 1
I even tried to find the necessary files that have to be included by hand and to include them, which didn't work out either. Was anyone able to build the commandline examples on an os x? And if, what could i do to overcome those problems?
Thanks a lot in advance, best regards,
Roman
first i wanted to thank the developers for this great software!
I tried building the hid-data example. Everything concerning the firmware worked fine, but compiling the commandline application on an OS X 10.6 didn't work. I installed libusb 1.0.8 and couldn't find the libusb-config file. This file also was not created when installing libusb 1.0.6 or libusb-devel via macports. After several days of research i couldn't figure out what to do in order to get the files compiled.
When calling "make", i always get:
gcc `libusb-config --cflags` -O -g -Wall -c opendevice.c
/bin/sh: libusb-config: command not found
In file included from opendevice.c:18:
opendevice.h:26:77: error: usb.h: No such file or directory
In file included from opendevice.c:18:
opendevice.h:29: error: expected ‘)’ before ‘*’ token
opendevice.h:40: error: expected ‘)’ before ‘*’ token
opendevice.c:86: error: expected ‘)’ before ‘*’ token
opendevice.c:116: error: expected ‘)’ before ‘*’ token
make: *** [opendevice.o] Error 1
I even tried to find the necessary files that have to be included by hand and to include them, which didn't work out either. Was anyone able to build the commandline examples on an os x? And if, what could i do to overcome those problems?
Thanks a lot in advance, best regards,
Roman