[Qt-creator] Fwd: Remote debugging - Compiler set

Vidhya Arun svidhyapria at gmail.com
Tue Jul 7 12:21:15 CEST 2020


Thanks for the feedback. I have formatted the text below. Hope its readable
now


I had developed a remote debugging plugin for Qt creator version 4.7

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.

I ended up modifying most of them with success but stuck with setting the
compiler C/C++ as highlighted below







Ideally, I want the compilers to be set for x86 remote debugging as

C: GCC( C, x86 64bit in /usr/bin)

 C++: GCC(C++,X86. 64 bit in /usr/bin )



And below values for remote arm machines

C: GCC(C, arm 32 bit in /usr/bin)

C++: GCC(C++, arm 32 bit in /usr/bin)



In the above screenshot, I have manually changed the C++ compiler to the
expected output.

A similar value is expected to be updated automatically for both C and C++
compilers.

Below is the code used which worked fine with earlier versions:



// To set C Compiler

ToolChain *tc = new
ProjectExplorer::GccToolChain(ProjectExplorer::Constants::C_LANGUAGE_ID);

ProjectExplorer::ToolChainManager::registerToolChain(tc);

ProjectExplorer::ToolChainKitAspect::setToolChain(k, tc);



//to set C++ compiler

ToolChain *tcc = new
ProjectExplorer::GccToolChain(ProjectExplorer::Constants::CXX_LANGUAGE_ID);

ProjectExplorer::ToolChainManager::registerToolChain(tcc);

ProjectExplorer::ToolChainKitAspect::setToolChain(k, tcc);



Can someone please guide here on the proper interfaces to be used ?



Regards

Vidhya

On Tue, Jul 7, 2020 at 3:44 PM Leander Schulten <
leander.schulten at rwth-aachen.de> wrote:

> Hello,
>
> please send your Emails with a back text color, otherwise you have to
> select the text to see something.
>
>
> On 7. Jul 2020, at 12:09, Vidhya Arun <svidhyapria at gmail.com> wrote:
>
>
>
> Hello Qt experts
>
> Just resending my last mail as I found some contents were cropped off at
> the end.
>
> I had developed a remote debugging plugin for Qt creator version 4.7
>
> 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.
>
> I ended up modifying most of them with success but stuck with setting the
> compiler C/C++ as highlighted below
>
>
>
> <image003.jpg>
>
>
>
>
>
> Ideally, I want the compilers to be set for x86 remote debugging as
>
> C: GCC( C, x86 64bit in /usr/bin)
>
>  C++: GCC(C++,X86. 64 bit in /usr/bin )
>
>
>
> And below values for remote arm machines
>
> C: GCC(C, arm 32 bit in /usr/bin)
>
> C++: GCC(C++, arm 32 bit in /usr/bin)
>
>
>
> In the above screenshot, I have manually changed the C++ compiler to the
> expected output.
>
> A similar value is expected to be updated automatically for both C and C++
> compilers.
>
> Below is the code used which worked fine with earlier versions:
>
>
>
> ToolChain *tc = new
> ProjectExplorer::GccToolChain(ProjectExplorer::Constants::C_LANGUAGE_ID);
>
> ProjectExplorer::ToolChainManager::registerToolChain(tc);
>
> ProjectExplorer::ToolChainKitAspect::setToolChain(k, tc);
>
>
>
> ToolChain *tcc = new
> ProjectExplorer::GccToolChain(ProjectExplorer::Constants::CXX_LANGUAGE_ID);
>
> ProjectExplorer::ToolChainManager::registerToolChain(tcc);
>
> ProjectExplorer::ToolChainKitAspect::setToolChain(k, tcc);
>
>
>
> Can someone please guide here on the proper interfaces to be used ?
>
>
>
> Regards
>
> Vidhya
>
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200707/69fe734e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 26274 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200707/69fe734e/attachment-0001.jpg>


More information about the Qt-creator mailing list