Closed deedos closed 10 years ago
Can you paste errors? I used libusbx to compile and link against.
I also working on some major refactor to make the cancellations work and add some remote control features.
hi
with libusb-dev libusb-1-0-0-dev and libusb++-dev installed , after make, i get:
gcc -g -O3 -lpthread -lm bmd-streamer.c -o bmd-streamer
bmd-streamer.c:21:20: fatal error: libusb.h: Arquivo ou diretório não encontrado
compilation terminated.
make: \ [bmd-streamer] Erro 1
thanks
Looks like the libusb flags are not found. Maybe the distribution has different pkgconfig file name than what I had. The makefile uses: LIBUSB_FLAGS += $(shell pkgconf --cflags --libs libusb-1.0)
You might try changing 'libusb-1.0' to 'libusb'. Oh, and it's likely pkg-config and not pkgconf on "regular" distributions. Try changing that line to: LIBUSB_FLAGS += $(shell pkg-config --cflags --libs libusb-1.0) or LIBUSB_FLAGS += $(shell pkg-config --cflags --libs libusb)
that might fix the issue.
The pkg-config and libusb-1.0 combination did the trick for getting libusb.h , however, now I have this whan trying to make:
gcc -g -O3 -I/usr/include/libusb-1.0 -lusb-1.0 -lpthread -lm bmd-streamer.c -o bmd-streamer
bmd-streamer.c:788:68: error: unknown type name ‘libusb_hotplug_event’
bmd-streamer.c: In function ‘main’:
bmd-streamer.c:826:2: error: unknown type name ‘libusb_hotplug_callback_handle’
bmd-streamer.c:844:3: error: ‘LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED’ undeclared (first use in this function)
bmd-streamer.c:844:3: note: each undeclared identifier is reported only once for each function it appears in
bmd-streamer.c:845:3: error: ‘LIBUSB_HOTPLUG_ENUMERATE’ undeclared (first use in this function)
bmd-streamer.c:847:3: error: ‘LIBUSB_HOTPLUG_MATCH_ANY’ undeclared (first use in this function)
bmd-streamer.c:849:3: error: ‘handle_hotplug’ undeclared (first use in this function)
make: \ [bmd-streamer] Erro 1
Fotgot to mention I 'm using debian wheezy 64 bits
thanks again
I suppose libusb is too old. Seems libusb 1.0.16 is the first version where hotplug is supported. libusbx is ok too.
Very nice . compiling https://github.com/libusbx/libusbx from source did the trick! maybe is good to remark that in the README ?
thanks
2014/1/24 Timo Teräs notifications@github.com
I suppose libusb is too old. Seems libusb 1.0.16 is the first version where hotplug is supported. libusbx is ok too.
— Reply to this email directly or view it on GitHubhttps://github.com/fabled/bmd-tools/issues/1#issuecomment-33217443 .
Daniel Roviriego (21) 35920701 (21) 99561654
Hi. Could you give us further compiling instructions ? I had erros with libusb.h and after changing the header location it found other problems with libusb. thanks and congrats for the code (many linux users with atem will love and use that!)