QCustomPlot Discussion and Comments

Failed Setting up QCustomPlot for Qt Creator from this siteReturn to overview

I followed this to a tee: https://www.qcustomplot.com/index.php/tutorials/settingup

And when I compile the program with a widget as per the instructions, I get errors about too many sections and file too big from the compiling and running of the assembler. Any ideas what is wrong? M

11:37:48: Running steps for project mytest_project...
11:37:48: Configuration unchanged, skipping qmake step.
11:37:48: Starting: "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" -j12
C:/Qt/6.5.2/mingw_64/bin/qmake.exe -o Makefile ../mytest_project/mytest_project.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug
C:/Qt/Tools/mingw1120_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/ssheikh/Documents/build-mytest_project-Desktop_Qt_6_5_2_MinGW_64_bit-Debug'
g++ -c -fno-keep-inline-dllexport -g -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../mytest_project -I. -I../../../../Qt/6.5.2/mingw_64/include -I../../../../Qt/6.5.2/mingw_64/include/QtPrintSupport -I../../../../Qt/6.5.2/mingw_64/include/QtWidgets -I../../../../Qt/6.5.2/mingw_64/include/QtGui -I../../../../Qt/6.5.2/mingw_64/include/QtCore -Idebug -I. -I/include -I../../../../Qt/6.5.2/mingw_64/mkspecs/win32-g++ -o debug/qcustomplot.o ../../Downloads/qcustomplot/qcustomplot.cpp
C:/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: debug/qcustomplot.o: too many sections (32978)
C:\Users\ssheikh\AppData\Local\Temp\1\ccK5K14a.s: Assembler messages:
C:\Users\ssheikh\AppData\Local\Temp\1\ccK5K14a.s: Fatal error: can't write 44 bytes to section .text of debug/qcustomplot.o: 'file too big'
C:/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: debug/qcustomplot.o: too many sections (32978)
C:\Users\ssheikh\AppData\Local\Temp\1\ccK5K14a.s: Fatal error: debug/qcustomplot.o: file too big
mingw32-make[1]: Leaving directory 'C:/Users/ssheikh/Documents/build-mytest_project-Desktop_Qt_6_5_2_MinGW_64_bit-Debug'
mingw32-make[1]: *** [Makefile.Debug:1970: debug/qcustomplot.o] Error 1
mingw32-make: *** [Makefile:45: debug] Error 2
11:38:05: The process "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project mytest_project (kit: Desktop Qt 6.5.2 MinGW 64-bit)
When executing step "Make"
11:38:05: Elapsed time: 00:17.

For MinGW builds, add this line to your .pro file:

QMAKE_CXXFLAGS += -Wa,-mbig-obj

Thanks.