Quote |
Just to get even more off-topic.... what do you do when pkg-config fails as it can't find the .pc files? I have been trying to compile the lastest gtkam & running into numerous problems with pkg-config when executing the configure scripts for gtkam, gphoto & the libraries they depend on (e.g. libexif etc). |
Code Sample |
$ export PKG_CONFIG_PATH=/opt/myapp1/lib/pkgconfig:/opt/myapp2/lib/pkgconfig:/opt/myapp3/lib/pkgconfig |
Code Sample |
$ export CPPFLAGS="-I/opt/myapp1/include -I/opt/myapp2/lib" $ export LDFLAGS="-L/opt/myapp1/include -L/opt/myapp2/lib" |
Code Sample |
$ ./configure --prefix=/opt/myapp --xincludes=/opt/myapp/include --xlibs=/opt/myapp/lib |
Code Sample |
$ export XMLCFLAG=-I/opt/myapp/include $ export XMLLDFLAG=-L/opt/myapp/lib |
Code Sample |
config.status: creating po/Makefile ./configure: line 1: srcdir: command not found Configuration (libexif-gtk): Source code location: Version: 0.3.5 Compiler: gcc libexif: < 0.6.12 (think about upgrading) dsl@box:/mnt/hda/libexif-gtk-0.3.5$ |
Code Sample |
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -o libexif-gtk.la -rpath /usr/local/lib -version-info 5:0:0 gtk-exif-browser.lo gtk-exif-content-list.lo gtk-exif-entry.lo gtk-exif-entry-ascii.lo gtk-exif-entry-copyright.lo gtk-exif-entry-date.lo gtk-exif-entry-generic.lo gtk-exif-entry-flash.lo gtk-exif-entry-number.lo gtk-exif-entry-option.lo gtk-exif-entry-rational.lo gtk-exif-entry-resolution.lo gtk-exif-entry-user-comment.lo gtk-exif-entry-version.lo ../gtk-extensions/libgtk-extensions.la -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lexif -lm libtool: link: cannot find the library `/usr/lib/libXrender.la' make[2]: *** [libexif-gtk.la] Error 1 make[2]: Leaving directory `/mnt/hda/libexif-gtk-0.3.5/libexif-gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/hda/libexif-gtk-0.3.5' make: *** [all] Error 2 dsl@box:/mnt/hda/libexif-gtk-0.3.5$ |
Quote |
libXrender seems to be in /usr/X1R6/lib |
Quote |
In fact (not to get too far off topic), I realised that I should probably remove the headers/pc files for the compile utilities that are not in the dsl base (textinfo, bison, flex, etc). |
Code Sample |
$ ls /opt/compile-3.3.5/lib/pkgconfig freetype2.pc glib.pc gthread.pc libpng.pc libpng12.pc gdk.pc gmodule.pc gtk+.pc libpng10.pc openssl.pc |