<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.m-7176079680622200282apple-converted-space
{mso-style-name:m_-7176079680622200282apple-converted-space;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hello Ross,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for your reply, but I did not get you, I actually sourced the setup script for the sdk toolchain installed at path /opt/poky/2.1.1/…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But I think “make†is somehow calling g++ instead of calling arm-poky-linux-gnueabi-g++. I am not sure about the generated sdk is correct?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Alankar<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Burton, Ross [mailto:ross.burton@intel.com] <br><b>Sent:</b> 09/12/2016 6:05 PM<br><b>To:</b> Alankar Dhobale<br><b>Cc:</b> yocto@yoctoproject.org<br><b>Subject:</b> Re: [yocto] Qt make: g++: Command not found issue with SDK generated for soloX<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>As per the documentation, the compiler isn't just "gcc" but has the full platform triple in:<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#makefile-based-projects">http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#makefile-based-projects</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>One you've sourced the setup script these are set as $CC and so on, so your makefile should be using $CC instead of 'gcc'.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Ross<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 9 December 2016 at 11:57, Alankar Dhobale <<a href="mailto:alankar.dhobale@renuelectronics.com" target="_blank">alankar.dhobale@renuelectronics.com</a>> wrote:<o:p></o:p></p><div><div><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>i have used following steps to get and build the BSP for soloX sabre board. i am using Krogoth branch to build the bsp and populate sdk</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'><a href="https://github.com/Freescale/fsl-community-bsp-platform" target="_blank">https://github.com/Freescale/fsl-community-bsp-platform</a></span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>then i added qt support in the build by following </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'><a href="http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard" target="_blank">http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard</a></span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>after that i bitbaked toolchain for this using following</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>$ bitbake meta-toolchain-qt5</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>after this i generated sdk using following command</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>$ bitbake <image-name> -c populate_sdk</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>and then i installed the sdk on my development machine, it is installed under</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>/opt/poky/2.1.1/</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>now i installed and setup latest Qt by using following steps</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'><a href="https://community.nxp.com/thread/309578" target="_blank">https://community.nxp.com/thread/309578</a></span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>After all this setup done, i created a simple console application and trying to build it, and i get an error as</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>14:10:10: Running steps for project HelloWorld...<br>14:10:10: Configuration unchanged, skipping qmake step.<br>14:10:10: Starting: "/usr/bin/make"<span class=m-7176079680622200282apple-converted-space> </span><br>g++ -c -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I../HelloWorld -I. -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-g++ -o main.o ../HelloWorld/main.cpp<br>make: g++: Command not found<br>make: *** [main.o] Error 127<br>14:10:10: The process "/usr/bin/make" exited with code 2.<br>Error while building/deploying project HelloWorld (kit: mx6solox)<br>The kit mx6solox has configuration issues which might be the root cause for this problem.<br>When executing step "Make"<br>14:10:10: Elapsed time: 00:00.</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>i have googled a lot but could not find any solution on this.</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;min-height:8pt;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'> </span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;background:white;vertical-align:baseline;word-wrap:break-word;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#51626F'>Can somebody please help on this...</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;color:black'>Kind Regards,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='color:black'>Alankar Dhobale</span></b><o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>--<br>_______________________________________________<br>yocto mailing list<br><a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br><a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>