On Fri, Apr 20, 2012 at 8:22 PM, Ron Eggler wrote: > Hi Tormod, > > Thank you for getting back to me regarding this issue. > On April 20, 2012 08:36:39 AM Tormod Volden wrote: >> On Fri, Apr 20, 2012 at 2:46 AM, Ron Eggler wrote: > [snip] >> >> 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). > > Now I'm confused, isn't libusb-compat here to guarantee backwards > compatibility to libusb-0.10.x if libusb-1.x is installed?
Yes, exactly. I am sorry if I what I wrote could be interpreted otherwise. >> >> 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. > > I'm trying to put a buildroot environment together yhat includes libusb-1.0.8 > but is backwards compatible to libusb-0.1.12 to get the pywws driver > (http://pywws.googlecode.com/) for the weather station to work. Ok, so you install libusb-1.0.8 plus the libusb-compat library. For libusb-0.1 applications it will look the same as if you had "real" libusb-0.1 installed instead. But I think that you understand this. I obviously don't understand what you are asking for :) When you said "I need a newer version of libusb" I thought you meant libusb-1.0. Now looking at http://www.draisberghof.de/usb_modeswitch/ I see that it uses 0.1.12 and works with compat. Do you need a newer version of 0.1? You have one application that needs building with "real" 0.1.12 and another that needs the compat (tagged 0.1.14 or something)? Can't both run with compat? Then there is a bug in compat. Are you saying that pywws does not run with compat? For instance, if you have two equal systems, but one has 1.0 + compat and the other 0.1, you can compile (0.1) applications on one of them and run them on the other. Even when building on the 1.0 + compat system, the build system "sees" just 0.1. As you said, the compat library should provide full compatibility. > I seeminly got troubles to get it to work in our little embedded environment > but I can establish communication using my desktop PC that's running on > Kubuntu 11.10 (kernel 3.0.0) which was built using libusb-1.0.0. What was built using libusb-1.0.0? pywws? You mean with 1.0.0 + compat? Maybe it is better if you tell us exactly what the troubles are. > On pywws website Your message was cut off here... Regards, Tormod >> >> On typical Linux distributions, the package management assures that >> only one of them is installed. >> >> Tormod >> >> > Thank you!1 >> > Ron >> > ------------------------------------------------------------------------------ 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