From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Marc Ferland <marc.ferland@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Native build tools question
Date: Mon, 28 Nov 2011 21:46:50 +0000 [thread overview]
Message-ID: <1322516810.30225.17.camel@ted> (raw)
In-Reply-To: <CAMRMzCDqDjf3jKnGnkFeJUg8N+2gKkumA9fo0TK9ckKan8jvtQ@mail.gmail.com>
On Mon, 2011-11-28 at 16:17 -0500, Marc Ferland wrote:
> Hi,
>
> I'm currently writing a recipe for the visualization toolkit (vtk).
>
> To compile, this library invokes executables that are generated
> on-the-fly by the compilation process (a little bit like Qt and
> qmake).
>
> The path to these executables can be specified to cmake when building
> vtk. So far I was able to make it work by hard-coding this "tools"
> directory in my recipe to a path on my local machine. It works, but it
> is not very portable.
>
> What's the official way to handle such libraries?
>
> Should I first do a native build, then use this native build directory
> when cross-compiling? If so, is there any examples I should look into?
Yes, a -native recipe to build the tools and then use those native tools
in the cross built is the way to go.
Take a look at any of the recipes which have a DEPENDS on a native
version of themselves. A simple example is say, the bison recipe and the
logic is something like:
DEPENDS = "bison-native"
DEPENDS_virtclass-native = ""
BBCLASSEXTEND = "native"
(simplified slightly)
Cheers,
Richard
prev parent reply other threads:[~2011-11-28 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 21:17 Native build tools question Marc Ferland
2011-11-28 21:46 ` Richard Purdie [this message]
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=1322516810.30225.17.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=marc.ferland@gmail.com \
--cc=yocto@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.