Hi, I am trying to make a rpm package for LTIB of a software which uses autotools.
The goal is to try not to modify the config files by hand and to generate everything with the famous ./configure and make steps in the RPM spec file. In my RPM file, I have: %Build which gcc ./configure --host=arm-linux --disable-libudev --enable-libusb (Note: I use which gcc to make sure the right gcc is used). The configure script calls the RPM tools to know if libusb is installed on the target machine (in the rootfs). .... checking for strlcat... no checking for inline... inline checking for -fvisibility=hidden... yes checking for dlopen in -ldl... yes checking for socket in -lsocket... no /opt/freescale/ltib/usr/bin/pkg-config checking for LIBUSB... no As you can see, the right ltib tools are called (pkg-config is displayed because I added echo $PKG_CONFIG in the configure script). Despite the fact that libusb has been installed then I always get a "not installed libusbd" by the package manager. I tried to play with /opt/freescale/ltib/usr/bin/pkg-config --exists --print-errors libusb-1.0 but always get this error: Package libusb was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb' found Maybe it is not a LTIB related question but I would like to know if we can rely on the pkg-config program to know if a package has been installed with LTIB. Regards, Franz
_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
