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. Unable to build qt-4.8.0 x86 (32 bit) static on windows xp64 [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Unable to build qt-4.8.0 x86 (32 bit) static on windows xp64 [SOLVED]

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

    After downloading qt-everywhere-opensource-src-4.8.0.zip

    I unzipped the source in the following directory:
    @E:\src\qt-everywhere-opensource-src-4.8.0@

    I then launched visual studio command prompt 2010 (not x64).
    @E:\build\static_qt-4.8.0-x86> set QTDIR=E:\src\qt-everywhere-opensource-src-4.8.0@
    @E:\build\static_qt-4.8.0-x86> set PATH=%QTDIR%\bin;%PATH%@
    @E:\build\static_qt-4.8.0-x86> set QMAKESPEC=win32-msvc2010@

    I encountered no errors building a shared version as shown below:
    @E:\build\shared_qt-4.8.0-x86> ....\src\qt-everywhere-opensource-src-4.8.0\configure -debug-and-release -opensource -mp -shared -platform win32-msvc2010
    E:\build\shared_qt-4.8.0-x86> nmake @

    But when I do a similar build for static I get errors:
    @E:\build\static_qt-4.8.0-x86> ....\src\qt-everywhere-opensource-src-4.8.0\configure -debug-and-release -opensource -mp -static -platform win32-msvc2010
    E:\build\static_qt-4.8.0-x86> nmake
    .
    .
    .
    mt.exe -nologo -manifest "tmp\obj\debug_static\bearermonitor.intermediate.manifest" -outputresource:debug\bearermonitor.exe;1
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe"' : return code '0x1f'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\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.@

    I had no problems building both shared and static x64 versions, it is just the static 32 bit giving me errors.
    What am I doing wrong?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      The error seem to be in the example section. So, the libs are probably already compiled and should be fine.

      This could be a problem of msvc. If you like to retry, may be do not use -mp option. I have seen strange problems with parallel compilation on Win7 64 bit with msvc 2005. I was required to restart the compilation several times. Eventually it finished and was ok. The sequential compilation was running through ok.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PopcornKing
        wrote on last edited by
        #3

        [quote author="koahnig" date="1327745693"]
        The error seem to be in the example section. So, the libs are probably already compiled and should be fine. [/quote]
        You are right that the libs were already built; this was the most important part so I'm not too worried about the error now. Thanks for your insight!

        [quote author="koahnig" date="1327745693"]
        This could be a problem of msvc. If you like to retry, may be do not use -mp option. I have seen strange problems with parallel compilation on Win7 64 bit with msvc 2005.[/quote]
        I'll try without the -mp option and if that works then I'll update the thread title as solved.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PopcornKing
          wrote on last edited by
          #4

          Turning off MP didnt work. The configure command seems to ignore -mp or -no-mp switch anyway. I had to change the QMAKE_CFLAGS_MP in E:\build\shared_qt-4.8.0-x86\mkspecs\win32-msvc-2010\qmake.conf

          The libraries were at least built before crash as mentioned.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            I have issued a bug report for "configure to ignore -mp":https://bugreports.qt-project.org/browse/QTBUG-23929 .

            Vote the answer(s) that helped you to solve your issue(s)

            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