On Sat, 2010-11-06 at 22:14 +0200, Andrew wrote: > 06.11.2010 15:17, davidMbrooke пишет: > > Hi Stefaan, > > > > On Sat, 2010-11-06 at 10:51 +0100, Stefaan Van Dooren wrote: > > > >> checking for libusb version via pkg-config... checking via > >> libusb-config... 0.1.12 found > >> checking for libusb cflags... > >> checking for libusb ldflags... -L/usr/lib -lusb > >> checking for usb.h... yes > >> checking for usb_init... no > > This is the problem - it doesn't find usb_init() so it concludes that > > libusb isn't going to work The root cause is that it is looking for > > libusb.so in /usr/lib (on the build host), which is wrong... > > > > I have modified source/nut/buildtool.mk to add --with-usb-includes and > > --with-usb-libs for the "configure" command. It works for me now, but > > then it worked for me (and Andrew) before... > > > > Could you try again please. Should be sufficient to run: > > buildtool.pl srcclean nut > > rm -rf source/nut > > buildtool.pl build nut > > > > > > dMb > As I saw in log, it also can't find snmp libraries. > P.S. Possible it'll be easier to replace all /(usr/)lib into configure > script to BT_STAGING_DIR/(usr/)lib ? I do this for one of packages via > perl regexp; but I can't remember what package I modified.. Possible, GCC. > Unfortunately for some days I will not have enough free time to do this > by myself.
Hi Andrew, What you suggest was my first thought too, but I tried it without success. The "-L/usr/lib -lusb" does not come from "configure" directly but rather as output from running $(BT_STAGING_DIR)/usr/lib/libusb-config and I don't know if we can change that without breaking other things (I think it is meant to specify the run-time library location and version, not the build-time location). I also wasn't sure if snmp was *meant* to be configured for nut - none of the .lrp's mention snmp in their "Requires" (in buildtool.cfg) and buildtool.mk specifies "--with-usb" but *not* "--with-snmp". However, net-snmp is specified as <Requires> in sources.cfg for nut so I guess it is intended... the default "configure" behaviour is to build for snmp if it is found. I have just added equivalent settings for snmp as for usb, and it builds OK for me. (If this causes a problem it will be easy enough to delete later.) The resultant /usr/bin/snmp-ups executable does not seem to be included in any package though... somebody else can fix that if they need it :-) Note that after "configure" runs, script "patch-mkfile" is used to fix up Makefile, adding $(BT_STAGING_DIR) to all of the library locations, so it is only the "configure" step which is actually a problem. dMb ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel