QtXlsxWriter icon indicating copy to clipboard operation
QtXlsxWriter copied to clipboard

Build Error in mingw32

Open sdiearly opened this issue 7 years ago • 3 comments

Hi, I have met issues when I tried to install QtXlsx in my system (Qt5.9.2). Could some one give me idea to solve the problem? The output is shown as below:

cd hello\ && D:\Qt\Qt5.9.2\5.9.2\mingw53_32\bin\qmake.exe -o Makefile C:\Users\9705063\Downloads\QtXlsxWriter-master\examples\xlsx\hello\hello.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" Project ERROR: C:/Users/9705063/Downloads/QtXlsxWriter-master/examples/xlsx/hello/hello.pro is lacking an install target. Makefile:52: recipe for target 'sub-hello-qmake_all' failed mingw32-make[2]: *** [sub-hello-qmake_all] Error 3 mingw32-make[2]: Leaving directory 'C:/Users/9705063/Downloads/build-qtxlsx-Desktop_Qt_5_9_2_MinGW_32bit-Debug/examples/xlsx' Makefile:33: recipe for target 'sub-xlsx-qmake_all' failed mingw32-make[1]: Leaving directory 'C:/Users/9705063/Downloads/build-qtxlsx-Desktop_Qt_5_9_2_MinGW_32bit-Debug/examples' mingw32-make[1]: *** [sub-xlsx-qmake_all] Error 2 Makefile:60: recipe for target 'sub-examples-qmake_all' failed mingw32-make: *** [sub-examples-qmake_all] Error 2 17:11:06: The process "D:\Qt\Qt5.9.2\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project qtxlsx (kit: Desktop Qt 5.9.2 MinGW 32bit) When executing step "qmake"

sdiearly avatar Jan 26 '18 09:01 sdiearly

Use this fork: https://github.com/VSRonin/QtXlsxWriter And follow the instructions

VSRonin avatar Mar 07 '18 12:03 VSRonin

It's error in building examples (project 'examples/xlsx/hello', but it will be in other examples). You must build without examples (I forgot the command), or, add next line to *.pro files in examples: CONFIG += install_ok

kirito-dev avatar Sep 18 '18 20:09 kirito-dev

try this, it must build qxlsx without tests and examples (!):

qmake
make sub-src-all
make install

kirito-dev avatar Sep 19 '18 20:09 kirito-dev