[yocto] Eclipse Plugin

Flavio Castro Alves Filho flavio.alves at gmail.com
Fri Jan 18 05:49:47 PST 2013


I believe that the best solution is to check why is it not working on
Eclipse Juno.

2013/1/18 Björn Arnelid <bjorn.arnelid at enea.com>:
> Yeah, sounds like problems with your installation.
> remove eclipse and try to set it up again - or try to manually copy
> autotools into your plugin folder.
>
> regards,
> Björn
>
> 2013-01-18 14:10, Flavio Castro Alves Filho skrev:
>
>> The problem right now is not regarding compilation issues, but Eclipse
>> plugin is not launching the compilation correctly.
>>
>> I tried to install Eclipse Indigo, with the instructions from Yocto dev
>> manual.
>>
>> I installed Eclipse, its components and when I try to install the
>> Yocto component, I have the following error:
>>
>> Cannot complete the install because one or more required items could
>> not be found.
>>    Software being installed: Yocto Plugin for Eclipse
>> 1.2.0.201210102158 (org.yocto.sdk.feature.group 1.2.0.201210102158)
>>    Missing requirement: Yocto Plugin for Eclipse 1.2.0.201210102158
>> (org.yocto.sdk.feature.group 1.2.0.201210102158) requires
>> 'org.eclipse.cdt.autotools.core 1.1.0' but it could not be found
>>
>> I searched for this component in my eclipse/plugins directory and it
>> is not available.
>>
>> But ... when I see the installed components in Eclipse (from the UI),
>> it indicates that autotools for CDT is installed.
>>
>>
>> 2013/1/18 Björn Arnelid <bjorn.arnelid at enea.com>:
>>>
>>> 2013-01-18 13:24, Flavio Castro Alves Filho skrev:
>>>
>>>> Hello,
>>>>
>>>> I'm facing similar issue (in fact, Raul and I are working together on
>>>> this deploy).
>>>>
>>>> I'll describe the steps that we followed. Our system is Ubuntu 12.04
>>>> LTS and our Eclipse version is Juno.
>>>>
>>>> 1) We build core-image-minimal using poky 1.3 (danny), meta-ti,
>>>> meta-openembedded/meta-oe
>>>>
>>>> 2) We build toolchain from the build system, using meta-ide-support
>>>>
>>>> 3) We downloaded Eclipse classic from Eclipse's website
>>>>
>>>> 4) We installed the Eclipse's components, according to Yocto dev
>>>> manual instructions
>>>>
>>>> 5) We installed Yocto ADT plugin from the repository (version 1.3)
>>>>
>>>> We extracted the generated root filesystem in another directory, in
>>>> order to properly configure the Eclipse Yocto plugin.
>>>>
>>>> For now, installation worked fine. The problem occurs when we try to
>>>> build the hello world application.
>>>>
>>>> We followed the steps from the Yocto dev manual.
>>>>
>>>> Before starting the build, I lanched the reconfigure option. After,
>>>> when started to build, the error message indicates 'no make target'.
>>>>
>>>> Looking at the files, I could see that autogen.sh was executed, but
>>>> the configure script don't. I believe that there is some isse where
>>>> the IDE is not executing the configure script.
>>>>
>>>> Do you have any clue about how to solve this issue?
>>>>
>>>> Best regards,
>>>>
>>>> Flavio
>>>>
>>>>
>>>> 2013/1/17 Zhang, Jessica <jessica.zhang at intel.com>:
>>>>>
>>>>> Hi Raul,
>>>>>
>>>>>
>>>>>
>>>>> Before we can help you debug your issue, can you provide more info
>>>>> regarding
>>>>> to:
>>>>>
>>>>>
>>>>>
>>>>> 1.       How did you setup your cross toolchain? ADT installer or
>>>>> toolchain
>>>>> tarball (your build if so, how did you build it.  If not, which one did
>>>>> you
>>>>> download?)
>>>>>
>>>>> 2.       And also, please provide more info what’s your toolchain setup
>>>>> in
>>>>> Eclipse, specifically the Yocto Project ADT preference config under
>>>>> Window?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jessica
>>>>>
>>>>>
>>>>>
>>>>> From: yocto-bounces at yoctoproject.org
>>>>> [mailto:yocto-bounces at yoctoproject.org]
>>>>> On Behalf Of Raul Rosetto Munoz
>>>>> Sent: Thursday, January 17, 2013 4:10 AM
>>>>> To: yocto at yoctoproject.org
>>>>> Subject: [yocto] Eclipse Plugin
>>>>>
>>>>>
>>>>>
>>>>> Hello All,
>>>>>
>>>>> I followed the ADT manual to create a eclipse environment.
>>>>>
>>>>>
>>>>>
>>>>> After create a default Hello World Yocto project I get some compile
>>>>> errors.
>>>>>
>>>>>
>>>>>
>>>>> At file config.log I saw some errors lines:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> configure:2861: checking for arm-poky-linux-gnueabi-gcc
>>>>>
>>>>> configure:2888: result: arm-poky-linux-gnueabi-gcc  -march=armv5te
>>>>> -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm
>>>>>
>>>>> configure:3157: checking for C compiler version
>>>>>
>>>>> configure:3166: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm --version >&5
>>>>>
>>>>> arm-poky-linux-gnueabi-gcc (GCC) 4.7.2
>>>>>
>>>>> Copyright (C) 2012 Free Software Foundation, Inc.
>>>>>
>>>>> This is free software; see the source for copying conditions.  There is
>>>>> NO
>>>>>
>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>>>> PURPOSE.
>>>>>
>>>>>
>>>>>
>>>>> configure:3177: $? = 0
>>>>>
>>>>> configure:3166: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm -v >&5
>>>>>
>>>>> Using built-in specs.
>>>>>
>>>>> COLLECT_GCC=arm-poky-linux-gnueabi-gcc
>>>>>
>>>>>
>>>>>
>>>>> COLLECT_LTO_WRAPPER=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/lto-wrapper
>>>>>
>>>>> Target: arm-poky-linux-gnueabi
>>>>>
>>>>> Configured with:
>>>>>
>>>>>
>>>>> /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work-shared/gcc-4.7.2-r13/gcc-4.7.2/configure
>>>>> --build=x86_64-linux --host=i686-pokysdk-linux
>>>>> --target=arm-poky-linux-gnueabi
>>>>> --prefix=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr
>>>>> --exec_prefix=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr
>>>>>
>>>>>
>>>>> --bindir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi
>>>>>
>>>>>
>>>>> --sbindir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi
>>>>>
>>>>>
>>>>> --libexecdir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi
>>>>> --datadir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/share
>>>>> --sysconfdir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/etc
>>>>> --sharedstatedir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/com
>>>>> --localstatedir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/var
>>>>>
>>>>>
>>>>> --libdir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi
>>>>> --includedir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/include
>>>>> --oldincludedir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/include
>>>>> --infodir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/share/info
>>>>> --mandir=/opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/share/man
>>>>> --disable-silent-rules --disable-dependency-tracking
>>>>>
>>>>>
>>>>> --with-libtool-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux
>>>>> --with-gnu-ld --enable-shared --enable-languages=c,c++
>>>>> --enable-threads=posix --disable-multilib --enable-c99
>>>>> --enable-long-long
>>>>> --enable-symvers=gnu --enable-libstdcxx-pch
>>>>> --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix
>>>>> --enable-target-optspace --enable-lto --enable-libssp
>>>>> --disable-bootstrap
>>>>> --disable-libgomp --disable-libmudflap --with-system-zlib
>>>>> --with-linker-hash-style=gnu --with-ppl=no --with-cloog=no
>>>>> --enable-checking=release --enable-cheaders=c_global --with-float=soft
>>>>>
>>>>>
>>>>> --with-gxx-include-dir=/opt/poky/1.3/sysroots/armv5te-poky-linux-gnueabi/usr/include/c++
>>>>>
>>>>>
>>>>> --with-build-time-tools=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin
>>>>> --with-sysroot=/opt/poky/1.3/sysroots/armv5te-poky-linux-gnueabi
>>>>>
>>>>>
>>>>> --with-build-sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/qemuarm
>>>>> --disable-libunwind-exceptions --disable-libssp --disable-libgomp
>>>>> --disable-libmudflap
>>>>>
>>>>>
>>>>> --with-mpfr=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux
>>>>>
>>>>>
>>>>> --with-mpc=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/i686-nativesdk-pokysdk-linux
>>>>> --enable-nls
>>>>>
>>>>> Thread model: posix
>>>>>
>>>>> gcc version 4.7.2 (GCC)
>>>>>
>>>>> configure:3177: $? = 0
>>>>>
>>>>> configure:3166: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm -V >&5
>>>>>
>>>>> arm-poky-linux-gnueabi-gcc: error: unrecognized command line option
>>>>> '-V'
>>>>>
>>>>> arm-poky-linux-gnueabi-gcc: fatal error: no input files
>>>>>
>>>>> compilation terminated.
>>>>>
>>>>> configure:3177: $? = 1
>>>>>
>>>>> configure:3166: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm -qversion >&5
>>>>>
>>>>> arm-poky-linux-gnueabi-gcc: error: unrecognized command line option
>>>>> '-qversion'
>>>>>
>>>>> arm-poky-linux-gnueabi-gcc: fatal error: no input files
>>>>>
>>>>> compilation terminated.
>>>>>
>>>>> configure:3177: $? = 1
>>>>>
>>>>> configure:3197: checking whether the C compiler works
>>>>>
>>>>> configure:3219: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm
>>>>> -mthumb-interwork  -mtune=arm926ej-s
>>>>> --sysroot=/home/prjs/compsis0001/philinux/arm  -g -O0
>>>>> --sysroot=/opt/poky/1.3  --sysroot=/opt/poky/1.3
>>>>> --sysroot=/opt/poky/1.3
>>>>> conftest.c  >&5
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find crt1.o: No such file or directory
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find crti.o: No such file or directory
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find crtbegin.o: No such file or directory
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find -lgcc
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find -lgcc_s
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find -lc
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find -lgcc
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find -lgcc_s
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find crtend.o: No such file or directory
>>>>>
>>>>>
>>>>>
>>>>> /opt/poky/1.3/sysroots/i686-pokysdk-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld:
>>>>> cannot find crtn.o: No such file or directory
>>>>>
>>>>> collect2: error: ld returned 1 exit status
>>>>>
>>>>> configure:3223: $? = 1
>>>>>
>>>>> configure:3261: result: no
>>>>>
>>>>> configure: failed program was:
>>>>>
>>>>> | /* confdefs.h */
>>>>>
>>>>> | #define PACKAGE_NAME "teste"
>>>>>
>>>>> | #define PACKAGE_TARNAME "teste"
>>>>>
>>>>> | #define PACKAGE_VERSION "0.1.0"
>>>>>
>>>>> | #define PACKAGE_STRING "teste 0.1.0"
>>>>>
>>>>> | #define PACKAGE_BUGREPORT ""
>>>>>
>>>>> | #define PACKAGE_URL ""
>>>>>
>>>>> | #define PACKAGE "teste"
>>>>>
>>>>> | #define VERSION "0.1.0"
>>>>>
>>>>> | /* end confdefs.h.  */
>>>>>
>>>>> |
>>>>>
>>>>> | int
>>>>>
>>>>> | main ()
>>>>>
>>>>> | {
>>>>>
>>>>> |
>>>>>
>>>>> |   ;
>>>>>
>>>>> |   return 0;
>>>>>
>>>>> | }
>>>>>
>>>>> configure:3266: error: in `/home/prjs/compsis0001/workspace/teste':
>>>>>
>>>>> configure:3268: error: C compiler cannot create executables
>>>>>
>>>>> See `config.log' for more details
>>>>>
>>>>>
>>>>>
>>>>> ## ---------------- ##
>>>>>
>>>>> ## Cache variables. ##
>>>>>
>>>>> ## ---------------- ##
>>>>>
>>>>> ...
>>>>>
>>>>> ...
>>>>>
>>>>> ...
>>>>>
>>>>> ## ----------------- ##
>>>>>
>>>>> ## Output variables. ##
>>>>>
>>>>> ## ----------------- ##
>>>>>
>>>>> ...
>>>>>
>>>>> ...
>>>>>
>>>>> ...
>>>>>
>>>>> /* confdefs.h */
>>>>>
>>>>> #define PACKAGE_NAME "teste"
>>>>>
>>>>> #define PACKAGE_TARNAME "teste"
>>>>>
>>>>> #define PACKAGE_VERSION "0.1.0"
>>>>>
>>>>> #define PACKAGE_STRING "teste 0.1.0"
>>>>>
>>>>> #define PACKAGE_BUGREPORT ""
>>>>>
>>>>> #define PACKAGE_URL ""
>>>>>
>>>>> #define PACKAGE "teste"
>>>>>
>>>>> #define VERSION "0.1.0"
>>>>>
>>>>>
>>>>>
>>>>> configure: exit 77
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Some One can Help me?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Raul Rosetto Muñoz
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> yocto mailing list
>>>>> yocto at yoctoproject.org
>>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>>
>>>>
>>> Don't you need to develop against a -sdk image?
>>> Try building a debug image, extract the file-system and point to that
>>> when
>>> developing.
>>>
>>> regards,
>>> Björn
>>>
>>>
>>> --
>>> Björn Arnelid | Software Engineer
>>> M: +46-70-971 4459  | björn.arnelid at xdin.com
>>> XDIN AB | Knarrarnäsgatan 7 | SE-164 40 Kista | xdin.com
>>>
>>> Xdin develop and deliver expertise through committed engineering and IT
>>> consultants.
>>>
>>>
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>
>
> --
> Björn Arnelid | Software Engineer
> M: +46-70-971 4459  | björn.arnelid at xdin.com
> XDIN AB | Knarrarnäsgatan 7 | SE-164 40 Kista | xdin.com
>
> Xdin develop and deliver expertise through committed engineering and IT
> consultants.
>



-- 
Flavio de Castro Alves Filho

flavio.alves at gmail.com
www.linuxembarcado.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves



More information about the yocto mailing list