From: Phil C. <pb...@in...> - 2004-04-18 16:16:31
|
By following a suggestion from Joshua Pinter, I fixed this problem by installing libusb 0.1.7 instead of libusb 0.1.8. Everything compiled and linked fine with 0.1.7. > -----Original Message----- > From: hpo...@li... > [mailto:hpo...@li...] On Behalf Of > Joe Piolunek > Sent: Wednesday, April 14, 2004 4:18 PM > To: hpo...@li... > Subject: Re: [hpoj-devel] Make install - undefined reference > to `usb_init' > > On Wednesday 14 April 2004 11:36, Phil Clay wrote: > > > From the output you posted, it looks like ExMgr.cpp compiled > > > without errors, > > > but can not be linked. In case 'ldconfig' was not rerun after > > > installing > > > libusb, try running it again. If you installed libusb into > > > /usr/local/lib or > > > some directory tree other than /usr, try adding the > library location > > > to /etc/ld.so.conf, then run ldconfig afterward. > > > > > > > > > -- > > > Joe > > > > Thanks for helping me on this. Unfortunately, after > running ldconfig, it > > still does not link. I even rebooted just for fun. I > installed libusb > > into /usr/local/lib, and that is definitely in > /etc/ld.so.conf, so I'm not > > sure what's going on. > > > > What files specifically is it looking for when it links? I > should verify > > that they are available. > > I'm not sure, but I think ld will be looking for libusb.so, > which should be a > symlink to the actual shared library file you have. > > On my system (FC1): > > ls -l /usr/lib/libusb* > <...> > /usr/lib/libusb.so -> libusb-0.1.so.4.3.0 > > > > > Any other ideas? > > In the hpoj-0.91 directory, try running the ./configure > script again after > running "make distclean". Rerun ./configure with the option > "--with-libusb=/usr/local" (without the quotes). Adding that > configure > option should result in a g++ linking command that looks > something like this: > > g++ -L/usr/local/lib -lusb -o ptal-mlcd ExMgr.o ParPort.o > transport/ExTransport.o transport/ExMlcTransport.o > transport/ExMlcCommandChannel.o > > As a last resort, you could try adding symlinks in /usr/lib > and /usr/include > that point to your libusb and usb.h respectively. > > -- > Joe > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > hpoj-devel mailing list > hpo...@li... > https://lists.sourceforge.net/lists/listinfo/hpoj-devel > |