[oe] how to specify alternative library locations from recipes using cmake

Khem Raj raj.khem at gmail.com
Thu Jan 26 02:11:02 UTC 2012


On Wed, Jan 25, 2012 at 11:24 AM, Greg Kogut <gkogut at yahoo.com> wrote:
> I hope this isn't too much of a n00b question.
>
> I've developed a dozen new recipes (which I'll submit once they're stable), most of which use cmake.
>
> Some of them install libraries to alternative library locations, e.g. '/opt/myprog/lib'.   This works correctly, and I've verified the libraries are installed to the correct locations in the filesystem image.
>
> However, while building binaries dependent on these new libraries, also using cmake, cmake tries to point the linker to these directories on the host machine, not the cross-compiler filesystem.  With predictable results.
>
> What is the correct practice for correctly guiding cmake to the right location?  I've searched the existing recipes which use cmake without finding anything.
>

Does adding something like
set( CMAKE_LIBRARY_PATH ${libdir} /opt/myprog/lib)
to classes/cmake.bbclass help

> Regards,
> Greg
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list