[Qt-creator] How to get paths of C and C++ compiler from ProjectExplorer::ToolChain?

tobias.hunger at nokia.com tobias.hunger at nokia.com
Wed Jan 11 11:03:03 CET 2012


Hi Konstantin!

It is always nice to have more buildsystems supported:-)

Would a interface like this suffice for your needs:

Utils::FileName cCompilerCommand() const;
Utils::FileName cxxCompilerCommand() const;

?

Those could return e.g. "cl" (MSVC) or "gcc" (auto-detected gcc) or
"/home/code/installed/custom-gcc/bin/gcc" (custom installed gcc). You might need to examine the
PATH as set up by addToEnvironment(...) to find the real executable locations.

Best Regards,
Tobias

Tobias Hunger
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori



More information about the Qt-creator mailing list