I'm not much of a developer, but if the application you are trying to compile is a C/C++ program (i also used this method to find Perl missing library's), you can grep through all the .C/.h files for the '#include' lines and extract the needed library's which are needed for the application to run. then you can use the distro manager to locate the packages which provides the necessary files.
In Fedora i use yum/dnf provides "*/xyz.h" and on Debian based distro you have apt-file search -- Rabin On Tue, Apr 21, 2015 at 5:48 PM, Constantine Shulyupin < [email protected]> wrote: > Hi, > > Again I am compiling big OSS project for embedded environment and receive > a lot of errors like: > warning: libXXX, needed by YYY, not found > fatal error: XXX: No such file or directory. > undefined reference to XX > etc > > Then I look for missing packages with utilities: nm, apt-file search and > configure compilation. > > Question: > > Are there utility, which parses errors and proposes obvious solutions? > > For example, following code proposes to add missing library to LDFLAGS: > > perl -ne '/.*warning: lib(.*?)\..*, needed by .*, not found .*/ && print > "export LDFLAGS+=\" -l$1\"\n";' < config.log > > Thanks > > -- > Constantine Shulyupin > http://www.MakeLinux.co.il/ > Embedded Linux Systems > Tel Aviv > > _______________________________________________ > Linux-il mailing list > [email protected] > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > >
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
