|
From: Pete B. <pb...@gm...> - 2010-10-02 17:06:54
|
On 2010.10.02 16:28, chemelli wrote: > autogen.sh will all take care of installing static lib ? The autogen.sh script itself doesn't install the libraries, but it helps creating a Makefile that has a "make install" feature, by calling configure. If you run "make install" after libusb has been compiled, it should follow the default procedure for the installation of libraries on UNIX-like systems and copy the static and dynamic library to /usr/local/lib, which is the default destination. Note that it is up to you to change the --prefix option if the default from "make install" doesn't suit your system's needs. Eg. if you want the libraries to be copied in /usr/lib rather than /usr/local/lib, you would use --prefix=/usr. The reason we are not setting up different defaults for each platform is that package maintainers on UNIX-ike systems would always use --prefix. Also note that you don't have to re-run configure if you simply want to add extra parameters from the ones already provided in autogen. For instance, if the only thing you need is change the installation prefix, you can use "./autogen.sh --prefix=/usr" and "--prefix=/usr" will be added to the configure line. You might also be able to disable some of the default configure options by feeding them to autogen as well (eg. even though --enable-debug-log is enabled by default, if you run "./autogen.sh --disable-debug-log", forced debug logging should be turned off). Regards, /Pete |