Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
I need help.
I would like to add the CodeWarrior compiler on the Qt Creator development environment under the Windows operating system.. is it possible? if yes, can you tell me how to do it? please
Pablo J. Rogina last edited by
Please keep in mind that a compiler is one of the components of a kit, so you may also want to look at Adding Kits from Qt Creator documentation
Last time i saw CodeWarrior it was an integrated ide and no standalone compiler
but might it changed over the years?
sorry for the delay, unfortunately it has not changed is always the same .. and I would like to insert this compiler under QT creator. @Pablo-J-Rogina I try your advice, thank.
It is definitely possible to use alien compilers with Qt Creator - I do it myself.
Which kind of project do you want to use? I'm mostly using Generic Projects with Makefiles, so Creator does not even need to know my compiler.
Which kind of projects do you want to support with that compiler? Is it an embedded thing?
the projects that I would like to compile under the IDE CodeWarrior compiler, are MicroChip projects (.mcp), do you think it is possible to create a MicroChip project and compile it with CodeWarrior under Qt Creator?
I've not worked with MicroChip so far, so I'd suggest the following:
- Compile a project in the "native" MicroChip IDE, try to find the compiler call and the command line switches passed to the compiler
- Try running the compiler with these switches from command line prompt
- Write a small Makefile utilising these compiler calls to compile a sample project
- Create a Makefile-based Creator project: https://doc.qt.io/qtcreator/creator-project-generic.html
- You can now compile your project from Creator. Creator call
allto build and
cleanto clean the project
- To parse the compiler errors in Creator, you might setup a Custom Compiler: https://doc.qt.io/qtcreator/creator-tool-chains.html#adding-custom-compilers
Note that this is my way of using alien, embedded compilers. There might be other ways, but for me that's a very simple and usable setup. It is a bit of task at first time, but once you get it, very easy to re-use.
Yes, it is possible. I already did it for the bare-metal compilers, like IAR, KEIL, SDCC... But for that case I prefer to use the QBS, where too this compilers are added. For this purpose need to add some code to the QtC and QBS... A main problem there is an integration with the debugger (it is so hard to implement).
Of course, you can try to add your compiler as a "Custom Compiler" (as talked above), without modification of QtC code, but in that case you have not:
- Highlighting of a system/compiler includes is not available.
- Highlighting of a compiler macroses is not available.
- A complex content of a Makefile.
- And, maybe something else (like parsing of a compiler warnings and errors).. :)
So, if you want to make your contribution in the QtC, then I advise you to do just that (you can look on QtC sources, especially to the bare-metal plugin sources). I can help for you here a bit. But for that needs a compiler description (its flags, options and etc for different architectures).
thank you very much for the excellent information. sooner or later I'll try and let you know! Thanks again!