Created attachment 972 [details] debug err An error (see attachment) appears in Eclipse when using a toolchain that is not installed in it's default path. ENVIRONMENT USED: Fedora 17 64bit Build: http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/ Commit: 381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7 ADT installer: http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/adt_installer-QA/ ECLIPSE PLUGIN:http://autobuilder.yoctoproject.org/pub/nightly/20121205-3/eclipse-plugin/ STEPS TO REPRODUCE 1. Configure eclipse with the Eclipse plugin 2. Install ADT in non default location (other than /opt/poky/1.3+snapshot) 3. Configure sysroot, toolchain, kernel for Eclipse. 4. Create a Hello World C project 5. Reconfigure, build. 6. Launch QEMU 7. Try to debug: Run->Debug configurations EXPECTED RESULTS 7. Debug perspective is opened and the user can Debug ACTUAL RESULTS 7. The following errors apppear in a popup window(see attachment): Error creating session Could not find platform independent libraries <prefix> Could not find platform independent libraries <prefix> Could not find platform independent libraries <prefix> OTHER COMMENTS If sysroot is installed in the default location, the debug can be performed.
It appears that the problem appears because Eclipse does not set the host_alias environment variable at all. For example, if the SDK is for i586, then host alias should be set to i586-poky-linux. I compiled the project just fine using the following steps (in command line): source ../sdk/environment-setup-i586-poky-linux export host_alias=i586-poky-linux ./autogen.sh make Jessica? Who do you think should handle this? You or Ioana?
Laurentiu, Why we have to set the host_alias? is it something changed at certain stage? If it's required why we can't add the export in the environment setup script? But I'll look into eclipse side if it's missing.
Created attachment 973 [details] adt_installer.log
Hi Laurentiu, Were you able to install toolchain using the adt-installer provided below in the bug? I'm running issues with pseudo binary under host sysroot, please check the installer log.
I've tested against the nightly build of http://downloads.yoctoproject.org/autobuilder-images/nightly/20121207-1/adt_installer-QA/ Since as I've stated I couldn't successfully install the toolchain and sysroot using the adt-installer build with original post. Everything works, my toolchain is installed under /home/jzhang/test-toolchain and sysroot is under the default of /home/jzhang/test-yocto/arm.
Created attachment 976 [details] eclipse debug view
Laurentiu, I've update the project templates README file, so basically if you do ./autogen.sh $CONFIGURE_FLAGS, then make, the project will build correctly from commandline. In this way, we don't need to add the HOST_ALIAS in environment setup file