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. [SOLVED] Building Qt5.0.0 without Print Support Module
QtWS25 Last Chance

[SOLVED] Building Qt5.0.0 without Print Support Module

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 6.8k 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
    astodolski
    wrote on 29 Jan 2013, 02:27 last edited by
    #1

    Is there a way to build from source version 5.0.0 without the Print Support Module. Ideally, I want to determine why the build crashes building Qt5PrintSupport.dll but I want to leave out that module to see if the rest of the package builds to completion. There doesn't appear to be a configure option to leave out the print support module.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JoSoDeHo
      wrote on 31 Jan 2013, 13:53 last edited by
      #2

      I think I have solved this:

      Makefile.release (or debug or both) in C:\Qt\Qt5.0.0\qtbase\src\printsupport

      LIBS = winspool.lib comdlg32.lib gdi32.lib oleaut32.lib imm32.lib winmm.lib ws2_32.lib ole32.lib user32.lib advapi32.lib /LIBPATH:C:/Qt/Qt5.0.0/qtbase/lib C:/Qt/Qt5.0.0/qtbase/lib\Qt5Widgets.lib C:/Qt/Qt5.0.0/qtbase/lib\Qt5Gui.lib C:/Qt/Qt5.0.0/qtbase/lib\Qt5Core.lib .obj\release_shared\Qt5PrintSupport_resource.res

      1 Reply Last reply
      0
      • A Offline
        A Offline
        astodolski
        wrote on 31 Jan 2013, 15:06 last edited by
        #3

        I am assuming you are fixing the print support module through modifying the makefile after the fact and then re-running nmake? I ask this because I wish to know if then you are successful doing a complete build from source of version 5.0.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JoSoDeHo
          wrote on 31 Jan 2013, 15:14 last edited by
          #4

          Right, I am modifying the file after configure, and after the build failure actually.
          The line I wrote probably holds libs that are unnecessary, I just took them from the makefile of the QTGui component that successfully builds before this and makes these calls too.
          To be clear - I don't really know what I am doing here.
          Now I am stuck at building V8 which also gives me linker problems.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            astodolski
            wrote on 31 Jan 2013, 17:06 last edited by
            #5

            [quote author="JoSoDeHo" date="1359645288"]Right, I am modifying the file after configure, and after the build failure actually.
            The line I wrote probably holds libs that are unnecessary, I just took them from the makefile of the QTGui component that successfully builds before this and makes these calls too.
            To be clear - I don't really know what I am doing here.
            Now I am stuck at building V8 which also gives me linker problems.[/quote]

            I appreciate the help and the honest remark.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JoSoDeHo
              wrote on 1 Feb 2013, 15:18 last edited by
              #6

              Right now I'm stuck with the same error as this guy... https://bugreports.qt-project.org/browse/QTBUG-28849

              Any luck with that? :)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                astodolski
                wrote on 1 Feb 2013, 16:33 last edited by
                #7

                I want to share my experience so far with this thread. This is actually a part of a bigger issue - completing a rebuild of Qt 5.

                I installed the per-requisites to performing a build from source as called out in the README. If it wasn't called for in the README, I didn't install it! However, looking at another source of information regarding the pre-req's for Windows, I decided to install the latest Windows DirectX SDK even though the README didn't call for it.

                This so far had not helped in the build. I tried the default suggestion configure line for the rebuild:

                @configure -prefix C:\Qt\5.0.0\qtbase -opensource -nomake tests@

                That use along with nmake kills the build from completing. It always dies on Qt5PrintSupport.dll.
                The next thing I tried was to add configure options. I don't know yet why these worked but this what became a source of success. The configure line used was:

                @configure -prefix C:\Qt\5.0.0\qtbase -opensource -no-fast -nomake tests -opengl desktop -no-icu@

                This when run produced the following config.summary file in the qtbase folder:

                @
                Environment:
                INCLUDE=
                C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE
                C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE
                C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE\gl

                LIB=
                  C:\Program Files\Microsoft Visual Studio 10.0\VC\Lib
                  C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib
                  C:\Windows\Microsoft.NET\Framework\v4.0.30319
                  C:\Windows\Microsoft.NET\Framework\v3.5
                  
                  
                PATH=
                  C:\Windows\Microsoft.NET\Framework\v4.0.30319
                  C:\Windows\Microsoft.NET\Framework\v3.5
                  
                  C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
                  C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools
                  
                  C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin
                  C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\VCPackages
                  
                  C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
                  C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
                  
                  C:\Python33\
                  C:\Perl\site\bin
                  C:\Perl\bin
                  C:\Windows\system32
                  C:\Windows
                  C:\Windows\System32\Wbem
                  C:\Windows\System32\WindowsPowerShell\v1.0\
                  C:\Program Files\Microsoft Windows Performance Toolkit\
                  C:\Qt\5.0.0\qtbase\bin
                  C:\Qt\5.0.0\gnuwin32\bin
                

                Configuration:
                minimal-config
                small-config
                medium-config
                large-config
                full-config
                pcre
                debug
                Qt Configuration:
                debug_and_release build_all release
                debug
                shared
                zlib
                png
                freetype
                build_all
                accessibility
                opengl
                audio-backend
                native-gestures
                qpa
                concurrent
                minimal-config
                small-config
                medium-config
                large-config
                full-config

                QMAKESPEC................... (env)
                Architecture................i386, features:
                Host Architecture...........i386, features:
                Maketool....................nmake
                Debug build.................yes (combined)
                Default build...............debug
                Force debug info............no
                C++11 support...............auto
                Link Time Code Generation...no
                Accessibility support.......yes
                RTTI support................yes
                SSE2 support................yes
                SSE3 support................yes
                SSSE3 support...............yes
                SSE4.1 support..............yes
                SSE4.2 support..............yes
                AVX support.................yes
                AVX2 support................no
                NEON support................no
                IWMMXT support..............no
                OpenGL support..............yes
                Large File support..........yes
                NIS support.................no
                Iconv support...............no
                Inotify support.............no
                Glib support................no
                CUPS support................no
                OpenVG support..............no
                OpenSSL support.............no
                QtDBus support..............no
                QtWidgets module support....yes
                QML debugging...............yes
                DirectWrite support.........no
                Use system proxies..........no

                Third Party Libraries:
                ZLIB support............qt
                GIF support.............plugin
                JPEG support............plugin
                PNG support.............yes
                FreeType support........yes

                PCRE support............qt
                ICU support.............no
                ANGLE...................no
                

                Styles:
                Windows.................yes
                Windows XP..............yes
                Windows Vista...........yes
                Fusion..................yes
                Windows CE..............no
                Windows Mobile..........no

                Sql Drivers:
                ODBC....................no
                MySQL...................no
                OCI.....................no
                PostgreSQL..............no
                TDS.....................no
                DB2.....................no
                SQLite..................plugin (qt)
                SQLite2.................no
                InterBase...............no

                Sources are in..............C:\Qt\5.0.0\qtbase
                Build is done in............C:\Qt\5.0.0\qtbase
                Install prefix..............C:\Qt\5.0.0\qtbase
                Headers installed to........C:\Qt\5.0.0\qtbase\include
                Libraries installed to......C:\Qt\5.0.0\qtbase\lib
                Arch-dep. data to...........C:\Qt\5.0.0\qtbase
                Plugins installed to........C:\Qt\5.0.0\qtbase\plugins
                Library execs installed to..
                QML1 imports installed to...C:\Qt\5.0.0\qtbase\imports
                QML2 imports installed to...C:\Qt\5.0.0\qtbase\qml
                Binaries installed to.......C:\Qt\5.0.0\qtbase\bin
                Arch-indep. data to.........C:\Qt\5.0.0\qtbase
                Docs installed to...........C:\Qt\5.0.0\qtbase\doc
                Translations installed to...C:\Qt\5.0.0\qtbase\translations
                Examples installed to.......C:\Qt\5.0.0\qtbase\examples
                Tests installed to..........C:\Qt\5.0.0\qtbase\tests
                @

                The build was successful to completion and I can't explain why. I hope this was detailed enough so to help others who may be having similar issues.

                1 Reply Last reply
                0

                6/7

                1 Feb 2013, 15:18

                • Login

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