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. When is host_build true?
QtWS25 Last Chance

When is host_build true?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 305 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.
  • Y Offline
    Y Offline
    yetanotherqtfan
    wrote on last edited by
    #1

    I'm building qt5 from source on Windows using mingw kit. I find the qmake condition host_build is false. There are many occurrences in .prf files such as:

    !host_build|!cross_compile {
        use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD
        enable_new_dtags: QMAKE_LFLAGS += $$QMAKE_LFLAGS_NEW_DTAGS
        enable_gdb_index: QMAKE_LFLAGS += $$QMAKE_LFLAGS_GDB_INDEX
    }
    

    I want to know the meaning of host_build, and how/when is it set to true?

    Thanks

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yetanotherqtfan
      wrote on last edited by
      #2

      Qt experts, please help!

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        When cross compiling a project, host_build is set to true indicates that the output of the build should run on the developer machine (the host) and not the cross compile target

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1
        • Y Offline
          Y Offline
          yetanotherqtfan
          wrote on last edited by
          #4

          Thanks, @VRonin Can you please point me with the source code line that sets host_build to true? Why host_build is false in my build, considering my build runs on the developer machine?

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            Can you please point me with the source code line that sets host_build to true?

            https://code.woboq.org/qt5/qtbase/qmake/library/qmakeparser.cpp.html#1244
            it's a config option

            If you are not cross compiling this option should be irrelevant to you. what is the problem you are experiencing?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            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