From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail14c40.carrierzone.com (mail14c40.carrierzone.com [209.235.156.154]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D29B0E0045D for ; Fri, 9 Nov 2012 19:50:28 -0800 (PST) X-Authenticated-User: sean.liming.annabooks.com Received: from Sean7 (cpe-76-95-171-22.socal.res.rr.com [76.95.171.22]) (authenticated bits=0) by mail14c40.carrierzone.com (8.13.6/8.13.1) with ESMTP id qAA3oMwG026381; Sat, 10 Nov 2012 03:50:24 +0000 From: "Sean Liming" To: "'Zhang, Jessica'" , "'Georgescu, Alexandru C'" , References: <000301cdbe44$ace11c60$06a35520$@annabooks.com> <1FFB62CE8AEB0D4298B51122D8903E961672353D@IRSMSX104.ger.corp.intel.com> <000801cdbe98$853b87f0$8fb297d0$@annabooks.com> <1FFB62CE8AEB0D4298B51122D8903E96167235DC@IRSMSX104.ger.corp.intel.com> <000001cdbea3$68797770$396c6650$@annabooks.com> <000a01cdbeb7$f4fdaa90$def8ffb0$@annabooks.com> In-Reply-To: Date: Fri, 9 Nov 2012 19:50:11 -0800 Message-ID: <003b01cdbef6$7d7c41e0$7874c5a0$@annabooks.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQG9bfGi26p8VNfKL2nIUFx5vEz9OAGkEAe3AieW7boBwJ3FUwJZEWm7AcZLdVICql/0j5egXqag X-CSC: 0 X-CHA: v=2.0 cv=B7sOJpRM c=1 sm=1 a=RqNIojzclRO/fVsPhA7IgQ==:17 a=22GXwuBOM20A:10 a=_DgR7O7FQkkA:10 a=IjdlZ_XXAAAA:8 a=56imOTf_6jMA:10 a=QyXUC8HyAAAA:8 a=iGHA9ds3AAAA:8 a=cJcgmC_l19eEqgfImCwA:9 a=CjuIK1q_8ugA:10 a=FCaQVidmf_IA:10 a=nHK3ipOpxeAA:10 a=DWcHd_tN-00A:10 a=dGJ0OcVc7YAA:10 a=XDKM753qmDAA:10 a=PAfwrr6pMpkA:10 a=RPAGXu7llwVRpGeg:21 a=V_fDef7d3u_3j3mT:21 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=vsuTaV_EfU6jb-UviOYA:9 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 a=NWVoK91CQyQA:10 a=gIxvzuEv9Q_0OMkN:21 a=RqNIojzclRO/fVsPhA7IgQ==:117 X-CTCH-SenderID: 76.95.171.22 X-CTCH-SenderID-TotalMessages: X-CTCH-SenderID-TotalSpam: X-CTCH-SenderID-TotalSuspected: X-CTCH-SenderID-TotalBulk: X-CTCH-SenderID-TotalConfirmed: X-CTCH-SenderID-TotalRecipients: X-CTCH-SenderID-TotalVirus: Subject: Re: Cannot Compile Application in Eclipse IDE Juno X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2012 03:50:29 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003C_01CDBEB3.6F5D6EB0" Content-Language: en-us ------=_NextPart_000_003C_01CDBEB3.6F5D6EB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Jessica, Trying to follow two different documentations that reference each other and a video on an older ADT and Eclipse versions is a bit of a challenge to get things setup. I am testing different approaches on my own in order to get a better understanding of what is going on. So to be clear: 1. Download the ADT 1.3 installer 2. Extract the install, don't make any changes to the adt-install.conf file - just install the ARM 3. Run the ADT installer, which should install the tool chain 4. Download the core-image-sato-sdk 1.3 image 5. Use the runqemu-extract-sdk to extract to the sysroot defined by ADT installer 6. Open Eclipse and point to the defaults Is this correct? Regards, Sean Liming Owner Annabooks Tel: 714-970-7523 / Cell: 858-774-3176 From: Zhang, Jessica [mailto:jessica.zhang@intel.com] Sent: Friday, November 09, 2012 1:19 PM To: Sean Liming; Georgescu, Alexandru C; yocto@yoctoproject.org Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno Hi Sean, ADT support all 4 architectures (x86, arm, ppc and mips). By reading your steps on how did you set up your cross development environment, seems there's confusion there. Can you stick with one method at the time so it's easier for us to help on resolving your issue? Can you download the toolchain for 1.3 release and install your toolchain using it? For 1.3 we made toolchain relocatable, so you should be able to install it to a meaningful place to you. After install your toolchain, can you download our 1.3 core-image-sato-sdk image and extract it using runqemu-extract-sdk and using the output directory as your sysroot in Eclipse. And see whether you can build the helloworld sample program. If everything works, that means your steps of setting up the cross-development environment is correct. Then you can switch to your n450 image as sysroot and see whether there's problem. If so, we have to debug that issue. Thanks, Jessica From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Sean Liming Sent: Friday, November 09, 2012 9:23 PM To: Georgescu, Alexandru C; yocto@yoctoproject.org Subject: Re: [yocto] Cannot Compile Application in Eclipse IDE Juno 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-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Sean Liming Sent: Friday, November 09, 2012 9:55 AM To: 'Georgescu, Alexandru C'; 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.georgescu@intel.com] Sent: Friday, November 09, 2012 9:24 AM To: Sean Liming; 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.liming@annabooks.com] Sent: Friday, November 09, 2012 18:38 To: Georgescu, Alexandru C; 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.georgescu@intel.com] Sent: Friday, November 09, 2012 8:21 AM To: 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#extracti ng-the-root-filesystem Regards, -- Alexandru Georgescu From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Sean Liming Sent: Friday, November 09, 2012 08:37 To: 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 ------=_NextPart_000_003C_01CDBEB3.6F5D6EB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Jessica,

 

Trying to follow two = different documentations that reference each other and a video on an = older ADT and Eclipse versions is a bit of a challenge to get things = setup. I am testing different approaches on my own in order to get a = better understanding of what is going on.

 

So to be = clear:

 

1.       = Download = the ADT 1.3 installer

2.       = Extract the = install, don’t make any changes to the adt-install.conf file = – just install the ARM

3.       = Run the ADT = installer, which should install the tool chain

4.       = Download = the core-image-sato-sdk 1.3 image =

5.       = Use the = runqemu-extract-sdk to extract to the sysroot defined by ADT = installer

6.       = Open = Eclipse and point to the defaults

 

Is this = correct?

 

Regards,

 

Sean = Liming

Owner

Annabooks

Tel: 714-970-7523 / = Cell: 858-774-3176

 

From:= = Zhang, Jessica [mailto:jessica.zhang@intel.com]
Sent: Friday, = November 09, 2012 1:19 PM
To: Sean Liming; Georgescu, = Alexandru C; yocto@yoctoproject.org
Subject: RE: [yocto] = Cannot Compile Application in Eclipse IDE = Juno

 

Hi Sean,

 

ADT support all 4 = architectures (x86, arm, ppc and mips).  By reading your steps on = how did you set up your cross development environment, seems = there’s confusion there.  Can you stick with one method at = the time so it’s easier for us to help on resolving your = issue?  Can you download the toolchain for 1.3 release and install = your toolchain using it?  For 1.3 we made toolchain relocatable, so = you should be able to install it to a meaningful place to you.  =

 

After install your = toolchain, can you download our 1.3 core-image-sato-sdk image and = extract it using runqemu-extract-sdk and using the output directory as = your sysroot in Eclipse.  And see whether you can build the = helloworld sample program.  If everything works, that means your = steps of setting up the cross-development environment is correct.  = Then you can switch to your n450 image as sysroot and see whether = there’s problem.  If so, we have to debug that = issue.

 

 

Thanks,

Jessica

 

From:= = yocto-bounces@yoctoproject= .org [mailto:yocto-bounces@yocto= project.org] On Behalf Of Sean Liming
Sent: Friday, = November 09, 2012 9:23 PM
To: Georgescu, Alexandru C; yocto@yoctoproject.org
S= ubject: Re: [yocto] Cannot Compile Application in Eclipse IDE = Juno

 

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-bounces@yoctoproject= .org [mailto:yocto-bou= nces@yoctoproject.org] On Behalf Of Sean = Liming
Sent: Friday, November 09, 2012 9:55 AM
To: = 'Georgescu, Alexandru C'; yocto@yoctoproject.org
S= ubject: 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=3D”x86_64”

QEMU and = NFS are set to Y

YOCTOADT_ROOTFS_x86_64=3D”sato-sdk”

YOCTOADT_TARGET_SYSROOT_IMAGE_ = x86_64=3D”sato-sdk”

YOCTOADT_TARGET_SYSROOT_LOC_ = x86_64=3D”$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= scu@intel.com]
Sent: Friday, November 09, 2012 9:24 = AM
To: Sean Liming; yocto@yoctoproject.org
S= ubject: 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=3D"$HOME/test-yocto/arm".<= /o:p>

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,

 

From:= = Sean Liming [mailto:sean.liming@annabooks.co= m]
Sent: Friday, November 09, 2012 18:38
To: = Georgescu, Alexandru C; yocto@yoctoproject.org
S= ubject: 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:alexandr= u.c.georgescu@intel.com]
Sent: Friday, November 09, 2012 = 8:21 AM
To: yocto@yoctoproject.org
C= c: 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/curre= nt/adt-manual/adt-manual.html#extracting-the-root-filesystem

 

Regards,

--

Alexandru = Georgescu

 

From:= = yocto-bounces@yoctoproject= .org [mailto:yocto-bounces@yocto= project.org] On Behalf Of Sean Liming
Sent: Friday, = November 09, 2012 08:37
To: yocto@yoctoproject.org
S= ubject: [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 =

 

------=_NextPart_000_003C_01CDBEB3.6F5D6EB0--