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. *still* having problems building Qt (static)
Forum Updated to NodeBB v4.3 + New Features

*still* having problems building Qt (static)

Scheduled Pinned Locked Moved Solved Installation and Deployment
22 Posts 4 Posters 2.4k Views 1 Watching
  • 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 mzimmers
    23 Mar 2025, 16:09
    1. Make sure that PATH includes paths to:
    • the toolchain (eg, C:\qt\tools\mingw1120_64\bin)
    • a Ninja (eg, C:\Program Files\ninja-win)
    1. Create and enter the directory you want for your static build.

    2. Use the following configure command:

    C:/Qt/6.8.2/Src/configure.bat -prefix c:/qt_static/6.8.2 -static -static-runtime -release -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtdatavis3d -skip qtdoc -skip qtgrpc -skip qtinsighttracker -skip qtmultimedia -skip qtgraphs -skip qtcharts -skip qtquick3d -skip qtquick3dphysics -skip qtquicktimeline -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtcoap -skip qtspeech -redo

    (of course, you'll want to select your own "-skip" modules)
    4. cmake --build . --parallel

    1. cmake --install .
    M Offline
    M Offline
    Mr.Anubis
    wrote on 23 Mar 2025, 16:15 last edited by Mr.Anubis
    #21

    @mzimmers Thanks a lot :)

    could you figure out why didn't "../qt5/configure" work? and what did you infer exactly why it was not working

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mzimmers
      wrote on 23 Mar 2025, 16:26 last edited by
      #22

      I'm sorry, but it's been too long ago. There have been so many changes in Qt since then, it very well may work now, but my procedure works correctly, so I haven't been motivated to experiment.

      In fact, I don't think I'm even using github for my Qt source files any longer, but am obtaining them through the Qt maintenance tool. So, there are alternatives to my method.

      1 Reply Last reply
      1

      21/22

      23 Mar 2025, 16:15

      • Login

      • Login or register to search.
      21 out of 22
      • First post
        21/22
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved