Results 1 to 2 of 2

Thread: Cannot compile Qt from source (Qt5.7)

  1. #1
    Join Date
    Sep 2013
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Cannot compile Qt from source (Qt5.7)

    I've installed Perl, Python and so.

    Also Angle and ICU.

    My need is to compile it using a different namespace so I used "configure -qtnamespace QtMyown", to make that properly I used admin as account for cmd so all the rights are granted.

    obviously jom was my first try but it fails:


    D:\MyProject\qtsrc\qt>jom

    jom 1.1.1 - empower your cores

    cd qtbase\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\qtbase.pro -o Makefile ) && D:\MyProject\qtsrc\qt\jom.exe -f Makefile
    cd src\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\src.pro -o Makefile ) && D:\MyProject\qtsrc\qt\jom.exe -f Makefile
    cd qmake\ && ( if not exist Makefile.qmake-aux D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\qmake\qmake-aux.pro -o Makefile
    .qmake-aux ) && D:\MyProject\qtsrc\qt
    \jom.exe -f Makefile.qmake-aux
    D:\MyProject\qtsrc/qt/qtbase/mkspecs/
    features/qt_functions.prf:174: Cannot write file D:\MyProject\qtsrc\qt\qtbase\qmake\qdoc_wrapper.ba t: Access denied
    .
    Project ERROR: Aborting.
    cd corelib\ && ( if not exist Makefile.qtzlib D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\corelib\qtzlib.pr o -o Makefi
    le.qtzlib ) && D:\MyProject\qtsrc\qt\
    jom.exe -f Makefile.qtzlib
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.qtzlib.Debug all
    copy /y ..\..\lib\Qt5Zlibd.dll ..\..\bin
    The system cannot found the specified file.
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.qtzlib.Release all
    copy /y ..\..\lib\Qt5Zlib.dll ..\..\bin
    The system cannot found the specified file.
    cd tools\bootstrap\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\tools\bootstrap\b ootstrap.p
    ro -o Makefile ) && D:\MyProject\qtsr
    c\qt\jom.exe -f Makefile
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.Debug
    cd 3rdparty\pcre\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\3rdparty\pcre\pcr e.pro -o Mak
    efile ) && D:\MyProject\qtsrc\qt\jom.
    exe -f Makefile
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.Debug all
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.Release all
    lib /NOLOGO /OUT:..\..\..\lib\qtpcre.lib @C:\Users\Victor\AppData\Local
    \Temp\qtpcre.lib.15000.16.jom
    Microsoft (R) Library Manager Version 12.00.40629.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    .obj\release\pcre16_byte_order.obj .obj\release\pcre16_chartables.obj .obj\relea
    se\pcre16_compile.obj
    .obj\release\pcre16_compile.obj : fatal error LNK1136: invalid or corrupt file
    cd angle\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\angle\angle.pro -o Makefile ) && D:\MyProject\qtsrc\qt\jom.exe -f Makefile

    cd src\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\angle\src\src.pro -o Makefile ) && D:\MyProject\qtsrc\qt\jom.exe -f Makefile

    cd compiler\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\angle\src\compile r\compiler.pro -o
    Makefile ) && D:\MyProject\qtsrc\qt\
    jom.exe -f Makefile
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \3rdparty\pcre\Makefile.Release [..\..\..\lib\qtpcre.lib] Error 1136
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \3rdparty\pcre\Makefile [release-all] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \Makefile [sub-3rdparty-pcre-make_first] Error 2
    cd preprocessor\ && ( if not exist Makefile D:\MyProject\qtsrc\qt\qtbase\bin\qmake D:\MyProject\qtsrc\qt\qtbase\src\angle\src\compile r\preprocesso
    r\preprocessor.pro -o Makefile ) && D:\MyProject\qtsrc\qt\jom.exe -f Makefile
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.Debug all
    call D:\MyProject\qtsrc\qt\qt
    base\src\angle\src\compiler\preprocessor\flex_wrap per.bat --noline --nounistd --
    outfile=debug\Tokenizer.cpp ..\..\..\..\3rdparty\angle\src\compiler\preprocess or
    \Tokenizer.l
    "D:\MyProject\qtsrc\qt\qtbase\src\ang
    le\src\compiler\preprocessor\flex_wrapper.bat" is not recognized as an internal or external command, operable program or batch file
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile.Debug [debug\Tokenizer.cpp] Error 1
    call D:\MyProject\qtsrc\qt\qt
    base\src\angle\src\compiler\preprocessor\bison_wra pper.bat --no-lines --skeleton
    =yacc.c --output=debug\ExpressionParser.cpp ..\..\..\..\3rdparty\angle\src\compi
    ler\preprocessor\ExpressionParser.y
    "D:\MyProject\qtsrc\qt\qtbase\src\ang
    le\src\compiler\preprocessor\bison_wrapper.bat" is not recognized as an internal or external command, operable program or batch file
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile.Debug [debug\ExpressionParser.cpp] Err
    or 1
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile [debug-all] Error 2
    D:\MyProject\qtsrc\qt\jom.exe
    -f Makefile.Release all
    "D:\MyProject\qtsrc\qt\qtbase\src\ang
    le\src\compiler\preprocessor\flex_wrapper.bat" is not recognized as an internal or external command, operable program or batch file
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile.Release [release\Tokenizer.cpp] Error
    1
    "D:\MyProject\qtsrc\qt\qtbase\src\ang
    le\src\compiler\preprocessor\bison_wrapper.bat" is not recognized as an internal or external command, operable program or batch file
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile.Release [release\ExpressionParser.cpp]
    Error 1
    call D:\MyProject\qtsrc\qt\qt
    base\src\angle\src\compiler\preprocessor\flex_wrap per.bat --noline --nounistd --
    outfile=release\Tokenizer.cpp ..\..\..\..\3rdparty\angle\src\compiler\preprocess
    or\Tokenizer.l
    call D:\MyProject\qtsrc\qt\qt
    base\src\angle\src\compiler\preprocessor\bison_wra pper.bat --no-lines --skeleton
    =yacc.c --output=release\ExpressionParser.cpp ..\..\..\..\3rdparty\angle\src\com
    piler\preprocessor\ExpressionParser.y
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\preprocessor\Makefile [release-all] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\compiler\Makefile [sub-preprocessor-make_first-ordered] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\src\Makefile [sub-compiler-make_first-ordered] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \angle\Makefile [sub-src-make_first] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\src
    \Makefile [sub-angle-make_first] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\Mak
    efile [sub-src-make_first] Error 2
    jom: D:\MyProject\qtsrc\qt\qtbase\Mak
    efile [sub-qmake-qmake-aux-pro-make_first] Error 3
    jom: D:\MyProject\qtsrc\qt\Makefile [
    module-qtbase-make_first] Error 2

    D:\MyProject\qtsrc\qt>
    Most of errors come from "access denied" but it has no sense since as I said this has been run as admin.

    Nmake fails too.

    PS. sorry if any phrase as "The system cannot found the specified file." is doesn't fit the regular OS message but I've just translated it from my language to make the error easier to understand for everybody.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cannot compile Qt from source (Qt5.7)

    Access denied on Windows might happen if you are trying to overwrite a file which another process has open.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt 4.6.0 source+ minGv + compile errors
    By giusepped in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2010, 11:06
  2. Possible to compile Qt 4.5 source with msvc 2010 beta?
    By JimDaniel in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd July 2009, 14:19
  3. how to compile c++ source file in qtCreator
    By orky7 in forum General Programming
    Replies: 6
    Last Post: 20th March 2009, 06:45
  4. compile source code file
    By eva in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2009, 11:15
  5. Replies: 17
    Last Post: 3rd July 2008, 00:48

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.