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. Qt Creator pkg-config support for a "generic" project?
QtWS25 Last Chance

Qt Creator pkg-config support for a "generic" project?

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 2 Posters 4.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.
  • T Offline
    T Offline
    toralf
    wrote on last edited by
    #1

    Is Qt Creator supposed to have some kind of support for the "pkg-config" tool for "generic" projects? I can see traces of it in the source code - src/plugins/genericprojectmanager have files pkgconfigtool.h and pkgconfigtool.cpp, which implement a class GenericProjectManager::Internal::PkgConfigTool. I'm unable to determine if and how this is used, however. Does anyone know more?

    It would be nice to be able to use pkg-config to set up include paths for auto-completion etc, rather than having to hard-code directories in the .includes file...

    TIA

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

      Hi,

      Did you try to use "this syntax":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#configuration-features ?

      Hope it helps

      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
      • T Offline
        T Offline
        toralf
        wrote on last edited by
        #3

        When I said "generic" project, I meant I'm not using qmake.

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

          AFAIK QtCreator supports "generic" project (non Qt) with cmake and qmake as build systems. What would you be using ?

          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
          • T Offline
            T Offline
            toralf
            wrote on last edited by
            #5

            Plain make, GNU implementation - with some help from "pkg-config". I'm quite sure this is supposed to be supported. The make part, I mean - the question was of course whether the project manager understands about pkg-config, too.

            Again, I think this is what's referred to as a "generic" project. A project using cmake is a CMake project, and a project using qmake is a probably a "Qt project" even if it doesn't actually use the Qt library, in terms of what project manager is used.

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

              even with plain make you need a mean to generate the Makefile (or you have to write it by hand).

              In this case you should use the Non-Qt Project template (QtCreator2.8.1) and select Plain C or C++ Project

              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
              • T Offline
                T Offline
                toralf
                wrote on last edited by
                #7

                Maybe I wasn't clear enough on this, but I'm not looking for a way to set up the build configuration as such - this is working fine already. What I was asking about was configuration of Qt creator indexing for external header files, i.e. the mechanism that, among other things, allows the editor to suggest function or method names as I'm typing.

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

                  Hoooo ok, I understand what you mean now. IIRC, QtCreator will use the content of INCLUDEPATH for that purpose

                  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

                  • Login

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