Eclipse plugin


Gary Thomas
 

I'm interested in trying the Yocto Eclipse plugin with my Poky based builds.
That said, I'm a true Eclipse novice :-(

Does anyone have some guidance on what packages I might need to install to
get a usable Eclipse framework on Fedora (13)? For example, the Yocto page
mentions the "standard TCF" agent to contact the target - how do I make sure
this is available and enabled?

n.b. the [web] documentation on this plugin is pretty thin. Perhaps once I
get this going, I can contribute some meat to put on these bones :-)

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Gary Thomas
 

On 11/22/2010 02:13 AM, Gary Thomas wrote:
I'm interested in trying the Yocto Eclipse plugin with my Poky based builds.
That said, I'm a true Eclipse novice :-(

Does anyone have some guidance on what packages I might need to install to
get a usable Eclipse framework on Fedora (13)? For example, the Yocto page
mentions the "standard TCF" agent to contact the target - how do I make sure
this is available and enabled?

n.b. the [web] documentation on this plugin is pretty thin. Perhaps once I
get this going, I can contribute some meat to put on these bones :-)

Thanks
I tried to follow the documentation in the Poky manual (still thin...), but
it seems I'm now stuck. I get this error:
Cannot complete the install because one or more required items could not be found.
Software being installed: Yocto Plugin for Eclipse 1.0.0.201010202121 (org.yocto.sdk.feature.group 1.0.0.201010202121)
Missing requirement: Yocto Plugin Remote Tools 1.0.0.201010202121 (org.yocto.sdk.remotetools 1.0.0.201010202121) requires 'bundle org.eclipse.rse.terminals.ui 1.0.100' but it could not be found
Cannot satisfy dependency:
From: Yocto Plugin for Eclipse 1.0.0.201010202121 (org.yocto.sdk.feature.group 1.0.0.201010202121)

As far as I can tell, the eclise-rse package on Fedora 13 is version 1.0.1 :-(
Also, Fedora is still on Galileo 3.5.2, not Helios 3.6.

I guess I'll try the raw install of Helios since Fedora+YUM has failed me.

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Lu, Lianhao <lianhao.lu@...>
 

Gary Thomas wrote on 2010-11-22:
On 11/22/2010 02:13 AM, Gary Thomas wrote:
I'm interested in trying the Yocto Eclipse plugin with my Poky based builds.
That said, I'm a true Eclipse novice :-(

Does anyone have some guidance on what packages I might need to
install to get a usable Eclipse framework on Fedora (13)? For
example, the Yocto page mentions the "standard TCF" agent to contact
the target
- how do I make sure this is available and enabled?

n.b. the [web] documentation on this plugin is pretty thin. Perhaps
once I get this going, I can contribute some meat to put on these
bones :-)

Thanks
I tried to follow the documentation in the Poky manual (still
thin...), but it seems I'm now stuck. I get this error:
Cannot complete the install because one or more required items could
not be found. Software being installed: Yocto Plugin for Eclipse
1.0.0.201010202121 (org.yocto.sdk.feature.group 1.0.0.201010202121)
Missing requirement: Yocto Plugin Remote Tools 1.0.0.201010202121
(org.yocto.sdk.remotetools 1.0.0.201010202121) requires 'bundle
org.eclipse.rse.terminals.ui 1.0.100' but it could not be found
Cannot satisfy dependency:
From: Yocto Plugin for Eclipse 1.0.0.201010202121
(org.yocto.sdk.feature.group 1.0.0.201010202121)

