打开 Qt Xlsx 源码工程
时间:2020-12-04
问题: 先记录下来,之后再一行行分析原因
Qt Creator 打开工程后, 概要信息自动给出如下提示:
Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. Project MESSAGE: perl -w D:\Qt\Qt5.9.8\5.9.8\msvc2015\bin\syncqt.pl -module QtXlsx -version 0.3.0 -outdir D:/a_zhm/StudyCode/Excel/QtXlsxWriter-master D:/a_zhm/StudyCode/Excel/QtXlsxWriter-master [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. [Inexact] Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build. Project MESSAGE: cmake executable not found. Not running CMake unit tests Project MESSAGE: perl -w D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\syncqt.pl -module QtXlsx -version 0.3.0 -outdir D:/a_zhm/StudyCode/Excel/build-qtxlsx-Desktop_Qt_5_9_8_MSVC2015_64bit-Debug D:/a_zhm/StudyCode/Excel/QtXlsxWriter-master Project MESSAGE: cmake executable not found. Not running CMake unit tests
构建Src.pro 子模块, 报如下错误:
15:15:50: 为项目qtxlsx执行步骤 ... 15:15:50: 正在启动 "D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\qmake.exe" D:\a_zhm\StudyCode\Excel\QtXlsxWriter-master\src\src.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" 15:15:50: 进程"D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\qmake.exe"正常退出。 15:15:50: 正在启动 "D:\Qt\Qt5.9.8\Tools\QtCreator\bin\jom.exe" -f D:/a_zhm/StudyCode/Excel/build-qtxlsx-Desktop_Qt_5_9_8_MSVC2015_64bit-Debug/src/Makefile qmake_all jom 1.1.2 - empower your cores cd xlsx\ && D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\qmake.exe -o Makefile D:\a_zhm\StudyCode\Excel\QtXlsxWriter-master\src\xlsx\xlsx.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" 'perl' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 Project MESSAGE: perl -w D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\syncqt.pl -module QtXlsx -version 0.3.0 -outdir D:/a_zhm/StudyCode/Excel/build-qtxlsx-Desktop_Qt_5_9_8_MSVC2015_64bit-Debug D:/a_zhm/StudyCode/Excel/QtXlsxWriter-master Project ERROR: Failed to run: perl -w D:\Qt\Qt5.9.8\5.9.8\msvc2015_64\bin\syncqt.pl -module QtXlsx -version 0.3.0 -outdir D:/a_zhm/StudyCode/Excel/build-qtxlsx-Desktop_Qt_5_9_8_MSVC2015_64bit-Debug D:/a_zhm/StudyCode/Excel/QtXlsxWriter-master jom: D:\a_zhm\StudyCode\Excel\build-qtxlsx-Desktop_Qt_5_9_8_MSVC2015_64bit-Debug\src\Makefile [sub-xlsx-qmake_all] Error 3 15:15:50: 进程"D:\Qt\Qt5.9.8\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。 Error while building/deploying project qtxlsx (kit: Desktop Qt 5.9.8 MSVC2015 64bit) When executing step "qmake" 15:15:50: Elapsed time: 00:00.