<div dir="ltr"><div><div>Thanks for the input !<br><br>The idea was that we have the
build directory for building our project + full image, so everything is
already there, already setup, all the tools+libraries etc. <br>If a new
dependency is added, your environment is updated during bitbaking the
project, so everything is updated "automatically" when you are going to
build outside.<br>Generating a installer and then installing that in
some other location involves extra, manual steps. Also if dependencies
are added, you have to manually generate it again and install it. <br>So
it didn't look that simple when we started the project, and using the
toolchain derived from the build directory was more "natural"... - But
this seems to not work anymore.<br>As I remember that build directory toolchain (build/tmp/environment-setup-<wbr>cortexa5hf-neon-poky-linux-<wbr>gnueabi)
was also used and needed if one was going to use Eclipse for building a
Yocto project.(you can choose from a "Standalone Pre-built Toolchain"
or a "Build System Derived Toolchain")<br><br>But maybe, I'm missing something ... (?)<br></div>Your suggestion is to go for generating a SDK installer? Using "bitbake -c populate_sdk myimage"<br><br></div>Thanks and regards<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 5, 2018 at 8:11 PM, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2/5/18 3:25 AM, Gigi Work wrote:<br>
> What is the correct/official way to setup a toolchain derived from the<br>
> build directory - if it has everything in there and my app compiles fine<br>
> using bitbake, I don't want to create a toolchain installer and install<br>
> separately.<br>
<br>
</span>I think SDK is the standard way of exporting the build environment for<br>
external compilations. I would like to understand why would you not want<br>
doing that.<br>
<span class=""><br>
><br>
> My recipe compiles successfully using "bitbake my-recipe", but compiling<br>
> outside, fails:<br>
><br>
> First I run "bitbake meta-ide-support" and then source the environment<br>
> (build/tmp/environment-setup-<wbr>cortexa5hf-neon-poky-linux-<wbr>gnueabi)<br>
> It fails because it cannot find cmake.<br>
<br>
<br>
</span>you can also use the devtool workflow to compile your application while<br>
you are in the build environment.<br>
<br>
<a href="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html#using-devtool-in-your-sdk-workflow" rel="noreferrer" target="_blank">http://www.yoctoproject.org/<wbr>docs/2.5/sdk-manual/sdk-<wbr>manual.html#using-devtool-in-<wbr>your-sdk-workflow</a><br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> I'm using the rocko branch.<br>
><br>
> Any help is appreciated !<br>
> Thanks<br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
______________________________<wbr>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.<wbr>org/listinfo/yocto</a><br>
</font></span></blockquote></div><br></div>