As far as I can tell, the eclise-rse package on Fedora 13 is version
1.0.1 :-( Also, Fedora is still on Galileo 3.5.2, not Helios 3.6.

I guess I'll try the raw install of Helios since Fedora+YUM has failed me.
Gary,

Sorry for the thin documentation about eclipse plug-in installation.

The Yocto eclipse plugin has some dependencies on other eclipse plugins:
- C/C++ Development Tools (CDT) (http://download.eclipse.org/tools/cdt/releases/helios if using Eclipse 3.6Helios, or http://download.eclipse.org/tools/cdt/releases/galileo if using Eclipse 3.5Galileo)
- Autotools support for CDT (Incubation) (http://download.eclipse.org/technology/linuxtools/update)
- Target Management (RSE) (http://download.eclipse.org/dsdp/tm/updates/3.2)

To install one of the above eclipse plugins in the IDE,
1. Go to Help > Install New Software... to open the Install dialog.
2. Click the Add... button; this will display the Add Site dialog.
3. Enter the corresponding URL in the Location: field and click "OK". This will add the corresponding update site to the list of available sites.
4. The corresponding update site should now be selected in the "Work with:" selection box. If not, you can select it from the list by clicking the down arrow and locating its entry. You can simply collapse the entry for this site to view content available for installation.
5. Check the corresponding box and click Next button, following the wizard to install the plug-in.

Best Regards,
Lianhao


Gary Thomas
 

On 11/22/2010 05:50 AM, Lu, Lianhao wrote:
Gary Thomas wrote on 2010-11-22:
On 11/22/2010 02:13 AM, Gary Thomas wrote:
I'm interested in trying the Yocto Eclipse plugin with my Poky based builds.
That said, I'm a true Eclipse novice :-(

Does anyone have some guidance on what packages I might need to
install to get a usable Eclipse framework on Fedora (13)? For
example, the Yocto page mentions the "standard TCF" agent to contact
the target
- how do I make sure this is available and enabled?

n.b. the [web] documentation on this plugin is pretty thin. Perhaps
once I get this going, I can contribute some meat to put on these
bones :-)

Thanks
I tried to follow the documentation in the Poky manual (still
thin...), but it seems I'm now stuck. I get this error:
Cannot complete the install because one or more required items could
not be found. Software being installed: Yocto Plugin for Eclipse
1.0.0.201010202121 (org.yocto.sdk.feature.group 1.0.0.201010202121)
Missing requirement: Yocto Plugin Remote Tools 1.0.0.201010202121
(org.yocto.sdk.remotetools 1.0.0.201010202121) requires 'bundle
org.eclipse.rse.terminals.ui 1.0.100' but it could not be found
Cannot satisfy dependency:
From: Yocto Plugin for Eclipse 1.0.0.201010202121
(org.yocto.sdk.feature.group 1.0.0.201010202121)

As far as I can tell, the eclise-rse package on Fedora 13 is version
1.0.1 :-( Also, Fedora is still on Galileo 3.5.2, not Helios 3.6.

I guess I'll try the raw install of Helios since Fedora+YUM has failed me.
Gary,

Sorry for the thin documentation about eclipse plug-in installation.

The Yocto eclipse plugin has some dependencies on other eclipse plugins:
- C/C++ Development Tools (CDT) (http://download.eclipse.org/tools/cdt/releases/helios if using Eclipse 3.6Helios, or http://download.eclipse.org/tools/cdt/releases/galileo if using Eclipse 3.5Galileo)
- Autotools support for CDT (Incubation) (http://download.eclipse.org/technology/linuxtools/update)
- Target Management (RSE) (http://download.eclipse.org/dsdp/tm/updates/3.2)

To install one of the above eclipse plugins in the IDE,
1. Go to Help> Install New Software... to open the Install dialog.
2. Click the Add... button; this will display the Add Site dialog.
3. Enter the corresponding URL in the Location: field and click "OK". This will add the corresponding update site to the list of available sites.
4. The corresponding update site should now be selected in the "Work with:" selection box. If not, you can select it from the list by clicking the down arrow and locating its entry. You can simply collapse the entry for this site to view content available for installation.
5. Check the corresponding box and click Next button, following the wizard to install the plug-in.
Thanks, I installed Helios directly from the Eclipse site and that's
working better now. I also installed the components you mention above.

When I try to configure Yocto, I'm trying to use the Poky tree method
but it doesn't like my tree :-( I pointed it to my build directory
(the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?


--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Lu, Lianhao <lianhao.lu@...>
 

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and that's
working better now. I also installed the components you mention above.

When I try to configure Yocto, I'm trying to use the Poky tree method
but it doesn't like my tree :-( I pointed it to my build directory
(the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky tree mode.

Best Regards,
Lianhao


Gary Thomas
 

On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and that's
working better now. I also installed the components you mention above.

When I try to configure Yocto, I'm trying to use the Poky tree method
but it doesn't like my tree :-( I pointed it to my build directory
(the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky tree mode.
I did that and now I can move a bit farther. I managed to select my SDK type
(ppc603e-poky-linux) and started with the autotools example. However, I
get this error when trying to run autogen.sh:


Generating Makefile in build directory: /home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure --host=powerpc-poky-linux --build=i686-linux --target=powerpc-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Gary Thomas
 

On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and that's
working better now. I also installed the components you mention above.

When I try to configure Yocto, I'm trying to use the Poky tree method
but it doesn't like my tree :-( I pointed it to my build directory
(the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky tree mode.
I did that and now I can move a bit farther. I managed to select my SDK type
(ppc603e-poky-linux) and started with the autotools example. However, I
get this error when trying to run autogen.sh:


Generating Makefile in build directory: /home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure --host=powerpc-poky-linux --build=i686-linux --target=powerpc-poky-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux --host=powerpc-poky-linux --build=i686-linux
get env key CFLAGS value -mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value /home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value /home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Zhang, Jessica
 

Hi Gary,

I just setup my machine for ppc and create a new auto tools based c project
and everything seems working fine for me, so if you go
"Window->Preferecencs->Yocto SDK" in that setup window, do you see "Sysroot"
field? If yo, somehow you're using the 1.0 plugin, but that's fine, just put
"/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux" there. And try
to reconfigure your project which should trigger autoconfig and the compiler
should be able to use the correct sysroot setup...

Let me know whether that help or not.

Thanks,
Jessica

Gary Thomas wrote:

On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and
that's working better now. I also installed the components you
mention above.

When I try to configure Yocto, I'm trying to use the Poky tree
method but it doesn't like my tree :-( I pointed it to my build
directory (the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky
tree mode.
I did that and now I can move a bit farther. I managed to select my
SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I
get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux


Gary Thomas
 

On 11/22/10 11:43, Zhang, Jessica wrote:
Hi Gary,

I just setup my machine for ppc and create a new auto tools based c project
and everything seems working fine for me, so if you go
"Window->Preferecencs->Yocto SDK" in that setup window, do you see "Sysroot"
field? If yo, somehow you're using the 1.0 plugin, but that's fine, just put
"/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux" there. And try
to reconfigure your project which should trigger autoconfig and the compiler
should be able to use the correct sysroot setup...

Let me know whether that help or not.
I don't have a Sysroot field on that form, only a "Poky root" which is pointing
to the top of my tree, in your example "/home/gary/mytarget_poky/"

I installed the Yocto SDK 1.0.0.201010202121 from http://www.yoctoproject.org/downloads/eclipse-plugin/

Gary Thomas wrote:
On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and
that's working better now. I also installed the components you
mention above.

When I try to configure Yocto, I'm trying to use the Poky tree
method but it doesn't like my tree :-( I pointed it to my build
directory (the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky
tree mode.
I did that and now I can move a bit farther. I managed to select my
SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I
get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------


Lu, Lianhao <lianhao.lu@...>
 

Gary,

Pls compile your application using the cmd line to debug the error:

# source /home/gary/mytarget_poky/tmp/environment-setup-ppc603e-poky-linux
# cd /home/gthomas/workspace/yocto_test3
# ./configure --host=powerpc-poky-linux --build=i686-linux --target=powerpc-poky-linux

If it still fails, you may look at the config.log to see what actually goes wrong here.

Best regards,
-Lianhao

Gary Thomas wrote:
I did that and now I can move a bit farther. I managed to select my
SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I
get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux


Zhang, Jessica
 

Gary,

I setup my eclipse IDE to be using 0.9 plug-in and couldn't reproduce the
problem that you run into. Here're several key step screenshots that I used
to create a Yocto Autotools based project and run autoconfig for it.
Step 1: Please refere preference.png for your "Yocto SDK" settings under
Window->Preference
Step 2: In c project, please make sure you select "Yocto SDK Project->Hello
World ANSI C Autotools Project" (please refer to project.png)
Step 3: reconfigure.png is the output when I do Project->"Reconfigure
Project".

If you still run into problem, go under Project->Invoke Yocto
Tools->Reconfigure Yocto, make sure the setting there is the same as your
settings under preference. Then do step 3 again to reconfigure.

Hope this will get you going...

Thanks,
Jessica


Gary Thomas wrote:

On 11/22/10 11:43, Zhang, Jessica wrote:
Hi Gary,

I just setup my machine for ppc and create a new auto tools based c
project and everything seems working fine for me, so if you go
"Window->Preferecencs->Yocto SDK" in that setup window, do you see
"Sysroot" field? If yo, somehow you're using the 1.0 plugin, but
that's fine, just put
"/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux" there.
And try to reconfigure your project which should trigger autoconfig
and the compiler should be able to use the correct sysroot setup...

Let me know whether that help or not.
I don't have a Sysroot field on that form, only a "Poky root" which
is pointing
to the top of my tree, in your example "/home/gary/mytarget_poky/"

I installed the Yocto SDK 1.0.0.201010202121 from
http://www.yoctoproject.org/downloads/eclipse-plugin/

Gary Thomas wrote:
On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and
that's working better now. I also installed the components you
mention above.

When I try to configure Yocto, I'm trying to use the Poky tree
method but it doesn't like my tree :-( I pointed it to my build
directory (the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the poky
tree mode.
I did that and now I can move a bit farther. I managed to select my
SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible
install... /usr/bin/install -c checking whether build environment
is sane... yes
checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host
triplet checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS
value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux


Zhang, Jessica
 

Sorry forgot the attachements.


Zhang, Jessica wrote:

Gary,

I setup my eclipse IDE to be using 0.9 plug-in and couldn't reproduce
the problem that you run into. Here're several key step screenshots
that I used to create a Yocto Autotools based project and run
autoconfig for it.
Step 1: Please refere preference.png for your "Yocto SDK" settings
under Window->Preference
Step 2: In c project, please make sure you select "Yocto SDK
Project->Hello World ANSI C Autotools Project" (please refer to
project.png)
Step 3: reconfigure.png is the output when I do Project->"Reconfigure
Project".

If you still run into problem, go under Project->Invoke Yocto
Tools->Reconfigure Yocto, make sure the setting there is the same as
your settings under preference. Then do step 3 again to reconfigure.

Hope this will get you going...

Thanks,
Jessica


Gary Thomas wrote:
On 11/22/10 11:43, Zhang, Jessica wrote:
Hi Gary,

I just setup my machine for ppc and create a new auto tools based c
project and everything seems working fine for me, so if you go
"Window->Preferecencs->Yocto SDK" in that setup window, do you see
"Sysroot" field? If yo, somehow you're using the 1.0 plugin, but
that's fine, just put
"/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux" there.
And try to reconfigure your project which should trigger autoconfig
and the compiler should be able to use the correct sysroot setup...

Let me know whether that help or not.
I don't have a Sysroot field on that form, only a "Poky root" which
is pointing to the top of my tree, in your example
"/home/gary/mytarget_poky/"

I installed the Yocto SDK 1.0.0.201010202121 from
http://www.yoctoproject.org/downloads/eclipse-plugin/

Gary Thomas wrote:
On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and
that's working better now. I also installed the components you
mention above.

When I try to configure Yocto, I'm trying to use the Poky tree
method but it doesn't like my tree :-( I pointed it to my build
directory (the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the
poky tree mode.
I did that and now I can move a bit farther. I managed to select
my SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible
install... /usr/bin/install -c checking whether build environment
is sane... yes checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host
triplet checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk checking whether make sets $(MAKE)...
yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS
value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux


Gary Thomas
 

On 11/23/2010 02:44 PM, Zhang, Jessica wrote:
Sorry forgot the attachements.


Zhang, Jessica wrote:
Gary,

I setup my eclipse IDE to be using 0.9 plug-in and couldn't reproduce
the problem that you run into. Here're several key step screenshots
that I used to create a Yocto Autotools based project and run
autoconfig for it.
Step 1: Please refere preference.png for your "Yocto SDK" settings
under Window->Preference
Step 2: In c project, please make sure you select "Yocto SDK
Project->Hello World ANSI C Autotools Project" (please refer to
project.png)
Step 3: reconfigure.png is the output when I do Project->"Reconfigure
Project".

If you still run into problem, go under Project->Invoke Yocto
Tools->Reconfigure Yocto, make sure the setting there is the same as
your settings under preference. Then do step 3 again to reconfigure.

Hope this will get you going...
Thanks, this did help. My biggest problem was that the Poky tree I was
trying to use had grown a permission problem so I could no longer execute
the compiler (result of moving the tree between machines - pure cockpit
error, sorry). Once I restarted a new Eclipse project with a proper tree
(again I forgot the meta-ide-support package - is this documented?), things
have started coming together.

Next step - try to debug this project on my remote board.

Thanks again

Gary Thomas wrote:
On 11/22/10 11:43, Zhang, Jessica wrote:
Hi Gary,

I just setup my machine for ppc and create a new auto tools based c
project and everything seems working fine for me, so if you go
"Window->Preferecencs->Yocto SDK" in that setup window, do you see
"Sysroot" field? If yo, somehow you're using the 1.0 plugin, but
that's fine, just put
"/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux" there.
And try to reconfigure your project which should trigger autoconfig
and the compiler should be able to use the correct sysroot setup...

Let me know whether that help or not.
I don't have a Sysroot field on that form, only a "Poky root" which
is pointing to the top of my tree, in your example
"/home/gary/mytarget_poky/"

I installed the Yocto SDK 1.0.0.201010202121 from
http://www.yoctoproject.org/downloads/eclipse-plugin/

Gary Thomas wrote:
On 11/22/2010 08:24 AM, Gary Thomas wrote:
On 11/22/2010 06:55 AM, Lu, Lianhao wrote:

Gary Thomas wrote on 2010-11-22:
Thanks, I installed Helios directly from the Eclipse site and
that's working better now. I also installed the components you
mention above.

When I try to configure Yocto, I'm trying to use the Poky tree
method but it doesn't like my tree :-( I pointed it to my build
directory (the one which contains tmp/, sstate-cache/ and conf/)

What else am I missing?
You need to "bitbake meta-ide-support" before you can use the
poky tree mode.
I did that and now I can move a bit farther. I managed to select
my SDK type (ppc603e-poky-linux) and started with the autotools
example. However, I get this error when trying to run autogen.sh:


Generating Makefile in build directory:
/home/gthomas/workspace/yocto_test3

sh /home/gthomas/workspace/yocto_test3/configure
--host=powerpc-poky-linux --build=i686-linux
--target=powerpc-poky-linux checking for a BSD-compatible
install... /usr/bin/install -c checking whether build environment
is sane... yes checking for powerpc-poky-linux-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host
triplet checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk checking whether make sets $(MAKE)...
yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-poky-linux-gnu
checking for style of include used by make... GNU
checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc
checking whether the C compiler works... no
configure: error: in `/home/gthomas/workspace/yocto_test3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Configuration failed with error

It looks like there is a confusion over the SDK type and the
compiler setup?
BTW, this was on my console (hidden by the eclipse window), in
case it helps:

get env key CC value powerpc-poky-linux-gcc
get env key CXX value powerpc-poky-linux-g++
get env key GDB value powerpc-poky-linux-gdb
get env key TARGET_PREFIX value powerpc-poky-linux-
get env key CONFIGURE_FLAGS value --target=powerpc-poky-linux
--host=powerpc-poky-linux --build=i686-linux get env key CFLAGS
value
-mcpu=603e -mhard-float
get env key CXXFLAGS value -mcpu=603e -mhard-float
get env key POKY_NATIVE_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/i686-linux
get env key POKY_TARGET_SYSROOT value
/home/gary/mytarget_poky/tmp/sysroots/ppc603e-poky-linux
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------