最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

qt - Why qt6 build from source have error on cmake phase? - Stack Overflow

programmeradmin1浏览0评论

I try to build qtbase from source, but have some problem. My environment:

cmake --version
cmake version 3.31.5

ninja --version
1.11.1

python --version
Python 3.11.8

gcc --version
gcc (x86_64-posix-seh-rev1, Built by MinGW-Builds project) 13.1.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ --version
g++ (x86_64-posix-seh-rev1, Built by MinGW-Builds project) 13.1.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Next step:

configure.bat -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz

Overriding option 'libjpeg' with 'qt' (was: 'undefined')
Overriding option 'libpng' with 'qt' (was: 'undefined')
Overriding option 'freetype' with 'qt' (was: 'undefined')
Overriding option 'harfbuzz' with 'qt' (was: 'undefined')
'D:/Install/CMake/bin/cmake.exe' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-DFEATURE_system_zlib=OFF' '-DINPUT_libjpeg=qt' '-DINPUT_libpng=qt' '-DINPUT_freetype=qt' '-DINPUT_pcre=qt' '-DINPUT_harfbuzz=qt' '-G' 'Ninja' 'C:/dev/Qt/src'
-- The CXX compiler identification is GNU 13.1.0
-- The C compiler identification is GNU 13.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ProgramData/mingw64/mingw64/bin/gcc.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/ProgramData/mingw64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/ProgramData/mingw64/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting build type to 'Release' as none was specified.

But when i try:

cmake --build . --parallel 1

[1/1773] Running syncqt.cpp for module: QtZlib
FAILED: src/3rdparty/zlib/ZlibPrivate_syncqt_timestamp C:/dev/qt-build/src/3rdparty/zlib/ZlibPrivate_syncqt_timestamp
C:\Windows\system32\cmd.exe /C "cd /D C:\dev\qt-build\src\3rdparty\zlib && C:\dev\qt-build\bin\syncqt.exe @C:/dev/qt-build/src/3rdparty/zlib/ZlibPrivate_syncqt_args && D:\Install\CMake\bin\cmake.exe -E touch C:/dev/qt-build/src/3rdparty/zlib/ZlibPrivate_syncqt_timestamp"
ninja: build stopped: subcommand failed.

I think problem in syncqt.exe tool, but no any idea, how to fix it...

Call syncqt.exe show what:

发布评论

评论列表(0)

  1. 暂无评论