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. How to automatically generate the required include files in module include folder?
QtWS25 Last Chance

How to automatically generate the required include files in module include folder?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 840 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.
  • E Offline
    E Offline
    Eager
    wrote on last edited by
    #1

    I have created a module and on build it generated directories: bin, include, lib, etc.
    bin directory contains .dll files, lib directory contains .lib files, but against expectation the include directory doesn't have the required header files, it only have a directory named after the module which only contains QtModuleNameDepends file and nothing else!
    As this is my first time creating and building a module so I am not even sure if Qt automatically generate/import the required header files to the include directory. Can someone please verify if Qt generates those header files and if yes then what I may be doing wrong that I am not getting those files.

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

      Hi,

      What kind of module are you talking about ?

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

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What kind of module are you talking about ?

        E Offline
        E Offline
        Eager
        wrote on last edited by
        #3

        @SGaist It's custom module which I can use in my projects like this: qt += mymodule.
        Everything is built correctly but the include directory which is automatically generated in the build directly doesn't have the required header files of my module which I think should be copied there automatically. As a workaround right now I copy the header files manually into the include directory.

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

          Is the code of your module accessible somewhere ?

          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
          • E Eager

            @SGaist It's custom module which I can use in my projects like this: qt += mymodule.
            Everything is built correctly but the include directory which is automatically generated in the build directly doesn't have the required header files of my module which I think should be copied there automatically. As a workaround right now I copy the header files manually into the include directory.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Eager I think that is done by syncqt.pl with some magic I don't understand...

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • E Offline
              E Offline
              Eager
              wrote on last edited by
              #6

              I found the solution.
              When you run qmake, Qt's perl script "syncqt.pl" is called automatically. A fake empty ".git" directory is needed by the syncqt.pl script to run and generate required header files in the proper locations successfully.

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

                Great !

                Thank you for the feedback !

                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