pkg-config fails to find package under sysroot directory

Anders Feder anders at feder.dk
Thu Feb 9 22:57:13 PST 2012


I figured it out - I need to set PKG_CONFIG_LIBDIR. Cheers.

On 10-02-2012 02:54, Anders Feder wrote:
>
> Hi,
>
> Can anyone please tell me why this might fail:
>
> |afeder at ubuntu:~/android/toolchain/sysroot$ ls 
> $PKG_CONFIG_SYSROOT_DIR/usr/local/lib/pkgconfig/mozjs185.pc
> /home/afeder/android/toolchain/sysroot/usr/local/lib/pkgconfig/mozjs185.pc
>
> afeder at ubuntu:~/android/toolchain/sysroot$ pkg-config mozjs185 --cflags
> Package mozjs185 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `mozjs185.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'mozjs185' found
>
> |
>
> According to the man page of pkg-config,|/usr/local/lib/pkgconfig|is 
> supposed to be one of the default search paths, so I assume I should 
> /not/ have to add it to PKG_CONFIG_PATH?
>
> Thank you.
>
> Anders Feder
>
>
>
>
> _______________________________________________
> pkg-config mailing list
> pkg-config at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pkg-config

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20120210/ef4f246d/attachment.htm>


More information about the pkg-config mailing list