From: "Klauer, Daniel" <Daniel.Klauer@gin.de>
To: Jean-Fabien Arnaud <jean-fabien.arnaud@src-solution.com>,
"poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: Cross compilation - Could not find lua libs
Date: Thu, 9 Jun 2016 07:36:27 +0000 [thread overview]
Message-ID: <1465457787001.74413@gin.de> (raw)
In-Reply-To: <4B09C702-BFE0-4848-8F40-D0AA14FCB5E1@src-solution.com>
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
Hello,
in my experience it was also necessary to specify things like CMAKE_FIND_ROOT_PATH, otherwise cmake didn't find libraries in the poky SDK sysroot (also see cmake cross-compiling documentation). Here's what I've been using for cross-compiling with a poky SDK installed to /opt/poky/<version>:
source /opt/poky/<version>/environment-setup-*
cmake <srcdir> \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_FIND_ROOT_PATH=/opt/poky/<version>/sysroots/<target> \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
Another important detail is that the poky SDK must include all the *-dev packages needed.
Regards,
Daniel
[-- Attachment #2: Type: text/html, Size: 1894 bytes --]
next prev parent reply other threads:[~2016-06-09 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-08 14:30 Cross compilation - Could not find lua libs Jean-Fabien Arnaud
2016-06-09 7:36 ` Klauer, Daniel [this message]
2016-06-16 3:05 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465457787001.74413@gin.de \
--to=daniel.klauer@gin.de \
--cc=jean-fabien.arnaud@src-solution.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.