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. [Solved] Qt5 static compile on windows: how to install/clean up?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt5 static compile on windows: how to install/clean up?

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

    I managed to successfully build Qt5 msvc2013 static, but now I'm left with a folder about 3GB in size, while the non-static install is only 1,52GB in size.

    How do I clean up the build directory without deleting Qt5 itself? This is what nmake confclean results in.
    Alternatively, I saw that on linux you can use -prefix option for configure to set the install directory, but that doesn't seem to work for windows.

    P.S.: the search feature gets stuck at "loading..." for me, so excuse me if it was mentioned somewhere already.

    P.S.S.: as much as I love Qt, the compiling part is just a huge mess. Why would -prefix set the qmake paths in a way that it is still looking for files in the wrong places? example:

    "Cannot read R:/qt-everywhere-opensource-src-5.4.0/qtbase/mkspecs/modules-inst/qt_lib_bootstrap_private.pri: The system cannot find the path specified."

    And those are the paths actually set in qmake:

    QT_SYSROOT:
    QT_INSTALL_PREFIX:E:/Qt/5.4/msvc2013_32_static
    QT_INSTALL_ARCHDATA:E:/Qt/5.4/msvc2013_32_static
    QT_INSTALL_DATA:E:/Qt/5.4/msvc2013_32_static
    QT_INSTALL_DOCS:E:/Qt/5.4/msvc2013_32_static/doc
    QT_INSTALL_HEADERS:E:/Qt/5.4/msvc2013_32_static/include
    QT_INSTALL_LIBS:E:/Qt/5.4/msvc2013_32_static/lib
    QT_INSTALL_LIBEXECS:E:/Qt/5.4/msvc2013_32_static/bin
    QT_INSTALL_BINS:E:/Qt/5.4/msvc2013_32_static/bin
    QT_INSTALL_TESTS:E:/Qt/5.4/msvc2013_32_static/tests
    QT_INSTALL_PLUGINS:E:/Qt/5.4/msvc2013_32_static/plugins
    QT_INSTALL_IMPORTS:E:/Qt/5.4/msvc2013_32_static/imports
    QT_INSTALL_QML:E:/Qt/5.4/msvc2013_32_static/qml
    QT_INSTALL_TRANSLATIONS:E:/Qt/5.4/msvc2013_32_static/translations
    QT_INSTALL_CONFIGURATION:
    QT_INSTALL_EXAMPLES:E:/Qt/5.4/msvc2013_32_static/examples
    QT_INSTALL_DEMOS:E:/Qt/5.4/msvc2013_32_static/examples
    QT_HOST_PREFIX:E:/Qt/5.4/msvc2013_32_static
    QT_HOST_DATA:E:/Qt/5.4/msvc2013_32_static
    QT_HOST_BINS:E:/Qt/5.4/msvc2013_32_static/bin
    QT_HOST_LIBS:E:/Qt/5.4/msvc2013_32_static/lib
    QMAKE_SPEC:win32-msvc2013
    QMAKE_XSPEC:win32-msvc2013
    QMAKE_VERSION:3.0
    QT_VERSION:5.4.0

    qt.conf also contains the prefix only, as
    @Prefix=..
    @
    which would point to the directory right outside bin = the prefix I set. Also tried setting sysroot within QtCreator, no change. Where is it pulling the paths off from?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      soukyuu
      wrote on last edited by
      #2

      Well, I still don't know where it pulls the path from, but I managed to figure out what I can delete without breaking anything.

      Basically, one can delete everything except the files in the qtbase dir. As long as one doesn't move the qtbase dir from the directory it was built in, everything is working.

      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