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 do you re configure a Qt build from source?
Forum Updated to NodeBB v4.3 + New Features

How do you re configure a Qt build from source?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 820 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.
  • R Offline
    R Offline
    Rich v
    wrote on last edited by
    #1

    Once you've typed up the configure command in the source folder and hit return, can you change anything you've configured and build again? For instance, I did a -nomake Tools but now realize I need the quick compiler. It's not obvious to me how to re-configure for a fresh build. From what I can tell a bunch of in-source Makefiles are created. Is there a way to perform a different configuration command without downloading a completely new Qt source tree?

    Sorry if this is a dumb question. Building for QNX, and Qt binaries aren't provided.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      The build process for Qt from source is usually done in a build directory separate from the sources themselves (shadow build) like this:

      mkdir ~/qt-build
      cd ~/qt-build
      ~/qt-source/configure -prefix /opt/Qt5.15
      qmake
      

      In that case you can get a completely clean build, with as many variations as you like, each in their own directory. The source remains unchanged.

      If you have done an in-source build then, as you say, you get configure files and Makefiles interspersed in your source. Have you tried just re-running configure with your new options? If that does not work then you may find that make distclean will remove all the configuration and intermediate files but I cannot say for sure.

      You should also be able to shadow build from the tainted source folders.

      1 Reply Last reply
      3
      • R Offline
        R Offline
        Rich v
        wrote on last edited by
        #3

        Thanks - I was following some internal documentation which is probably not the best idea. Your answer makes sense.

        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