[SOLVED] Building Qt5.0.0 without Print Support Module



  • 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.



  • 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



  • 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.



  • 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 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.



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

    Any luck with that? :)



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.