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 build failed

[Solved] Qt5 static build failed

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

    Hi, I'm trying to build Qt5 as static library but encountered errors.

    At Apr 21th, I had a try, encountered this error:

    @
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:D:\Qt\Qt5.0.2modified\qtbase\bin\qmlscene.exe.embe
    d.manifest /OUT:D:\Qt\Qt5.0.2modified\qtbase\bin\qmlscene.exe @C:\DOCUME~1\WEIYU
    E~1\LOCALS~1\Temp\qmlscene.exe.4184.31.jom
    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    jom: D:\Qt\Qt5.0.2modified\qtdeclarative\tools\qmlscene\Makefile.Release [D:\Qt
    Qt5.0.2modified\qtbase\bin\qmlscene.exe] Error 1181
    jom: D:\Qt\Qt5.0.2modified\qtdeclarative\tools\qmlscene\Makefile [release] Error
    2
    jom: D:\Qt\Qt5.0.2modified\qtdeclarative\tools\Makefile [sub-qmlscene-make_first
    ] Error 2
    jom: D:\Qt\Qt5.0.2modified\qtdeclarative\Makefile [sub-tools-make_first] Error 2

    jom: D:\Qt\Qt5.0.2modified\Makefile [module-qtdeclarative-make_first] Error 2
    @

    It's basically a 5.0.2 source. I don't know why I got this. My configuration args is:
    configure -debug-and-release -static -mp -nomake examples -nomake tests -nomake webkit -no-vcproj

    I'm using jom. on Windows XP.

    Today (May 3th) I tried again using the same configuration args, encounted this:

    @
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-050
    2\qtbase\bin\dumpdoc.exe.embed.manifest /OUT:E:\Qt\qt-everywhere-opensource-src-
    5.1.0-beta1-0502\qtbase\bin\dumpdoc.exe @C:\DOCUME~1\WEIYUE~1\LOCALS~1\Temp\dump
    doc.exe.5988.860.jom
    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    jom: E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\qtactiveqt\tools\dumpdo
    c\Makefile.Release [E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\qtbase\b
    in\dumpdoc.exe] Error 1181
    jom: E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\qtactiveqt\tools\dumpdo
    c\Makefile [release] Error 2
    jom: E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\qtactiveqt\tools\Makefi
    le [sub-dumpdoc-make_first-ordered] Error 2
    jom: E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\qtactiveqt\Makefile [su
    b-tools-make_first] Error 2
    jom: E:\Qt\qt-everywhere-opensource-src-5.1.0-beta1-0502\Makefile [module-qtacti
    veqt-make_first] Error 2
    @

    It seems error occured on different positions. But they all result in a same sentence:
    @
    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    @

    I'm using the source from http://download.qt-project.org/snapshots/qt/5.1/5.1.0-beta1/backups/2013-05-02-11/single/

    Then,
    I changed a machine (Windows7) and using nmake. Also error:

    @
    qmlscene_plugin_import.cpp
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
    /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
    n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture
    ='
    '" /MANIFEST /MANIFESTFILE:D:\Qt\qt-everywhere-opensource-src-5.1.0-beta1\qtb
    ase\bin\qmlscene.exe.embed.manifest /OUT:D:\Qt\qt-everywhere-opensource-src-5.1.
    0-beta1\qtbase\bin\qmlscene.exe @C:\Users\WANGZI~1\AppData\Local\Temp\nm342E.tmp

    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
    N\link.EXE"' : return code '0x49d'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
    N\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @

    Also 'Files\Microsoft.obj'.

    And it is different from https://bugreports.qt-project.org/browse/QTBUG-28196 , I think.

    What am I missing?

    Thank you !

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

      "-nomake webkit" doesnt exist .. try "-skip qtwebkit"

      this line works for me (Windows 7 32bit - msvc2010):

      configure.bat -opensource -confirm-license -prefix %CD%\qtbase -make libs -make tools -make examples -no-incredibuild-xge -release -opengl desktop -static -skip qtwebkit -no-icu -nomake tests -nomake examples

      Sergio Ahumada

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weiyuemin
        wrote on last edited by
        #3

        seahumad: I just successfully built using your configuration. Thank you !

        1 Reply Last reply
        0
        • W Offline
          W Offline
          weiyuemin
          wrote on last edited by
          #4

          Well, when I have a try with a hello world program using QtCreator, I faced the same problem described in this thread: http://qt-project.org/forums/viewthread/22566

          Will have more try tomorrow.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            weiyuemin
            wrote on last edited by
            #5

            seahumad: Your configuration line does not work on my another machine.. (Windows 7 32bit - msvc2010) with the same error. (something like cannot open input file 'Files\Microsoft.obj')

            Then I successfully built it by installing the DirectX SDK without names in path.

            It seemed to be https://bugreports.qt-project.org/browse/QTBUG-28920

            Thank you.

            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