All of lore.kernel.org
 help / color / mirror / Atom feed
* Native build tools question
@ 2011-11-28 21:17 Marc Ferland
  2011-11-28 21:46 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Ferland @ 2011-11-28 21:17 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

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?

Regards,

Marc

[-- Attachment #2: Type: text/html, Size: 733 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Native build tools question
  2011-11-28 21:17 Native build tools question Marc Ferland
@ 2011-11-28 21:46 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2011-11-28 21:46 UTC (permalink / raw)
  To: Marc Ferland; +Cc: yocto

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-28 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28 21:17 Native build tools question Marc Ferland
2011-11-28 21:46 ` Richard Purdie

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.