Mastering Qt 5という本を読み進めているのですが、
QtChartsのサンプルでQtChartsが無いと怒られたので、
QtChartsをインストールしようとしたのですが、うまくできません。
開発環境
Windows10 Home
Qt Creator 4.2.1 Based on Qt 5.8.0 (MSVC 2015, 32 bit)
やったこと
github qtchartsからzipをダウンロードして
READMEの通りにまず
qmake
してみた。
出力されたエラー
D:/qt5/qtcharts-5.9/qtcharts.pro:5: 'qtConfig' is not a recognized test function.
また、たまにqmakeがうまくいくのですが、その場合も
mingw32-make
した際に次のようなエラーがでます。
D:\qt5\qtcharts-5.9>mingw32-make cd src\ && ( if not exist Makefile c:\Qt\5.8\msvc2013_64\bin\qmake.exe -o Makefile D:\qt5\qtcharts-5.9\src\src.pro ) && 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\charts.pro ) && 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
アドバイスください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。