Re: Can't find shared library libusb
On Mon, Oct 18, 2010 at 7:56 AM, Emiliano Pastorino wrote: > Thanks everyone. Now my Lego Mindstorms NXT2.0 works connected to the XO :) Must. Have. Video. :-) m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Can't find shared library libusb
> > What about "find_library('usb-1.0')"? Yes! That did the job. Thanks everyone. Now my Lego Mindstorms NXT2.0 works connected to the XO :) On Mon, Oct 18, 2010 at 5:55 AM, Tomeu Vizoso wrote: > On Fri, Oct 15, 2010 at 21:24, Emiliano Pastorino > wrote: > > Hi everyone, > > > > I'm trying to use libusb, but I'm getting this behaviour in python: > > > >>> from ctypes.util import find_library > >>> find_library('usb') > >>> > > (returned None) > > What about "find_library('usb-1.0')"? > > It's probably good that you need to specify the version in this case > because the API between 0.1 and 1.0 is likely to have changed. This is > because there's no libusb.so symlink. > > Regards, > > Tomeu > > > The strange thing is that in another XO, same build (802), it does find > the > > library: > >>> from ctypes.util import find_library > >>> find_library('usb') > >>> 'libusb-0.1-so.4' > > Both XO have this file in /usr/lib, but the first one won't find it. > > Nevertheless, it finds other libraries under /usr/lib. > > > > I've checked /etc/ld.so.conf and it's the same for both XO. > > I'm using the same version of libusb and libusb-devel, and they were > > installed with yum. > > Any tips? > > ___ > > Devel mailing list > > Devel@lists.laptop.org > > http://lists.laptop.org/listinfo/devel > > > > > -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Can't find shared library libusb
On Fri, Oct 15, 2010 at 21:24, Emiliano Pastorino wrote: > Hi everyone, > > I'm trying to use libusb, but I'm getting this behaviour in python: > >>> from ctypes.util import find_library >>> find_library('usb') >>> > (returned None) What about "find_library('usb-1.0')"? It's probably good that you need to specify the version in this case because the API between 0.1 and 1.0 is likely to have changed. This is because there's no libusb.so symlink. Regards, Tomeu > The strange thing is that in another XO, same build (802), it does find the > library: >>> from ctypes.util import find_library >>> find_library('usb') >>> 'libusb-0.1-so.4' > Both XO have this file in /usr/lib, but the first one won't find it. > Nevertheless, it finds other libraries under /usr/lib. > > I've checked /etc/ld.so.conf and it's the same for both XO. > I'm using the same version of libusb and libusb-devel, and they were > installed with yum. > Any tips? > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Can't find shared library libusb
On Fri, Oct 15, 2010 at 05:24:30PM -0200, Emiliano Pastorino wrote: > I'm trying to use libusb, but I'm getting this behaviour in python: > > >> from ctypes.util import find_library > >> find_library('usb') > >> > (returned None) I see this too on os852, on Debian, on Ubuntu 10.10, and on Fedora 11. On the other hand, cddl.LoadLibrary worked fine. An strace of find_library showed ldconfig, gcc and ld were executed, and this agrees with the documentation: http://docs.python.org/library/ctypes.html#finding-shared-libraries -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Can't find shared library libusb
Hi everyone, I'm trying to use libusb, but I'm getting this behaviour in python: >> from ctypes.util import find_library >> find_library('usb') >> (returned None) The strange thing is that in another XO, same build (802), it does find the library: >> from ctypes.util import find_library >> find_library('usb') >> 'libusb-0.1-so.4' Both XO have this file in /usr/lib, but the first one won't find it. Nevertheless, it finds other libraries under /usr/lib. I've checked /etc/ld.so.conf and it's the same for both XO. I'm using the same version of libusb and libusb-devel, and they were installed with yum. Any tips? ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel