Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    \include folder lacks of header files contained in \src folder

    Installation and Deployment
    3
    5
    4826
    Loading More Posts
    • 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
      ManuelL last edited by

      Hi,

      I'm trying to build Qt in shared format (need to include webkit) and create a package used internally to develop our application. I'm quite confused about the resulting structure for the needed header files.

      Basically I would like to produce a package with the following structure on the file system

      @\bin --> tools (moc, uic, ...) exec, dlls, ...
      \iconimages --> icon formats dlls, lib, pdb
      \imageformats --> image formats dlls, lib, pdb
      \lib --> qt dlls, lib, pdb
      \include --> header files@

      however, when compiling the final application that uses Qt, it comes out that the \include folder needs the headers files contained in the \src folder: e.g. QtNetwork/qnetworkaccessmanager.h contains

      @#include "../../src/network/access/qnetworkaccessmanager.h"@

      This requires the package I want to produce to include the entire \src folder (maybe "manually" stripped from *.cpp, *_p.h, ...).

      My question is: is there a configure/make switch that enables the build process to put in the \include folder all the needed header files so I don't have to add the \src folder to successfully compile the final application?

      If this is not possible, could someone please make a list of all the file types I can strip from the \src folder? I'm not sure if the only needed files are the *.h minus the *_p.h files (that in my understanding of the problem are private header files).

      Thank you

      1 Reply Last reply Reply Quote 0
      • D
        dword last edited by

        I've seen this ugly src include too... the only simple solution for us was to purge the src directory from everything but .h files. I would be interested in a better solution too.

        1 Reply Last reply Reply Quote 0
        • G
          giesbert last edited by

          If you use the new Qt SDK, it's clean :-)
          There you only get the headers in the include folder, and no src folder. You can download the src folder separately.
          If you download the source zip file, it stays as is, with the headers in the source folder.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply Reply Quote 0
          • D
            dword last edited by

            Thank Gerolf, it's good to know.But...

            • the 'Beta' sufix would make my IT responsible sweat
            • it's concerning for my point of view that 'framework only' != 'SDK - tools'
            • Well, I'm not sure that having to download 100 MB of (maybe useless) extra stuff to fix that weird inclusion is a satisfying solution
            1 Reply Last reply Reply Quote 0
            • G
              giesbert last edited by

              The Beta is used as some parts are beta.

              Creator is release 2.1
              Qt is 4.7.1 or 4.7.2 of dexktop
              Miobility is: not sure
              Meego is: not sure
              Symbian is: not sure

              Use the online installer.
              Then you can select, what should be installed.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post