Build of QtCharts for GNU GPL
-
Hi all,
I want to work with the QtCharts modules and I have read, there is no module to download with the "free" version of QtCreator, even with the Qt Maintenance tool.
I also read, users of the "free" version have to download the source code and build it by their own. In the readme file, it is written, user have to :
Configure the project with qmake: qmake After running qmake, build the project with make: (Windows with MinGw) mingw32-make The above generates the default makefiles for your configuration, which is typically the release build if you are using precompiled binary Qt distribution. To build both debug and release, or one specifically, use one of the following qmake lines instead. For both builds (Windows/OS X only): qmake CONFIG+="debug_and_release build_all" make After building, install the module to your Qt directory: make install Building as a statically linked library ======================================= The same as above applies, you will just have to add static to the CONFIG: qmake CONFIG+=static
As I am a brand new user of QtCreator and I am not used to write makefiles and such things, I don't know where to start, doing this procedure.
Please tell me if I am wrong with the steps I followed... :
First I downloaded the zip file and stored it in an arbitrary folder.
Then I started QtCreator and opened a project, by selecting the qtcharts.pro, which is the unique .pro file in the parent directory. Other ones are available in other son folders.Then I wrote the line : CONFIG+="debug_and_release build_all" at the end of the qtcharts.pro file
I clicked "run qmake" in the menu "build"
And then I clicked "build project "qtcharts".
I really don't know if I did everything right and this is the question... Is it?
Additionally, when qmake runs, I get this error :
Project MESSAGE: cmake executable not found. Not running CMake unit tests
And another error by building :
C:\Qt\Qt5.9.0\5.9\mingw53_32\plugins\charts\qtcharts-5.9\src\charts\chartdataset.cpp:30: error: private/chartdataset_p.h: No such file or directory``` If I remove the private/ string in the include directive, this error disapears and other similar appears for the same reason.
qmake (?) output :
(...) && C:/Qt/Qt5.9.0/Tools/mingw530_32/bin/mingw32-make -f Makefile qmake_all mingw32-make[3]: Entering directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/openglseriestest' mingw32-make[3]: Nothing to be done for 'qmake_all'. mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/openglseriestest' cd qmlchartproperties\ && C:\Qt\Qt5.9.0\5.9\mingw53_32\bin\qmake.exe -o Makefile C:\Qt\Qt5.9.0\5.9\mingw53_32\plugins\charts\qtcharts-5.9\tests\manual\qmlchartproperties\qmlchartproperties.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" cd qmlchartproperties\ && C:/Qt/Qt5.9.0/Tools/mingw530_32/bin/mingw32-make -f Makefile qmake_all mingw32-make[3]: Entering directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/qmlchartproperties' mingw32-make[3]: Nothing to be done for 'qmake_all'. mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/qmlchartproperties' cd qmlchartaxis\ && C:\Qt\Qt5.9.0\5.9\mingw53_32\bin\qmake.exe -o Makefile C:\Qt\Qt5.9.0\5.9\mingw53_32\plugins\charts\qtcharts-5.9\tests\manual\qmlchartaxis\qmlchartaxis.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" cd qmlchartaxis\ && C:/Qt/Qt5.9.0/Tools/mingw530_32/bin/mingw32-make -f Makefile qmake_all mingw32-make[3]: Entering directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/qmlchartaxis' mingw32-make[3]: Nothing to be done for 'qmake_all'. mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual/qmlchartaxis' mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests/manual' mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.9.0/5.9/mingw53_32/plugins/charts/qtcharts-5.9/tests' 08:48:48: The process "C:\Qt\Qt5.9.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally. 08:48:48: Elapsed time: 02:18.
-
@herrmattoon said in Build of QtCharts for GNU GPL:
I have read, there is no module to download with the "free" version of QtCreator
Where did you read this?
You can easily install QtCharts using Qt Maintenance Tool. -
Hi jsulm,
That was probably in a forum where the guy who told it had too much assurance!
Yes I tried with the maintenance tool but if I click on add or remove components, I get here
And there is no QtChart module to select. In repositories, I have no url :
-
@herrmattoon Did you use the offline installer to install Qt?
Because what you get is not what I get:
-
I cannot remember what kind of installer I used, but I think it was the offline installer.
Do I have to worry about ? Reinstall QtCreator ?
-
@herrmattoon It's not about QtCreator.
If you use Qt Online Installer you then get a Qt Maintenance Tool which is capable of alter your set-up (add/remove/update components).
I suggest you to remove your current Qt installation and reinstall Qt using the online installer. -
@jsulm said in Build of QtCharts for GNU GPL:
I suggest you to remove your current Qt installation and reinstall Qt using the online installer.
Thank you for this quick response ! I will do so.
-
@herrmattoon Don't forget to select the MinGW compiler under Tools :-)