打開 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.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM