[yocto] Cannot Compile Application in Eclipse IDE Juno

Georgescu, Alexandru C alexandru.c.georgescu at intel.com
Fri Nov 9 09:23:30 PST 2012


ADT installs by default not only the toolchain, but also the sysroot (ADT have to be configured and installed by matching your target architecture). It asks you where to install the tooclhain, but the sysroot is installed by default in this location: YOCTOADT_TARGET_SYSROOT_LOC_arm="$HOME/test-yocto/arm".
That parameter can be found in adt-installer/adt_installer.conf.

Basically, to deploy an app to your target using Eclipse, you have to specify 3 parameters:
 "Toolchain Root Location", "Sysroot location" and configure the Target options.

Use the "Toolchain Root Location" as location where you have installed the ADT, and the Sysroot Location as specified in the adt_installer.conf. ADT needs the first two params in order to build you app locally.

"runqemu-extract-sdk" is used to extract the qemu tarball that can be used as sysroot location. More details about the ADT tools are found at the same location: http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html.

Regards,
--
Alexandru Georgescu

From: Sean Liming [mailto:sean.liming at annabooks.com]
Sent: Friday, November 09, 2012 18:38
To: Georgescu, Alexandru C; yocto at yoctoproject.org
Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno


Do I have to use Qemu? Can I use my target's rootfs?

If I can use my target's rootfs, how do I extract the SDK? runqemu-extract-sdk?

Regards,

Sean Liming
Owner
Annabooks
Tel: 714-970-7523 / Cell: 858-774-3176

From: Georgescu, Alexandru C [mailto:alexandru.c.georgescu at intel.com]<mailto:[mailto:alexandru.c.georgescu at intel.com]>
Sent: Friday, November 09, 2012 8:21 AM
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Cc: Sean Liming
Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno

Hi Sean,
There may be a problem with your sysroot setup. Please make sure you have set it correctly by following the tutorial from here: http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html#extracting-the-root-filesystem

Regards,
--
Alexandru Georgescu

From: yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org> [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Sean Liming
Sent: Friday, November 09, 2012 08:37
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: [yocto] Cannot Compile Application in Eclipse IDE Juno


Yocto 1.3 Danny
Target: n450 Black Sand
Eclipse: Juno C/C++ Developers

After going through the steps to setup the ADT and Eclipse plugin, I am trying to compile the Hello World application based on the Hello World ANSI C Autotools Project type. I think I have the ADT Preference set correctly. It is not complaining about a missing tool chain.

Compiling results in errors:

Compiler cannot create executable in /home/sean/workspace/HelloADT - Configuration problem
Make *** No rules to make target 'all' - C/C++ problem

What am I missing?

Regards,

Sean

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121109/97bbd766/attachment.html>


More information about the yocto mailing list