PDA

View Full Version : Cannot compile Qt from source (Qt5.7)



escobar
21st September 2016, 12:27
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.

wysota
21st September 2016, 16:34
Access denied on Windows might happen if you are trying to overwrite a file which another process has open.