Important: Please read the Qt Code of Conduct -

How to install qt charts

  • I am reading mastering qt 5.
    This book's sample uses qt charts.
    I implemented as written in the book.
    But errors occured Because qt charts is not installed.
    So I tried to install it as written in the README in this site
    but I cant install.

    My environment is Windows10 Home and Qt Creator 4.2.1 Based on Qt 5.8.0(MSVC 2015, 32 bit)

    I tried download zip from and execute qmake command and mingw32-make command.
    But error occured as follows

    D:/qt5/qtcharts-5.9/ 'qtConfig' is not a recognized test function.

    cd src\ && ( if not exist Makefile c:\Qt\5.8\msvc2013_64\bin\qmake.exe -o Makefile D:\qt5\qtcharts-5.9\src\ ) && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory 'D:/qt5/qtcharts-5.9/src'
    cd charts\ && ( if not exist Makefile c:\Qt\5.8\msvc2013_64\bin\qmake.exe -o Makefile D:\qt5\qtcharts-5.9\src\charts\ ) && mingw32-make -f Makefile
    mingw32-make[2]: Entering directory 'D:/qt5/qtcharts-5.9/src/charts'
    mingw32-make -f Makefile.Release all
    mingw32-make[3]: Entering directory 'D:/qt5/qtcharts-5.9/src/charts'
    Makefile.Release:657: *** missing separator. Stop.
    mingw32-make[3]: Leaving directory 'D:/qt5/qtcharts-5.9/src/charts'
    Makefile:40: recipe for target 'release-all' failed
    mingw32-make[2]: *** [release-all] Error 2
    mingw32-make[2]: Leaving directory 'D:/qt5/qtcharts-5.9/src/charts'
    Makefile:41: recipe for target 'sub-charts-make_first-ordered' failed
    mingw32-make[1]: *** [sub-charts-make_first-ordered] Error 2
    mingw32-make[1]: Leaving directory 'D:/qt5/qtcharts-5.9/src'
    Makefile:42: recipe for target 'sub-src-make_first' failed
    mingw32-make: *** [sub-src-make_first] Error 2

    please help me and tell me how to install qt charts

  • Hi! The Qt Charts module is included in the current official release. No need to install it via the git repo, just use the Qt maintenance tool.

  • @Wieland Thank you. I could do it.

Log in to reply