After setting up Eclipse as described in the Yocto Project Development Manual; with a Standalone pre-build toolchain and a QEMU target extracted using the runqemu-extract-sdk; and installing the SDK in another location than the default /opt/poky/1.4+snapshot (for example in ~/toolchain ); when attempting to start the debugger as in 4.2.2.6. Deploying and Debugging the Application, the following error occurs: “Launching hwPrj_gdb_i586-poky-linux has encountered a problem. Error creating session. Could not find platform independent libraries <prefix>”
Hi Gabriel, Can you provide more info about your setup, what is your sysroot? and what is your toolchain, what in eclipse preference is your ADT setup. Also, are you usin the defult hello world ansi c project? Thanks, Jessica
Hi Jessica, Here is the info: sysroot: runqemu-extract-sdk my_view/poky/build/tmp/deploy/images/core-image-sato-sdk-qemux86.tar.bz2 ~/ym-ciss-qx86-sysroot Toolchain: my_view/poky/build/tmp/deploy/sdk/poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh ./poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh ~/toolchain ADT setup: - Standalone pre-build toolchain - Toolchain location: ~/toolchain - Sysroot location: ~/toolchain/sysroots - Target architecture: i586-poky-linux - Target Options: QEMU - Kernel: my_view/poky/build/tmp/deploy/images/bzImage-qemux86.bin - Custom Options: nographic Project: Yocto Project ADT Autotools Project > Hello World ANSI C Autotools Project Also, I found (as a workaround) that if I source the environment before starting Eclipse/from the same shell, then it works. Best regards, Gabriel
Hi Gabriel, Your sysroot should be set to: ~/ym-ciss-qx86-sysroot
Hi Jessica, I tried setting the sysroot as you suggested (actually now that one is: /opt/ym-ciss-qx86-sysroot due to another cross-host issue we had). I get the same behavior and the same workaround applies. I think the problem is that from what you could see in the External Tools Configuration > Arguments: -e "source /opt/ytc/environment-setup-i586-poky-linux;runqemu qemux86 /media/sdd1/fb/gaba/ym/poky/build/tmp/deploy/images/bzImage-qemux86.bin /opt/ym-ciss-qx86-sysroot nographic;bash" this part is not executed: “source /opt/ytc/environment-setup-i586-poky-linux”. At least this explains why the workaround I mentioned above works. Best regards, Gabriel
Hi Gabriel, I took another look of the bug, you need to start qemu session first then bring up the debug session, the debugger won't bring up qemu session for you and I just can't reproduce the issue on my end. Thanks, Jessica