Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Include paths when using conan
QtWS25 Last Chance

Qt Include paths when using conan

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 610 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.
  • MikhailGM Offline
    MikhailGM Offline
    MikhailG
    wrote on last edited by
    #1

    We build Qt as a conan-package. During the build we redefine MODULE_VERSION = major.minor.patch.build_number inside .qmake.conf in every QT_MODULE

    load(qt_build_config)
    CONFIG += warning_clean
    
    QT_SOURCE_TREE = $$PWD
    QT_BUILD_TREE = $$shadowed($$PWD)
    
    MODULE_VERSION = 5.12.5.234  # major.minor.patch.build_number
    

    Because of that we end up with unnecessary build_version number in the include paths.

    include\QtCore\5.12.5.234  // .234 is unnecessary 
    

    We use such approach to version binaries:
    Screenshot_1.png

    The question is how to keep binaries versioning AND get rid of build_number from include paths:

    include\QtCore\5.12.5`.234`  //wrong
    include\QtCore\5.12.5  //OK
    
    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      You build Qt only once as third party lib, right? If yes, why is the build number added in the first place?

      MikhailGM 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        You build Qt only once as third party lib, right? If yes, why is the build number added in the first place?

        MikhailGM Offline
        MikhailGM Offline
        MikhailG
        wrote on last edited by
        #3

        @JoeCFD no not once. we are building it with custom patches. so we have to increment the build number

        JoeCFDJ 1 Reply Last reply
        0
        • MikhailGM MikhailG

          @JoeCFD no not once. we are building it with custom patches. so we have to increment the build number

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            Are you using cmake or qmake, or both?
            I think you can get env QTDIR on windows.
            Include path of Qt is set automatically. If your path with build_number is used, simply use QTDIR + build_number to add include path in the pro file explicitly. As long as the include path is set properly, it should not matter where it is located.

            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