Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Build of QtCharts for GNU GPL
Forum Updated to NodeBB v4.3 + New Features

Build of QtCharts for GNU GPL

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 2 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    herrmattoon
    wrote on last edited by herrmattoon
    #1

    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.
    
    jsulmJ 1 Reply Last reply
    0
    • H herrmattoon

      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.
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        herrmattoon
        wrote on last edited by
        #3

        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
        0_1500534859373_ed690788-96ed-4641-9c92-b6abadeb97e6-image.png

        And there is no QtChart module to select. In repositories, I have no url :

        0_1500534911650_33a966d3-1769-4dcc-868c-b70fb849e2b7-image.png

        jsulmJ 1 Reply Last reply
        0
        • H herrmattoon

          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
          0_1500534859373_ed690788-96ed-4641-9c92-b6abadeb97e6-image.png

          And there is no QtChart module to select. In repositories, I have no url :

          0_1500534911650_33a966d3-1769-4dcc-868c-b70fb849e2b7-image.png

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @herrmattoon Did you use the offline installer to install Qt?
          Because what you get is not what I get:
          0_1500535232311_mt.png

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            herrmattoon
            wrote on last edited by
            #5

            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 ?

            jsulmJ 1 Reply Last reply
            0
            • H herrmattoon

              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 ?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • H Offline
                H Offline
                herrmattoon
                wrote on last edited by
                #7

                @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.

                jsulmJ 1 Reply Last reply
                0
                • H herrmattoon

                  @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.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @herrmattoon Don't forget to select the MinGW compiler under Tools :-)

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved