Cross compiling.
Mark Atwood
fallenpegasus at gmail.com
Sat Feb 13 12:31:16 UTC 2016
This is excellent news! Thank you Amar. Please figure out the best place
in the existing docs to put "howto cross compile", and put it there.
On this note, we are now going to start the process of releasing 0.9.2 next
week.
On Fri, Feb 12, 2016 at 11:11 AM Amar Takhar <verm at darkbeer.org> wrote:
> On 2016-02-12 11:02 -0800, Hal Murray wrote:
>
> > I think there are two things I'm looking for. One is the concepts. The
> > other is the details. Text that I can cut/paste cover the details. It
> > probably takes a sentence or two to explain the concept.
> >
> > It can be as simple as "Install the compiler" to decode things like
> > "gcc-arm-linux-gnu". But is it really just the compiler or does that
> package
> > also include other tools? It may take a bit of background info on the
> target
> > environment to set things up.
> >
> > If you have an example worked out for Ubuntu, I can probably find the
> > corresponding packages on other distros/OSes. That's assuming that I'll
> have
> > to go through the same steps but some of the names have changed. In the
> > simple case, somebody could cover another distro/OS by adding a set of
> > cut-paste steps.
>
> Cross compiling isn't that easy. It's a moving target and every operating
> system does it in a very different way. Some are for embedded boards,
> others
> only partially carry over what's needed.
>
> This one on Ubuntu is the only one I've used that has worked out of the box
> flawlessly for binaries I've never actually experienced that before on any
> OS I
> was surprised.
>
> I don't want to go down the road of having to maintain this sort of
> documentation it will be a huge burden. Anyone who is wanting to cross
> compile
> will already know what they're doing...or should.
>
>
> > > waf configure --cross-compiler=arm-linux-gnueabihf-gcc
> >
> > Where do the header files and libraries come from?
>
> This is beyond our scope. We can't explain how to setup a cross compiling
> environment to our users. There are thousands of documents out there that
> do
> just that.
>
> All we need to document is how to cross compile waf in your environment.
>
>
> > What does "waf install" do?
>
> Same as any install you tell it the prefix and install it there is nothing
> special about it.
>
>
> > > It built fine. No OpenSSL or libevent2. I built those later using
> the same
> > > compiler and it all worked as expected.
> >
> > What did you do to get OpenSSL or libevent2?
>
> Same as you would on any operating system. This is up top the user to
> figure
> out.
>
>
> > > OK.. if anyone has any suggestions where the docs should go I can write
> > > something.
> >
> > devel/HOWTO-cross
>
> I would literally put this into that document:
>
>
> Setup a cross compile environment for your architecture.
>
> Run waf configure with --enable-cross=/path/to/your/cross/cc
>
> There are also --cross-cflags and --cross-ldflags to supply the cross
> compiler
> with appropriate values.
>
> You may need to install dependencies in order to get a full build.
>
>
> Amar.
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20160213/c700b790/attachment.html>
More information about the devel
mailing list