Results 1 to 2 of 2

Thread: rcc crash buiding Qt 5

  1. #1

    Exclamation rcc crash buiding Qt 5

    Hello!

    I'm trying to build Qt 5 using Visual Studio 2008 SP1, Windows SDK 7.0 on Windows Vista SP2, following the guide "Building Qt 5 from Git" from qt-project.org.

    I think my configuration is ok, because running the configure tool with the following command…

    Qt Code:
    1. configure -developer-build -opensource -nomake examples -nomake tests -platform win32-msvc2008 -plugin-sql-sqlite
    To copy to clipboard, switch view to plain text mode 

    ... I get the following result

    Qt Code:
    1. Running configuration tests...
    2. Environment:
    3. INCLUDE=
    4. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE
    5. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE
    6. J:\Program Files\Microsoft SDKs\Windows\v7.0\include
    7.  
    8. LIB=
    9. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB
    10. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB
    11. J:\Program Files\Microsoft SDKs\Windows\v7.0\lib
    12.  
    13. PATH=
    14. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
    15. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN
    16. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
    17. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\bin
    18. C:\Windows\Microsoft.NET\Framework\
    19. C:\Windows\Microsoft.NET\Framework\\Microsoft .NET Framework 3.5 (Pre-Release Version)
    20. C:\Windows\Microsoft.NET\Framework\v2.0.50727
    21. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages
    22. J:\Program Files\Microsoft SDKs\Windows\v7.0\bin
    23. j:\Ruby193\bin
    24. J:\Perl\site\bin
    25. J:\Perl\bin
    26. C:\Windows\system32
    27. C:\Windows
    28. C:\Windows\System32\Wbem
    29. C:\Windows\System32\WindowsPowerShell\v1.0\
    30. J:\Python27
    31.  
    32. Configuration:
    33. warnings_are_errors
    34. pcre
    35. debug
    36. compile_examples
    37. Qt Configuration:
    38. private_tests
    39. minimal-config
    40. small-config
    41. medium-config
    42. large-config
    43. full-config
    44. debug_and_release build_all release
    45. debug
    46. shared
    47. system-zlib
    48. angle
    49. png
    50. freetype
    51. build_all
    52. accessibility
    53. opengl
    54. opengles2
    55. egl
    56. audio-backend
    57. wmf-backend
    58. native-gestures
    59. qpa
    60. concurrent
    61.  
    62. QMAKESPEC...................win32-msvc2008 (commandline)
    63. Architecture................i386, features:
    64. Host Architecture...........i386, features:
    65. Maketool....................nmake
    66. Debug build.................yes (combined)
    67. Default build...............debug
    68. Force debug info............no
    69. C++11 support...............auto
    70. Link Time Code Generation...no
    71. Accessibility support.......yes
    72. RTTI support................yes
    73. SSE2 support................yes
    74. SSE3 support................yes
    75. SSSE3 support...............yes
    76. SSE4.1 support..............yes
    77. SSE4.2 support..............yes
    78. AVX support.................no
    79. AVX2 support................no
    80. NEON support................no
    81. IWMMXT support..............no
    82. OpenGL support..............yes
    83. Large File support..........yes
    84. NIS support.................no
    85. Iconv support...............no
    86. Inotify support.............no
    87. eventfd(7) support..........no
    88. Glib support................no
    89. CUPS support................no
    90. OpenVG support..............no
    91. OpenSSL support.............no
    92. Qt D-Bus support............no
    93. Qt Widgets module support...yes
    94. Qt GUI module support.......yes
    95. QML debugging...............yes
    96. DirectWrite support.........no
    97. Use system proxies..........no
    98.  
    99. Third Party Libraries:
    100. ZLIB support............system
    101. GIF support.............plugin
    102. JPEG support............plugin
    103. PNG support.............yes
    104. FreeType support........yes
    105. Fontconfig support......no
    106. HarfBuzz-NG support.....no
    107. PCRE support............qt
    108. ICU support.............no
    109. ANGLE...................yes
    110.  
    111. Styles:
    112. Windows.................yes
    113. Windows XP..............yes
    114. Windows Vista...........yes
    115. Fusion..................yes
    116. Windows CE..............no
    117. Windows Mobile..........no
    118.  
    119. Sql Drivers:
    120. ODBC....................no
    121. MySQL...................no
    122. OCI.....................no
    123. PostgreSQL..............no
    124. TDS.....................no
    125. DB2.....................no
    126. SQLite..................plugin (qt)
    127. SQLite2.................no
    128. InterBase...............no
    129.  
    130. Sources are in..............c:\Qt\qt5\qtbase
    131. Build is done in............C:\Qt\qt5\qtbase
    132. Install prefix..............C:\Qt\qt5\qtbase
    133. Headers installed to........C:\Qt\qt5\qtbase\include
    134. Libraries installed to......C:\Qt\qt5\qtbase\lib
    135. Arch-dep. data to...........C:\Qt\qt5\qtbase
    136. Plugins installed to........C:\Qt\qt5\qtbase\plugins
    137. Library execs installed to..C:\Qt\qt5\qtbase\bin
    138. QML1 imports installed to...C:\Qt\qt5\qtbase\imports
    139. QML2 imports installed to...C:\Qt\qt5\qtbase\qml
    140. Binaries installed to.......C:\Qt\qt5\qtbase\bin
    141. Arch-indep. data to.........C:\Qt\qt5\qtbase
    142. Docs installed to...........C:\Qt\qt5\qtbase\doc
    143. Translations installed to...C:\Qt\qt5\qtbase\translations
    144. Examples installed to.......C:\Qt\qt5\qtbase\examples
    145. Tests installed to..........C:\Qt\qt5\qtbase\tests
    146. Using internal configuration.
    147.  
    148. Generating Makefiles...
    149.  
    150.  
    151. Qt is now configured for building. Just run nmake.
    152. To reconfigure, run nmake confclean and configure.
    To copy to clipboard, switch view to plain text mode 

    Than I build with nmake, but rcc crashes the first time it run, and I get the following output

    Qt Code:
    1. C:\Qt\qt5\qtbase\bin\rcc.exe -name mimetypes mimetypes\mimetypes.qrc -o .rcc\debug\qrc_mimetypes.cpp
    2. NMAKE : fatal error U1077: 'C:\Qt\qt5\qtbase\bin\rcc.exe' : codice restituito '0xff'
    3. Stop.
    4. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.EXE"' : codice restituito '0x2'
    5. Stop.
    6. NMAKE : fatal error U1077: 'cd' : codice restituito '0x2'
    7. Stop.
    8. NMAKE : fatal error U1077: 'cd' : codice restituito '0x2'
    9. Stop.
    10. NMAKE : fatal error U1077: 'cd' : codice restituito '0x2'
    11. Stop.
    To copy to clipboard, switch view to plain text mode 

    So I have tried to run my rcc manually, but it crashes. If there is some error in the qrc file (eg missing file) it outputs correctly the error, but if it’s all ok in the qrc file, it crashes.

    I can't understand what's wrong with my rcc.exe.
    Does anybody know if there's something wrong in my configuration? Or have anybody already built Qt 5 with VS2008? Maybe I need Windows SDK 7.1 as with VS2010?

    Thanks for help.

  2. #2

    Default Re: rcc crash buiding Qt 5

    Adding some debug lines in the rcc.cpp code I've found that the problem is the function "qCompress()".
    So I added the -qt-zlib option to the configure tool, and now seems to work!

    So my question now is why the system zlib cause this problem? Maybe really I need the Windows SDK 7.1 instead of 7.0?
    The guide indicates a generic Windows SDK 7 version for Visual Studio 2008...

    Now I'm going to build all and I hope that it works!

Similar Threads

  1. Configure for Buiding Qt with Beaglebone
    By shindo216 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th August 2013, 16:37
  2. qml crash
    By waiter in forum Qt Quick
    Replies: 0
    Last Post: 11th July 2013, 02:43
  3. App crash when using eventFilter
    By alenn.masic in forum Qt Programming
    Replies: 4
    Last Post: 24th September 2012, 13:56
  4. Replies: 0
    Last Post: 9th August 2012, 21:42
  5. Crash gracefully? No crash!
    By lni in forum Qt Programming
    Replies: 0
    Last Post: 7th July 2010, 03:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.