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. Build on Windows with print support disabled

Build on Windows with print support disabled

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 3 Posters 1.6k 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.
  • A Offline
    A Offline
    azaclauson
    wrote on last edited by
    #1

    I'm attempting to build v5.12.6 from source on Windows 10 with the Visual Studio 2019 v16.4 toolchain. I have been able to build successfully but now need to get the size down and am attempting to remove unneeded features.

    I don't need print support and have disabled all the options I can find that seem relevant. The problem is I then get the compiler error below when running nmake.

    C:\Dev\qt-everywhere-src-5.12.6\qt-everywhere-src-5.12.6\qtbase\include\QtPrintSupport\../../src/printsupport/kernel/qtprintsupportglobal.h(44): fatal error C1083: Cannot open include file: 'QtPrintSupport/qtprintsupport-config.h': No such file or directory (compiling source file C:\Dev\qt-everywhere-src-5.12.6\qt-everywhere-src-5.12.6\qttools\src\assistant\assistant\centralwidget.cpp)
    

    My configure command line is:

    ..\configure -debug-and-release -opensource -platform win32-msvc -opengl desktop -no-shared -no-static-runtime -mp -c++std c++11 -confirm-license -ltcg -static -make libs -make tools  -optimized-tools -pch -qt-libpng -qt-pcre -qt-harfbuzz -system-zlib -no-compile-examples -no-cups -no-egl -no-eglfs -no-freetype -no-gif -no-glib -no-icu -no-ico -no-iconv -no-kms -no-linuxfb -no-libjpeg -no-libproxy -no-libudev -no-mtdev -no-openssl -no-openvg -no-reduce-relocations -no-sctp -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-system-proxies -no-use-gold-linker -nomake examples -nomake tests -no-feature-bearermanagement -no-feature-colordialog -no-feature-commandlineparser -no-feature-concurrent -no-feature-dial -no-feature-ftp -no-feature-http -no-feature-image_heuristic_mask -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-networkdiskcache -no-feature-networkproxy -no-feature-pdf -no-feature-printdialog -no-feature-printer -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-sessionmanager -no-feature-socks5  -no-feature-statemachine -no-feature-syntaxhighlighter -no-feature-textodfwriter -no-feature-topleveldomain -no-feature-udpsocket -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-vnc -no-feature-wizard -no-feature-xml -no-dbus -no-gtk -no-opengles3 -no-angle -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -skip webengine -IC:\tools\vcpkg\installed\x64-windows-static\include -LC:\tools\vcpkg\installed\x64-windows-static\lib -prefix C:\Qt5.12.6_x64_static_vs2019
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Don't do that. You should pass -skip qttools as configure parameter.

      As for the configuration tool, there's one here but IIRC, it's a commercial tool.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Do you need the QtTools module ?
        If not, just skip it for the time being.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • A Offline
          A Offline
          azaclauson
          wrote on last edited by
          #3

          Thx for the response.

          I removed the make tools option but that ended up failing the build with a compilation error at a different point.

          Is there any kind of tool that allows different Qt features to be selected and a configure command generated? I've been doing a lot of trial and error and ultimately end up just enabling more and more features until the build works.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Don't do that. You should pass -skip qttools as configure parameter.

            As for the configuration tool, there's one here but IIRC, it's a commercial tool.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #5

              On which line exactly in centralwidget.cpp does this error occur? I don't see an include of it somewhere in there.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • A Offline
                A Offline
                azaclauson
                wrote on last edited by azaclauson
                #6

                Thanks again for the help. I finally got it working by adding the suggested -skip qttools and removing the -no-feature-textedit option.

                Configure for the working build was:

                ..\configure -debug-and-release -opensource -platform win32-msvc -opengl desktop -no-shared -no-static-runtime -mp -c++std c++11 -confirm-license -ltcg -static -make libs -make tools -optimized-tools -pch -qt-libpng -qt-pcre -qt-harfbuzz -system-zlib -no-compile-examples -no-angle -no-cups -no-dbus -no-egl -no-eglfs -no-freetype -no-gif -no-glib -no-gtk -no-icu -no-ico -no-iconv -no-kms -no-linuxfb -no-libjpeg -no-libproxy -no-libudev -no-mtdev -no-opengles3 -no-openssl -no-openvg -no-reduce-relocations -no-sctp -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sqlite -no-system-proxies -no-use-gold-linker -nomake examples -nomake tests -no-feature-bearermanagement -no-feature-colordialog -no-feature-commandlineparser -no-feature-concurrent -no-feature-dial -no-feature-dtls -no-feature-ftp -no-feature-http -no-feature-image_heuristic_mask -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-networkdiskcache -no-feature-networkproxy -no-feature-pdf -no-feature-printdialog -no-feature-printer -no-feature-printpreviewdialog -no-feature-printpreviewwidget  -no-feature-sessionmanager -no-feature-socks5 -no-feature-sqlmodel -no-feature-statemachine -no-feature-syntaxhighlighter -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-topleveldomain -no-feature-udpsocket -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-vnc -no-feature-whatsthis -no-feature-wizard -no-feature-xml -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -IC:\tools\vcpkg\installed\x64-windows-static\include -LC:\tools\vcpkg\installed\x64-windows-static\lib -prefix C:\Qt5.12.6_x64_static_vs2019
                
                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