* Cannot Compile Application in Eclipse IDE Juno @ 2012-11-09 6:37 Sean Liming 2012-11-09 16:20 ` Georgescu, Alexandru C 0 siblings, 1 reply; 14+ messages in thread From: Sean Liming @ 2012-11-09 6:37 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 627 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 2733 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 6:37 Cannot Compile Application in Eclipse IDE Juno Sean Liming @ 2012-11-09 16:20 ` Georgescu, Alexandru C 2012-11-09 16:37 ` Sean Liming 0 siblings, 1 reply; 14+ messages in thread From: Georgescu, Alexandru C @ 2012-11-09 16:20 UTC (permalink / raw) To: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1092 bytes --] 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@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 [-- Attachment #2: Type: text/html, Size: 4622 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 16:20 ` Georgescu, Alexandru C @ 2012-11-09 16:37 ` Sean Liming 2012-11-09 17:23 ` Georgescu, Alexandru C 0 siblings, 1 reply; 14+ messages in thread From: Sean Liming @ 2012-11-09 16:37 UTC (permalink / raw) To: 'Georgescu, Alexandru C', yocto [-- Attachment #1: Type: text/plain, Size: 1658 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 6772 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 16:37 ` Sean Liming @ 2012-11-09 17:23 ` Georgescu, Alexandru C 2012-11-09 17:55 ` Sean Liming 0 siblings, 1 reply; 14+ messages in thread From: Georgescu, Alexandru C @ 2012-11-09 17:23 UTC (permalink / raw) To: Sean Liming, yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 2949 bytes --] 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]<mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org<mailto: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<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 [-- Attachment #2: Type: text/html, Size: 10284 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 17:23 ` Georgescu, Alexandru C @ 2012-11-09 17:55 ` Sean Liming 2012-11-09 20:22 ` Sean Liming 0 siblings, 1 reply; 14+ messages in thread From: Sean Liming @ 2012-11-09 17:55 UTC (permalink / raw) To: 'Georgescu, Alexandru C', yocto [-- Attachment #1: Type: text/plain, Size: 4865 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 20783 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 17:55 ` Sean Liming @ 2012-11-09 20:22 ` Sean Liming 2012-11-09 21:18 ` Zhang, Jessica 2012-11-09 21:31 ` Georgescu, Alexandru C 0 siblings, 2 replies; 14+ messages in thread From: Sean Liming @ 2012-11-09 20:22 UTC (permalink / raw) To: 'Georgescu, Alexandru C', yocto [-- Attachment #1: Type: text/plain, Size: 5317 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 19818 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 20:22 ` Sean Liming @ 2012-11-09 21:18 ` Zhang, Jessica 2012-11-10 3:50 ` Sean Liming 2012-11-09 21:31 ` Georgescu, Alexandru C 1 sibling, 1 reply; 14+ messages in thread From: Zhang, Jessica @ 2012-11-09 21:18 UTC (permalink / raw) To: Sean Liming, Georgescu, Alexandru C, yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 6827 bytes --] 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> [mailto:yocto-bounces@yoctoproject.org]<mailto:[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<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.georgescu@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.liming@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.georgescu@intel.com]<mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org<mailto: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<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 [-- Attachment #2: Type: text/html, Size: 23639 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 21:18 ` Zhang, Jessica @ 2012-11-10 3:50 ` Sean Liming 2012-11-12 5:42 ` Zhang, Jessica 0 siblings, 1 reply; 14+ messages in thread From: Sean Liming @ 2012-11-10 3:50 UTC (permalink / raw) To: 'Zhang, Jessica', 'Georgescu, Alexandru C', yocto [-- Attachment #1: Type: text/plain, Size: 7709 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 28624 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-10 3:50 ` Sean Liming @ 2012-11-12 5:42 ` Zhang, Jessica 2012-11-13 3:40 ` Sean Liming 0 siblings, 1 reply; 14+ messages in thread From: Zhang, Jessica @ 2012-11-12 5:42 UTC (permalink / raw) To: Sean Liming, Georgescu, Alexandru C, yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 8784 bytes --] Hi Sean, If you use adt-installer then the sysroot will be setup for you. So you don't need to step 4 and 5. BTW, you do need to take a look of adt-installer.conf file to ensure the sysroot location is what you'd expected and also, the image (core-image-sato-sdk) is the one that's going to be extracted as sysroot. Also, for Eclipse, please make sure the toolchain and sysroot is matching what you've used adt-installer to set them to. Thanks, Jessica From: Sean Liming [mailto:sean.liming@annabooks.com] Sent: Friday, November 09, 2012 7:50 PM To: Zhang, Jessica; Georgescu, Alexandru C; yocto@yoctoproject.org Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno 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]<mailto:[mailto:jessica.zhang@intel.com]> Sent: Friday, November 09, 2012 1:19 PM To: Sean Liming; Georgescu, Alexandru C; yocto@yoctoproject.org<mailto: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> [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<mailto: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> [mailto:yocto-bounces@yoctoproject.org]<mailto:[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<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.georgescu@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.liming@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.georgescu@intel.com]<mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org<mailto: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<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 [-- Attachment #2: Type: text/html, Size: 31800 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-12 5:42 ` Zhang, Jessica @ 2012-11-13 3:40 ` Sean Liming 2012-11-14 0:23 ` Zhang, Jessica 0 siblings, 1 reply; 14+ messages in thread From: Sean Liming @ 2012-11-13 3:40 UTC (permalink / raw) To: Zhang, Jessica; +Cc: yocto@yoctoproject.org [-- Attachment #1.1: Type: text/plain, Size: 9465 bytes --] I left the conf file alone, and tried to build for ARM. Same result. Attached is the ADT setup and the compile error I am seeing. -- Regards, Sean D. Liming Owner Annabooks Cell: 858-774-3176 ADT preferences.jpeg JunoOutput.jpeg On 11/11/2012 09:42 PM, Zhang, Jessica wrote: > > Hi Sean, > > If you use adt-installer then the sysroot will be setup for you. So > you don't need to step 4 and 5. BTW, you do need to take a look of > adt-installer.conf file to ensure the sysroot location is what you'd > expected and also, the image (core-image-sato-sdk) is the one that's > going to be extracted as sysroot. Also, for Eclipse, please make sure > the toolchain and sysroot is matching what you've used adt-installer > to set them to. > > Thanks, > > Jessica > > *From:*Sean Liming [mailto:sean.liming@annabooks.com] > *Sent:* Friday, November 09, 2012 7:50 PM > *To:* Zhang, Jessica; Georgescu, Alexandru C; yocto@yoctoproject.org > *Subject:* RE: [yocto] Cannot Compile Application in Eclipse IDE Juno > > 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] > <mailto:[mailto:jessica.zhang@intel.com]> > *Sent:* Friday, November 09, 2012 1:19 PM > *To:* Sean Liming; Georgescu, Alexandru C; yocto@yoctoproject.org > <mailto: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> > [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 > <mailto: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> > [mailto:yocto-bounces@yoctoproject.org] > <mailto:[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 > <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.georgescu@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.liming@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.georgescu@intel.com] > <mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org > <mailto: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 <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 > [-- Attachment #1.2: Type: text/html, Size: 40850 bytes --] [-- Attachment #2: ADT preferences.jpeg --] [-- Type: image/jpeg, Size: 70189 bytes --] [-- Attachment #3: JunoOutput.jpeg --] [-- Type: image/jpeg, Size: 36990 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-13 3:40 ` Sean Liming @ 2012-11-14 0:23 ` Zhang, Jessica 2012-11-14 2:54 ` Sean Liming 0 siblings, 1 reply; 14+ messages in thread From: Zhang, Jessica @ 2012-11-14 0:23 UTC (permalink / raw) To: Sean Liming; +Cc: yocto@yoctoproject.org [-- Attachment #1.1: Type: text/plain, Size: 10373 bytes --] Hi Sean, I did the exact same step as you did and my helloworld project was able to build using the Yocto ADT cross toolchain and sysroot, please see the attached screenshot. Btw, what project did you create? I've created File->New->C Project, make sure extend "Yocto Project ADT Project" and select "Hello World ANSI C Autotools Project". After your project is created, highlight it and under Project menu you should see "Change Yocto Project Settings" and verify that your toolchain and sysroot there is also correct, which it should since it by default inherit for your Preference settings. Thanks, Jessica From: Sean Liming [mailto:sean.liming@annabooks.com] Sent: Monday, November 12, 2012 7:41 PM To: Zhang, Jessica Cc: Georgescu, Alexandru C; yocto@yoctoproject.org Subject: Re: [yocto] Cannot Compile Application in Eclipse IDE Juno I left the conf file alone, and tried to build for ARM. Same result. Attached is the ADT setup and the compile error I am seeing. -- Regards, Sean D. Liming Owner Annabooks Cell: 858-774-3176 ADT preferences.jpeg JunoOutput.jpeg On 11/11/2012 09:42 PM, Zhang, Jessica wrote: Hi Sean, If you use adt-installer then the sysroot will be setup for you. So you don't need to step 4 and 5. BTW, you do need to take a look of adt-installer.conf file to ensure the sysroot location is what you'd expected and also, the image (core-image-sato-sdk) is the one that's going to be extracted as sysroot. Also, for Eclipse, please make sure the toolchain and sysroot is matching what you've used adt-installer to set them to. Thanks, Jessica From: Sean Liming [mailto:sean.liming@annabooks.com] Sent: Friday, November 09, 2012 7:50 PM To: Zhang, Jessica; Georgescu, Alexandru C; yocto@yoctoproject.org<mailto:yocto@yoctoproject.org> Subject: RE: [yocto] Cannot Compile Application in Eclipse IDE Juno 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]<mailto:[mailto:jessica.zhang@intel.com]> Sent: Friday, November 09, 2012 1:19 PM To: Sean Liming; Georgescu, Alexandru C; yocto@yoctoproject.org<mailto: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> [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<mailto: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> [mailto:yocto-bounces@yoctoproject.org]<mailto:[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<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.georgescu@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.liming@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.georgescu@intel.com]<mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org<mailto: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<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 [-- Attachment #1.2: Type: text/html, Size: 35232 bytes --] [-- Attachment #2: buildoutput.png --] [-- Type: image/png, Size: 287919 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-14 0:23 ` Zhang, Jessica @ 2012-11-14 2:54 ` Sean Liming 0 siblings, 0 replies; 14+ messages in thread From: Sean Liming @ 2012-11-14 2:54 UTC (permalink / raw) To: Zhang, Jessica; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 11492 bytes --] Jessica, Yes, I created the same project. I went back, re-downloaded, and re-set up Eclipse, and it looks like it is working with some warnings. I am going to go back to x86. Thanks for the help. -- Regards, Sean D. Liming Owner Annabooks Cell: 858-774-3176 On 11/13/2012 04:23 PM, Zhang, Jessica wrote: > > Hi Sean, > > I did the exact same step as you did and my helloworld project was > able to build using the Yocto ADT cross toolchain and sysroot, please > see the attached screenshot. Btw, what project did you create? I've > created File->New->C Project, make sure extend "Yocto Project ADT > Project" and select "Hello World ANSI C Autotools Project". After > your project is created, highlight it and under Project menu you > should see "Change Yocto Project Settings" and verify that your > toolchain and sysroot there is also correct, which it should since it > by default inherit for your Preference settings. > > Thanks, > > Jessica > > *From:*Sean Liming [mailto:sean.liming@annabooks.com] > *Sent:* Monday, November 12, 2012 7:41 PM > *To:* Zhang, Jessica > *Cc:* Georgescu, Alexandru C; yocto@yoctoproject.org > *Subject:* Re: [yocto] Cannot Compile Application in Eclipse IDE Juno > > > I left the conf file alone, and tried to build for ARM. Same result. > Attached is the ADT setup and the compile error I am seeing. > > > -- > Regards, > > Sean D. Liming > Owner > Annabooks > Cell: 858-774-3176 > > > ADT preferences.jpeg > > JunoOutput.jpeg > > > > On 11/11/2012 09:42 PM, Zhang, Jessica wrote: > > Hi Sean, > > If you use adt-installer then the sysroot will be setup for you. > So you don't need to step 4 and 5. BTW, you do need to take a > look of adt-installer.conf file to ensure the sysroot location is > what you'd expected and also, the image (core-image-sato-sdk) is > the one that's going to be extracted as sysroot. Also, for > Eclipse, please make sure the toolchain and sysroot is matching > what you've used adt-installer to set them to. > > Thanks, > > Jessica > > *From:*Sean Liming [mailto:sean.liming@annabooks.com] > *Sent:* Friday, November 09, 2012 7:50 PM > *To:* Zhang, Jessica; Georgescu, Alexandru C; > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > *Subject:* RE: [yocto] Cannot Compile Application in Eclipse IDE Juno > > 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] > <mailto:[mailto:jessica.zhang@intel.com]> > *Sent:* Friday, November 09, 2012 1:19 PM > *To:* Sean Liming; Georgescu, Alexandru C; yocto@yoctoproject.org > <mailto: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> > [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 > <mailto: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> > [mailto:yocto-bounces@yoctoproject.org] > <mailto:[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 > <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.georgescu@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.liming@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.georgescu@intel.com] > <mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org > <mailto: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 <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 > [-- Attachment #2: Type: text/html, Size: 45734 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 20:22 ` Sean Liming 2012-11-09 21:18 ` Zhang, Jessica @ 2012-11-09 21:31 ` Georgescu, Alexandru C 2012-11-10 3:40 ` Sean Liming 1 sibling, 1 reply; 14+ messages in thread From: Georgescu, Alexandru C @ 2012-11-09 21:31 UTC (permalink / raw) To: Sean Liming; +Cc: yocto@yoctoproject.org 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.liming@annabooks.com<mailto:sean.liming@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-bounces@yoctoproject.org<mailto: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<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.georgescu@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.liming@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.georgescu@intel.com]<mailto:[mailto:alexandru.c.georgescu@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-bounces@yoctoproject.org<mailto: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<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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Cannot Compile Application in Eclipse IDE Juno 2012-11-09 21:31 ` Georgescu, Alexandru C @ 2012-11-10 3:40 ` Sean Liming 0 siblings, 0 replies; 14+ messages in thread From: Sean Liming @ 2012-11-10 3:40 UTC (permalink / raw) To: 'Georgescu, Alexandru C'; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 7409 bytes --] Alexandru, I downloaded the ADT from here: http://downloads.yoctoproject.org/releases/yocto/yocto-1.3/adt_installer per the manual - http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html section 2.1.1.1. This is what I tested first. Attached is the one I created with bitbake that is currently installed on my system. They look the same, and I get the same result. How do I do a reconfigure the project in Eclipse? The online video demonstrated the reconfigure, but I don't see this option. Just to add on to what I have below, my Yocto Project ADT preferences are: -Build System derived toolchain is checked -Toolchain Root location /home/sean/Yocto1.3/n450 - which is the build directory for my images. -Sysroot Location /home/sean//Yocto1.3/test-yocto/x86_64 Target Options -External HW checked Regards, Sean Liming Owner Annabooks Tel: 714-970-7523 / Cell: 858-774-3176 > -----Original Message----- > From: Georgescu, Alexandru C [mailto:alexandru.c.georgescu@intel.com] > Sent: Friday, November 09, 2012 1:31 PM > To: Sean Liming > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] Cannot Compile Application in Eclipse IDE Juno > > 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.liming@annabooks.com<mailto:sean.liming@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-bounces@yoctoproject.org<mailto: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<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.georgescu@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.liming@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.georgescu@intel.com]<mailto:[mailto:alexandru.c.georg > escu@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-bounces@yoctoproject.org<mailto: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<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 [-- Attachment #2: adt_installer.tar.bz2 --] [-- Type: application/octet-stream, Size: 143202 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-11-14 2:54 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-09 6:37 Cannot Compile Application in Eclipse IDE Juno Sean Liming 2012-11-09 16:20 ` Georgescu, Alexandru C 2012-11-09 16:37 ` Sean Liming 2012-11-09 17:23 ` Georgescu, Alexandru C 2012-11-09 17:55 ` Sean Liming 2012-11-09 20:22 ` Sean Liming 2012-11-09 21:18 ` Zhang, Jessica 2012-11-10 3:50 ` Sean Liming 2012-11-12 5:42 ` Zhang, Jessica 2012-11-13 3:40 ` Sean Liming 2012-11-14 0:23 ` Zhang, Jessica 2012-11-14 2:54 ` Sean Liming 2012-11-09 21:31 ` Georgescu, Alexandru C 2012-11-10 3:40 ` Sean Liming
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.