[yocto] eclipse-poky: Can't build from Eclipse, but command line build works

Minchev, Todor todor.minchev at intel.com
Fri Mar 13 01:58:57 PDT 2015


*snip*

> > This is a different error. There seems to be a mismatch between your
> > toolchain and rootfs. Could you please share the full name of
> > 
> > my_built_image.tar.gz from
> > 
> > runqemu-extract-sdk <my_built_image.tar.gz>
> > <sysroot_destination_directory>"
> > 
> 
> I have been able to get things to build, but not exactly in a suggested manner.  I copied the entire target sysroot directory (~/poky/poky_build/tmp/sysroots/at91sam9x5ek) to the previously mentioned sysroot destination directory.  I re-ran "bitbake meta-ide-support" just to ensure I had a clean copy.  I then modified the SDKTARGETSYSROOT to point to my copied sysroot location.  With this setup, I was able to get the project to build from Eclipse.  It's working, but it's a little ugly getting there.
> 

core-image-minimal builds a very small image, which doesn't have all
headers and libraries required to link even a simple binary

> So I'm assuming I'm starting at the wrong point for the sysroot to extract.  What do other people do? 

You have two options here:

1) Generate a standalone toolchain and sdk installer.

bitbake -c populate_sdk your_image_name

This will generate an installer script-tarball in
~/poky/poky_build/tmp/deploy/sdk/

Execute this script and follow the installation instructions. This will
extract both the toolchain and sysroot to a directory of your choice
(e.g. /opt/poky/1.6.2/).

When you configure the Yocto ADT plugin in Eclipse, select "Standalone
pre-built toolchain" before you point it to the sysroot and toolchain
directories created by the installer above. 
 

2) Base your image on one of the development images (e.g.
core-image-minimal-dev)

Cheers,
Todor



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5229 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150313/2f8b65bf/attachment.bin>


More information about the yocto mailing list