Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Clang code model and cross compiling toolchain not working in Qt Creator

Clang code model and cross compiling toolchain not working in Qt Creator

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt creatorclang analysercode model
5 Posts 2 Posters 1.6k Views
  • 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.
  • M Offline
    M Offline
    MrRobot
    wrote on 23 Dec 2018, 10:23 last edited by
    #1

    I want to use the Clang Code Model in Qt Creator 4.8.0 for my cross compiling project. I do not want to compile from the IDE. Instead I have scripts that I run from the shell which uses GCC.

    For this scenario, do I still have to do the complete compiler setup under "Kits"? Which settings are mandatory if I don't want to compile?

    I'm asking because I've been trying to integrate Clang into the IDE for a long time, but it always fails. Even telling Clang to use the proper sysroot is a challenge. I can hardly find any information on the internet on how to do this. I've been looking for RaspPi instructions for orientation, but found nothing.

    A 1 Reply Last reply 23 Dec 2018, 22:18
    0
    • M Offline
      M Offline
      MrRobot
      wrote on 23 Dec 2018, 21:53 last edited by
      #2

      Is no one else facing the same problem? I've been trying so hard for weeks now to get the clang code model work with my embedded project. It's so annoying it doesn't work.

      1 Reply Last reply
      0
      • M MrRobot
        23 Dec 2018, 10:23

        I want to use the Clang Code Model in Qt Creator 4.8.0 for my cross compiling project. I do not want to compile from the IDE. Instead I have scripts that I run from the shell which uses GCC.

        For this scenario, do I still have to do the complete compiler setup under "Kits"? Which settings are mandatory if I don't want to compile?

        I'm asking because I've been trying to integrate Clang into the IDE for a long time, but it always fails. Even telling Clang to use the proper sysroot is a challenge. I can hardly find any information on the internet on how to do this. I've been looking for RaspPi instructions for orientation, but found nothing.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 23 Dec 2018, 22:18 last edited by
        #3

        Hi @MrRobot,

        I'm using QtCreator in conjunction with Toradex Apalis iMX.6, and it works perfectly.

        I have, however, set up a Kit so I can compile, deploy and debug from within Creator. Clang is working (mostly) fine in this scenario.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MrRobot
          wrote on 24 Dec 2018, 20:34 last edited by MrRobot
          #4

          Hi @aha_1980

          it seems I solved it. The problem was that I added a custom compiler. Once I added a compiler of type GCC, it works perfectly.

          Sorry for cross posting. I found this forum better for my topic. I wasn't able to delete my post in the other one.

          Kind regards,
          MrRobot

          A 1 Reply Last reply 24 Dec 2018, 20:37
          1
          • M MrRobot
            24 Dec 2018, 20:34

            Hi @aha_1980

            it seems I solved it. The problem was that I added a custom compiler. Once I added a compiler of type GCC, it works perfectly.

            Sorry for cross posting. I found this forum better for my topic. I wasn't able to delete my post in the other one.

            Kind regards,
            MrRobot

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 24 Dec 2018, 20:37 last edited by
            #5

            Hi @MrRobot,

            Glad you figured it out. So please mark this topic as SOLVED now.

            Thanks!

            PS: If you want to move a topic later, just ask a moderator to do so (if you can't do yourself).

            Qt has to stay free or it will die.

            1 Reply Last reply
            1

            5/5

            24 Dec 2018, 20:37

            • Login

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