Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED]Struggling to build qt 5.2.0 with msvc2012



  • Hi. I'm new to qt and I have been trying to build and compile QT with no luck. the last configure I have used looks like
    configure -platform win32-msvc2012 -debug-and-release -developer-build -opensource -opengl desktop -mp -skip webkit -no-dbus -no-strip -qt-zlib -I .\qtbase\include\QtZlib

    But i got the following error:
    mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "......\bin\qdoc.exe". Access is denied.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\8.0\bin\x86\mt.exe"' : return code '0x1f'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.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'm using developer cmd for msvc2012 and I ran it as administrator.
    I've previously run both jom and nmake with no luck. I'm currently using windows 8 x64 and I've installed pearl, python and ruby.
    Any help will be greatly appreciated.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    I don't have access to a Win8 machine, but it seems you have a permission error. Are you sure your build directory permissions are clean ?

    Hope it helps



  • Hi. Thanks for the reply. I'm sure this is a stupid question but how do i check that the directory permissions are clean.
    Thanks


  • Lifetime Qt Champion



  • As far as I can see, as administrator i have full control of all files. and no files are read only. So any other suggestions?
    Thanks


  • Lifetime Qt Champion

    Two reasons I have also seen:

    The exec is already running (which should be your case)

    An anti-virus software that interfere with the build process



  • In that case should i do a clean rebuild, and in that case how?


  • Lifetime Qt Champion

    Just delete the build dir and start a new (in the case you used an out of source build)



  • I tried that, this time it compiled for a longer period but gave the following error:
    mt.exe : general error c101008d: Failed to write the updated manifest to the res
    ource of file "C:\QT\5.2.00\qt-everywhere-opensource-src-5.2.0\qtbase\bin\qml.ex
    e". Access is denied.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\mt.
    exe"' : return code '0x1f'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.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.
    Which is very similar to the first. You said that the exec is already running, how would i solve this?


  • Lifetime Qt Champion

    One of the symptoms could be that, but since you are compiling it should not be the case.

    Are you sure you don't have an anti-virus that is running ?



  • I disabled my anitivirus and ran it with jom and i got no errors.
    Thanks


  • Lifetime Qt Champion

    You're welcome !

    Since you build it successfully, please update the thread title prepending [solved] so other forum users may know a solution has been found :)



  • can you look at this for me please
    http://qt-project.org/forums/viewthread/36909/


Log in to reply