Giter VIP home page Giter VIP logo

Comments (6)

fabled avatar fabled commented on August 14, 2024

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.

from bmd-tools.

deedos avatar deedos commented on August 14, 2024

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

from bmd-tools.

fabled avatar fabled commented on August 14, 2024

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.

from bmd-tools.

deedos avatar deedos commented on August 14, 2024

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

from bmd-tools.

fabled avatar fabled commented on August 14, 2024

I suppose libusb is too old. Seems libusb 1.0.16 is the first version where hotplug is supported. libusbx is ok too.

from bmd-tools.

deedos avatar deedos commented on August 14, 2024

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 [email protected]

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//issues/1#issuecomment-33217443
.

Daniel Roviriego
(21) 35920701
(21) 99561654

from bmd-tools.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.