Hi,
ADT works with all the architectures, but not all are installed by default. 
Your changes to the config file are okay.

One more suggestion would be to reconfigure the project after it is created, 
and after that try to build it.

Can you send the link from where you have downloaded the ADT tarball?

Thanks,
--
Alexandru Georgescu

On Nov 9, 2012, at 22:22, "Sean Liming" 
<sean.lim...@annabooks.com<mailto:sean.lim...@annabooks.com>> wrote:

Is there a step I missed? Or is the ADT only for ARM at the moment?

Regards,

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

From: yocto-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org> 
[mailto:yocto-boun...@yoctoproject.org] On Behalf Of Sean Liming
Sent: Friday, November 09, 2012 9:55 AM
To: 'Georgescu, Alexandru C'; 
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: Re: [yocto] Cannot Compile Application in Eclipse IDE Juno

I am using Intel Atom n450, not ARM. I have built three images using atom-pc 
for the BSP and core-image-sato-dev, core-image-sato, and core-image-sato-sdk 
for the base images. All the images are in the build directory. Using Hob, I 
set the Build Toolchain for each build to be x86_64 in the Advanced 
configuration. The images build and run.

To setup the application development environment


1.       Used Bitbake adt-installer – the ADT installer was in the 
tmp/deploy/sdk folder. (I also downloaded the ADT and extracted the tarball 
with the same result.)

2.       Extracted the ADT tarball.

3.       Change the adt_intstaller.conf file to

YOCTOADT_TARGETS=”x86_64”
QEMU and NFS are set to Y
YOCTOADT_ROOTFS_x86_64=”sato-sdk”
YOCTOADT_TARGET_SYSROOT_IMAGE_ x86_64=”sato-sdk”
YOCTOADT_TARGET_SYSROOT_LOC_ x86_64=”$HOME/Yocto1.3/test-yocto/x86_64”

I commented out the other settings for the ARM.


4.       Ran the ADT installer. It looks like the QEMU rootfs gets installed in 
the $HOME/Yocto1.3/test-yocto/x86_64. As a test I changed this out with the 
rootfs built from one of the images. In either case the issue was the same

5.       Installed Eclipse JUNO

6.       Setup the Eclipse plugins per instructions

7.       Setup the ADT parameters to point to the Toolchain Root Location and 
Sysroot location. An error would occur if I don’t get these right.

8.       Created the applications and tried to compile with the errors.


Am I supposed to bitbake meta-ide-support?

Regards,

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

From: Georgescu, Alexandru C [mailto:alexandru.c.george...@intel.com]
Sent: Friday, November 09, 2012 9:24 AM
To: Sean Liming; yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno

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.lim...@annabooks.com]
Sent: Friday, November 09, 2012 18:38
To: Georgescu, Alexandru C; 
yocto@yoctoproject.org<mailto:yocto@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.george...@intel.com]<mailto:[mailto:alexandru.c.george...@intel.com]>
Sent: Friday, November 09, 2012 8:21 AM
To: yocto@yoctoproject.org<mailto:yocto@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-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org> 
[mailto:yocto-boun...@yoctoproject.org] On Behalf Of Sean Liming
Sent: Friday, November 09, 2012 08:37
To: yocto@yoctoproject.org<mailto:yocto@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

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to