首页 > 解决方案 > Makefile:144:目标“全部”的配方失败错误构建静态 QT

问题描述

Windows 10 中的命令 (cia cmd.exe)

configure -release -opensource -confirm-license -prefix C:\Qt\6.1.3\Build

顺利通过,但现在我收到以下错误消息

make -j8

我总是收到以下错误消息并且它中止了。

make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2

[ 15%] 链接 CXX 静态库 ......\lib\libQt6DeviceDiscoverySupport.a 生成版本链接描述文件 [ 15%] 构建目标 DeviceDiscoverySupport Makefile:144: 目标“所有”的配方失败 make: *** [所有]错误 2

标签: qtmakefile

解决方案


谢谢,从现在开始我会做的。

这里有一些以前发生的错误消息,附有 vlt。有人可以开始并帮助我。

C:/Qt/6.1.3/Src/qtbase/src/corelib/text/qstringconverter.h:189:87: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:6590
     Q_CORE_EXPORT static const Interface encodingInterfaces[Encoding::LastEncoding + 1];
                                                                                       ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
qtbase\src\tools\androiddeployqt\CMakeFiles\androiddeployqt.dir\build.make:90: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj' failed
make[2]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj] Error 1
CMakeFiles\Makefile2:12798: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all' failed
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ..\..\..\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2

推荐阅读