From: Joe P. <joe...@sn...> - 2004-04-14 20:18:10
|
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 |