Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTCreator & self compiled clang (llvm): clang kit not autodetected (Debian linux)?
QtWS25 Last Chance

QTCreator & self compiled clang (llvm): clang kit not autodetected (Debian linux)?

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 2 Posters 2.2k 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.
  • A Offline
    A Offline
    alexqt143
    wrote on last edited by
    #1

    Hi all,

    I plan to use QTCreator as IDE for some llvm related coding and as a first step would like to replace 'Desktop QT 5.4.0 GCC 64 bit' kit by clang.

    I installed qt-opensource-linux-x64-1.6.0-7-online,
    and compiled and installed recent llvm&clang (following "gettingStarted":http://llvm.org/docs/GettingStarted.html)

    What do I need to do in order to have clang kit to show up under QTCreator>Tools>Build&Run>Kits>autodetect?

    Do I have to configure it manually?

    Note: I compiled llvm&clang using configure, make, not cmake.
    Do I have to use cmake? Do I need to tell the llvm build to generate someting special for QTCreator?

    THX
    Alex

    My setup:
    debian wheezy
    QTCreator from prebuild Desktop QT 5.4.0 GCC 64 bit
    recent llvm&clang from svn branch

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You won't have it under autodetect. You have to create a kit yourself where you set the compiler to your custom clang.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexqt143
        wrote on last edited by
        #3

        Ok,
        thanks.
        Do I follow "the standard docu":http://qt-project.org/doc/qtcreator-2.6/creator-targets.html?
        Does anyone have done this and could post the settings? Just to be sure not to mess-up things? Thx!

        One goal would be to visually debug llvm pass codes.
        Regarding the usage of gdb, I found: "this":http://stackoverflow.com/questions/2226112/debugging-an-llvm-pass-with-gdb
        Could this be mapped on QTCreator? Where to start? Any traps?

        Thx
        Alex

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That one, plus the compiler part where you can add your custom clang

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alexqt143
            wrote on last edited by
            #5

            Ok, thank you!
            Alex

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're welcome !

              Got it working ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                alexqt143
                wrote on last edited by
                #7

                Not yet, have been testing to link against llvm/clang and using clang code model for llvm related developement / debugging. Switching to clang compiler is on the list for the next days!

                Alex

                1 Reply Last reply
                0

                • Login

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