June 2017
Intermediate to advanced
478 pages
13h 14m
English
Tracking package dependencies is quite complex. The package configuration utility pkg-config (https://www.freedesktop.org/wiki/Software/pkg-config/) helps track which packages are installed and which compile flags each needs by keeping a database of Autotools packages in [sysroot]/usr/lib/pkgconfig. For instance, the one for SQLite3 is named sqlite3.pc and contains essential information needed by other packages that need to make use of it:
$ cat $(arm-cortex_a8-linux-gnueabihf-gcc -print-sysroot)/usr/lib/pkgconfig/sqlite3.pc# Package Information for pkg-configprefix=/usrexec_prefix=${prefix}libdir=${exec_prefix}/libincludedir=${prefix}/includeName: SQLiteDescription: SQL database engineVersion: 3.8.11.1Libs: -L${libdir} ...Read now
Unlock full access