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. Qt and pkg-config
Forum Updated to NodeBB v4.3 + New Features

Qt and pkg-config

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 1.8k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Run pkg-config --list-all to check if you have Qt Libraries installed there.

    Are you targeting your distribution provided Qt ?
    Are you using a manually written Makefile ?

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

    O 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      Run pkg-config --list-all to check if you have Qt Libraries installed there.

      Are you targeting your distribution provided Qt ?
      Are you using a manually written Makefile ?

      O Offline
      O Offline
      oneeyeman1
      wrote on last edited by
      #3

      @SGaist said in Qt and pkg-config:

      Hi,

      Run pkg-config --list-all to check if you have Qt Libraries installed there.

      Will check it tonight.
      Also, I do have them installed (and I ran KDE WM).

      However, running "pkg-config --cxxflags" gives an error.
      Unfortunately I'm at work and not in front of that machine.

      Are you targeting your distribution provided Qt ?

      Yes. Also, iot is possible to have 2 versions installed, right?

      Are you using a manually written Makefile ?

      No. My Makefile is generated by Anjuta IDE.

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

        I would recommend moving to a project management tool like cmake. It will allow you to more easily switch between different versions of a framework like Qt.

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

        O 1 Reply Last reply
        1
        • SGaistS SGaist

          I would recommend moving to a project management tool like cmake. It will allow you to more easily switch between different versions of a framework like Qt.

          O Offline
          O Offline
          oneeyeman1
          wrote on last edited by
          #5

          Hi,
          @SGaist said in Qt and pkg-config:

          I would recommend moving to a project management tool like cmake. It will allow you to more easily switch between different versions of a framework like Qt.

          I'm still doing development and testing.

          CMake is a good tool to create a distribution Makefile when everything is already done and ready to be shipped.

          I will update the thread with the info running pkg-config when I get home.

          Thank you.

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

            @oneeyeman1 said in Qt and pkg-config:

            CMake is a good tool to create a distribution Makefile when everything is already done and ready to be shipped.

            No no, it's a tool to use from the start to manage your project and its dependencies.

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

            O 1 Reply Last reply
            1
            • SGaistS SGaist

              @oneeyeman1 said in Qt and pkg-config:

              CMake is a good tool to create a distribution Makefile when everything is already done and ready to be shipped.

              No no, it's a tool to use from the start to manage your project and its dependencies.

              O Offline
              O Offline
              oneeyeman1
              wrote on last edited by
              #7

              Hi,
              @SGaist said in Qt and pkg-config:

              @oneeyeman1 said in Qt and pkg-config:

              CMake is a good tool to create a distribution Makefile when everything is already done and ready to be shipped.

              No no, it's a tool to use from the start to manage your project and its dependencies.

              Then what is IDE for?
              It is not to just edit and debug the code, it is also a tool to generate the project and create an appropriate Makefile.

              Thank you.

              jsulmJ 1 Reply Last reply
              0
              • O oneeyeman1

                Hi,
                @SGaist said in Qt and pkg-config:

                @oneeyeman1 said in Qt and pkg-config:

                CMake is a good tool to create a distribution Makefile when everything is already done and ready to be shipped.

                No no, it's a tool to use from the start to manage your project and its dependencies.

                Then what is IDE for?
                It is not to just edit and debug the code, it is also a tool to generate the project and create an appropriate Makefile.

                Thank you.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @oneeyeman1 said in Qt and pkg-config:

                It is not to just edit and debug the code, it is also a tool to generate the project and create an appropriate Makefile.

                No, in QtCreator this is done ether by qmake or cmake. QtCreator itself does not generate any makefiles. Why should it if there are already build tools like qmake/cmake? This also applies to most other IDEs, even Microsoft Visual Studio which uses MSBuild and also supports CMake.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                O 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @oneeyeman1 said in Qt and pkg-config:

                  It is not to just edit and debug the code, it is also a tool to generate the project and create an appropriate Makefile.

                  No, in QtCreator this is done ether by qmake or cmake. QtCreator itself does not generate any makefiles. Why should it if there are already build tools like qmake/cmake? This also applies to most other IDEs, even Microsoft Visual Studio which uses MSBuild and also supports CMake.

                  O Offline
                  O Offline
                  oneeyeman1
                  wrote on last edited by
                  #9

                  Hi,
                  @jsulm

                  I don't know anything about QtCreator.
                  All I know is that when I try to create a solution in MSVC it will crete a project and then I will set the appropriate include/lib options.

                  Xcode is kind of the same way.

                  In Anjuta I create a workspace, add the project(s) and it will generate the Makefile for the build, based on the appropriate template.

                  Thank you.

                  P.S.: Now, all I need is to ask the shell where the Qt headers/libraries are...

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

                    Xcode as well as Visual Studio have concepts of higher level projects.

                    It looks like Anjuta hasn't seen an update for quite some time with regard to modern project management system like cmake, qmake or the others that exists.

                    You really should consider moving to a more modern IDE like Qt Creator, Kdevelop, or even Visual Studio Code.

                    It would make your task simpler in the long run.

                    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
                    1
                    • Kent-DorfmanK Offline
                      Kent-DorfmanK Offline
                      Kent-Dorfman
                      wrote on last edited by
                      #11

                      I've never known Qt to work with pkg-config, nor be compatible with it, since Qt uses its own Makefile gnerator.

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

                        Qt has support for pkg-config both to use it to link to libraries as well as for the lib template. From the looks of it, on Debian, there are .pc files available for the various Qt modules.

                        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
                        1

                        • Login

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