Trying to compile logitech_applet on amd64 and ebuild is unable to find libusb. Reproducible: Always Steps to Reproduce: 1.emerge logitech_applet 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/logitech-applet-0.4_pre1 to / >>> md5 files ;-) logitech-applet-0.4_pre1.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/digest-logitech-applet-0.4_pre1 >>> md5 src_uri ;-) logitech_applet-0.4test1.tar.gz >>> Unpacking source... >>> Unpacking logitech_applet-0.4test1.tar.gz to /var/tmp/portage/logitech-applet-0.4_pre1/work >>> Source unpacked. ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-libusb-libraries=/usr/lib64/ configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3 checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes checking for usb_init in -lusb... no ERROR! libusb library not found, get it from http://libusb.sourceforge.net or use the --with-libusb-libraries option, if you have it installed Expected Results: Finds libusb and compiles cleanly. Tried adding this to ebuild: src_compile() { econf --with-libusb-libraries=/usr/lib64/ || die "Error econf failed!" } but same result. Noticed libusb has a libusb-config program, but don't know how to use with ebuild.
what version of liusb do u have installed? it compiles ok with 0.1.8 on my system.
The ebuild continues and compiles fine. I'ts the configuration that doesn't recognize the libusb library location. (I'm using libusb-0.1.8 also) Are you on a 64 bit system also?
yep, it works without any problem. i also asked another dev to tried and it also compiled fine. try to reemerge libusb. either 0.1.8 or 0.1.10a a see if it solved the problem.
Initial rebuild of libusb and then logitech_applet didn't change result. But now latest try finds libusb. Maybe recent addition of several amd64 packages and updating paths and environmental variables fixed the problem and it was only specific to my system. Please mark fixed.