<div><br></div><div style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><span style="font-family:Arial,sans-serif;font-size:10pt">Hello Qt experts,</span><br><div class="gmail_quote" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><div lang="EN-US" link="#0563C1" vlink="#954F72" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><div class="m_2430418152244248559WordSection1" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important">
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> </span><span style="font-family:Arial,sans-serif;font-size:10pt">I had developed a remote debugging plugin for Qt creator version 4.7</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Now Im trying to port the same plugin to the latest version of Qt creator 4.12 and I find most of the interfaces obsolete.<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">I ended up modifying most of them with success but stuck with setting the compiler C/C++ as highlighted below <u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> <u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><img src="cid:17328bd5d55155f77111" style="width:469px;max-width:100%"></span><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><br></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Ideally, I want the compilers to be set for x86 remote debugging as<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">C: GCC( C, x86 64bit in /usr/bin)
<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"> C++: GCC(C++,X86. 64 bit in /usr/bin )<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> <u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">And below values for remote arm machines<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">C: GCC(C, arm 32 bit in /usr/bin)<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">C++: GCC(C++, arm 32 bit in /usr/bin)
<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> <u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">In the above screenshot, I have manually changed the C++ compiler to the expected output.
<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">A similar value is expected to be updated automatically for both C and C++ compilers.<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><br></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Below is the code used which worked fine with earlier versions:</span></p><p class="MsoNormal" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><font size="2" style="font-family:Arial,sans-serif;color:rgb(0,0,0)">// for C compiler </font></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ToolChain *tc = new ProjectExplorer::GccToolChain(ProjectExplorer::Constants::C_LANGUAGE_ID);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ProjectExplorer::ToolChainManager::registerToolChain(tc);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ProjectExplorer::ToolChainKitAspect::setToolChain(k, tc);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> // for C++ compiler<u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ToolChain *tcc = new ProjectExplorer::GccToolChain(ProjectExplorer::Constants::CXX_LANGUAGE_ID);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ProjectExplorer::ToolChainManager::registerToolChain(tcc);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">ProjectExplorer::ToolChainKitAspect::setToolChain(k, tcc);<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Can someone please guide here on the proper interfaces to be used ?</span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><br></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Regards</span></p></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_2430418152244248559WordSection1"><p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Vidhya<u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> <u style="font-family:Arial,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u style="font-family:Arial,sans-serif"></u> <u style="font-family:Arial,sans-serif"></u></span></p>
</div>
</div>
</div></div>