On Fri, Apr 20, 2012 at 2:46 AM, Ron Eggler wrote: > Hi There, > > I want to compile pyusb as part of a buildroot environment for an ARM > processor. How do I tell it to compile with libusb-compat support? Asking > because there's a driver that wants PyUSB 0.4.x and libusb 0.1.12 (but I need > a newer libusb due to usb_modeswitch). Any ideas?
Hi, You don't compile with libusb-compat support. An application (like pyusb 0.4.x) simply builds against the libusb-0.1 interface, and at run-time it links either a libusb-0.1 "real" library or a libusb-compat library. Normally you only have one of these installed. If you have both installed, it depends on the run-time linker which one is picked (see ld.so.conf or LD_LIBRARY_PATH). If your doing static builds, the one that the build linker picks will be included. If you have both on your machine, you can massage the -L options (e.g. through LDLIBS in makefiles) to search the right directories first. On typical Linux distributions, the package management assures that only one of them is installed. Tormod > Thank you!1 > Ron > > -- > Ron Eggler > Senior Systems Engineer > > SemiosBIO > Discovery Parks Vancouver > 887 Great Northern Way > Vancouver, BC > V5T 1E2 > cell: 778 230 9442 > www.semiosbio.com > regg...@semiosbio.com > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users