Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CodeWarrior Compiler
Forum Updated to NodeBB v4.3 + New Features

CodeWarrior Compiler

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Domenico
    wrote on 3 May 2019, 13:40 last edited by
    #1

    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

    P 1 Reply Last reply 3 May 2019, 14:17
    0
    • D Domenico
      3 May 2019, 13:40

      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

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 3 May 2019, 14:17 last edited by
      #2

      @Domenico you may want to take a look at Adding Compilers from Qt Creator documentation.

      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

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 3 May 2019, 20:48 last edited by
        #3

        Hi
        Last time i saw CodeWarrior it was an integrated ide and no standalone compiler
        but might it changed over the years?

        1 Reply Last reply
        1
        • D Offline
          D Offline
          Domenico
          wrote on 6 May 2019, 10:00 last edited by
          #4

          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.

          A 1 Reply Last reply 6 May 2019, 10:15
          0
          • D Domenico
            6 May 2019, 10:00

            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.

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 6 May 2019, 10:15 last edited by
            #5

            @Domenico

            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?

            Qt has to stay free or it will die.

            D 1 Reply Last reply 6 May 2019, 13:51
            2
            • A aha_1980
              6 May 2019, 10:15

              @Domenico

              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?

              D Offline
              D Offline
              Domenico
              wrote on 6 May 2019, 13:51 last edited by
              #6

              @aha_1980

              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?

              A 1 Reply Last reply 6 May 2019, 18:51
              0
              • D Domenico
                6 May 2019, 13:51

                @aha_1980

                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?

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 6 May 2019, 18:51 last edited by
                #7

                Hi @Domenico,

                I've not worked with MicroChip so far, so I'd suggest the following:

                1. Compile a project in the "native" MicroChip IDE, try to find the compiler call and the command line switches passed to the compiler
                2. Try running the compiler with these switches from command line prompt
                3. Write a small Makefile utilising these compiler calls to compile a sample project
                4. Create a Makefile-based Creator project: https://doc.qt.io/qtcreator/creator-project-generic.html
                5. You can now compile your project from Creator. Creator call make with parameter all to build and clean to clean the project
                6. 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.

                Regards

                Qt has to stay free or it will die.

                1 Reply Last reply
                4
                • K Offline
                  K Offline
                  kuzulis
                  Qt Champions 2020
                  wrote on 6 May 2019, 19:31 last edited by kuzulis 5 Jun 2019, 19:37
                  #8

                  @Domenico,

                  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:

                  1. Highlighting of a system/compiler includes is not available.
                  2. Highlighting of a compiler macroses is not available.
                  3. A complex content of a Makefile.
                  4. 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).

                  1 Reply Last reply
                  4
                  • D Offline
                    D Offline
                    Domenico
                    wrote on 7 May 2019, 08:07 last edited by
                    #9

                    Hi @aha_1980 @kuzulis,

                    thank you very much for the excellent information. sooner or later I'll try and let you know! Thanks again!

                    1 Reply Last reply
                    0

                    1/9

                    3 May 2019, 13:40

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved