[Qt-creator] How to add custom toolchains?

Tobias Hunger tobias.hunger at digia.com
Thu Aug 1 11:40:08 CEST 2013


On 01.08.2013 11:24, Guido Seifert wrote:
> Hi,
> I am developing a plugin, which adds and removes custom toolchains to the QtCreator. Do I see it correctly that there is no public API to do this?
>
> The way I currently see it, I could use ProjectExplorer::Internal::CustomToolChainFactory;
>
> Problem is: How do I use it? I have problems with the dependencies with the resulting linker problems.
>
> /qt-creator/src/plugins/projectexplorer/customtoolchain.h:123: error: undefined reference to `vtable for ProjectExplorer::Internal::CustomToolChainFactory'
>
> Generally I know what it means. I just don't know how to add the internal dependency to my plugin project.

Hi Guido,

we try to keep *everything* in Creator private till somebody needs it. 
So if you indeed need something do the following:

1) Move the class out of the internal namespace

2) add the right export macro

3) Rebuild the plugin this is part of and fix any build failures due to 
the class being moved to another namespace.

4) Commit and push to gerrit for review. Provide a good use-case for 
having the class public as a comment on gerrit or as part of the commit 
message.

The best use-cases are of course those backed by code using the 
newly-made-public class (in a different commit depending on the 
making-public-change).

I hope this helps:-)

Best Regards,
Tobias

-- 
Tobias Hunger, Senior Software Engineer - Digia, Qt
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Sitz der Gesellschaft: Berlin. USt-IdNr: DE 286 306 868
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Qt-creator mailing list