admin管理员组文章数量:1335656
I'm trying to build Qt 5.15.5 on Windows 7 with MinGW-64. There were some small bugs during compiling but they were fixed without problems. Then at some moment the compilation started to fail with errors, I found that these errors are happening due to the commands in single quotes, for example:
'C:\Qt\5.15.5\build\qtbase\bin\moc.exe' -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC --include C:/Qt/5.15.5/build/qtbase/src/corelib/.moc/release/moc_predefs.h -IC:/Qt/5.15.5/Src/qtbase/mkspecs/win32-g++ -IC:/Qt/5.15.5/Src/qtbase/src/corelib -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/zlib/src -IC:/Qt/5.15.5/build/qtbase/src/corelib/global -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/md5 -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/md4 -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/sha3 -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/double-conversion/include -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/harfbuzz/src -IC:/Qt/5.15.5/Src/qtbase/src/3rdparty/tinycbor/src -IC:/Qt/5.15.5/Src/qtbase/src/corelib/.rcc/release -IC:/Qt/5.15.5/Src/qtbase/include -IC:/Qt/5.15.5/Src/qtbase/include/QtCore -IC:/Qt/5.15.5/build/qtbase/include -IC:/Qt/5.15.5/build/qtbase/include/QtCore -IC:/Qt/5.15.5/Src/qtbase/include/QtCore/5.15.5 -IC:/Qt/5.15.5/Src/qtbase/include/QtCore/5.15.5/QtCore -IC:/Qt/5.15.5/build/qtbase/include/QtCore/5.15.5 -IC:/Qt/5.15.5/build/qtbase/include/QtCore/5.15.5/QtCore-IC:/Qt/5.15.5/Src/qtbase/src/corelib/tmp -I. -IC:/mingw64/include/c++/14.2.0 -IC:/mingw64/include/c++/14.2.0/x86_64-w64-mingw32 -IC:/mingw64/include/c++/14.2.0/backward -IC:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include -IC:/mingw64/include -IC:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include-fixed -IC:/mingw64/x86_64-w64-mingw32/include --output-json C:/Qt/5.15.5/Src/qtbase/src/corelib/thread/qthreadpool.h -o .moc/release/moc_qthreadpool.cpp
mingw32-make[4]: *** [Makefile.Release:9249: .moc/release/moc_qthread.cpp] Error -1073741511
mingw32-make[4]: Leaving directory 'C:/Qt/5.15.5/build/qtbase/src/corelib'
mingw32-make[3]: *** [Makefile:45: release] Error 2
mingw32-make[3]: Leaving directory 'C:/Qt/5.15.5/build/qtbase/src/corelib'
mingw32-make[2]: *** [Makefile:231: sub-corelib-make_first] Error 2
mingw32-make[2]: Leaving directory 'C:/Qt/5.15.5/build/qtbase/src'
mingw32-make[1]: *** [Makefile:54: sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Qt/5.15.5/build/qtbase'
mingw32-make: *** [makefile:67: module-qtbase-make_first] Error 2
If I go to the current directory where the compiling takes place and execute the command without single quotes in 'C:\Qt\5.15.5\build\qtbase\bin\moc.exe'
, it is executing without problems, and when I return to the build directory and continue compiling, it is going on until the next error is happening.
How to fix this problem?
本文标签:
版权声明:本文标题:c++ - When building Qt 5.15 from source, single quotes in commands cause compilation errors - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742390899a2465968.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论