Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using QtCharts with Yocto Project
Qt 6.11 is out! See what's new in the release blog

Using QtCharts with Yocto Project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
13 Posts 6 Posters 7.9k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vladstelmahovsky
    wrote on last edited by
    #2

    are you sure that headers/libraries you have copied have same version as the rest of the Qt on RPi?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Argprstest
      wrote on last edited by
      #3

      I use qt source 5.7.0 for charts library. Rpi QT version is 5.7.0 too. But i dont know charts library versions.

      I also realized any other things for this error. When i try to import QTCharts library i wirte qt and after press ctrl + space. QTCreator doesnt show the QTCHarts library. This situation also seems trying to write version number. And i can write random version number like 9.5 for my QTChart import.

      1 Reply Last reply
      0
      • A Argprstest

        I use QT with yocto project. I create a custom image like this. My custom image file has the following lines for qtchart.

        qtcharts \
        qtcharts-dev \
        qtcharts-mkspecs \
        

        This image was created successfully and i have install my raspberry pi. I prepared QTCreator for cross development like this. I am using very well this system using qtcreator 5.7. When i installing qtcreator i choose qtcharts and i install qtcharts. I run qtcharts examples on my Ubuntu desktop. When i use kit for raspberry pi, i cant import QTCharts library. I installed qt-everywhere-opensource-src-5.7.0 qtcharts path for debug and release but thats not solved my problem. So I have reviewed the installation files and i saw the qtcharts library path is in

        /usr/lib/x86_64-linux-gnu/qt5/qml/
        

        i have coppy QTChart and some files about qtcharts in modules to

        /opt/poky/2.2/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/usr/lib/qt5/
        

        After this step i can import QTCharts. But when i use ChartView my project abruptly close and the only feedback is

        Process killed by signal
        How can i run qtcharts in my raspberry pi.

        Sorry for my bad English.

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

        @Argprstest You copied QtCharts from your host (x86_64) Qt to the sysroot? That will not work. You need a QtCharts build for your target device (ARM).

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

        1 Reply Last reply
        1
        • A Offline
          A Offline
          Argprstest
          wrote on last edited by Argprstest
          #5

          I have remove all poky file in my opt path, after that i create image with "-c populate_sdk" command like this. Existed new .sh file in my sdk path. I have use that for create new poky path for cross development. The new file have a QTCHart library but that not solved my problem. When i use "ChartView", my program is still close by signal and QTCreator still cant show QTChart name when i use ctrl + space command.

          I have downgrade my qtcreator version to 3.5.1. I can see program close signal the 3.5.1 qtcreator. The signal is

          sh: line 1:  5653 Segmentation fault      DISPLAY=':0.0'
          
          1 Reply Last reply
          0
          • A Offline
            A Offline
            Argprstest
            wrote on last edited by
            #6

            My problem caused a bug about QGuiApplication. I simply put QApplication instead of QGuiApplication and my problem was solve.

            A G 2 Replies Last reply
            2
            • A Argprstest

              My problem caused a bug about QGuiApplication. I simply put QApplication instead of QGuiApplication and my problem was solve.

              A Offline
              A Offline
              Andrey Shmelew
              wrote on last edited by
              #7

              Hi all!
              I have the same issue, but i can not use QtCharts for BeagleBoneBlack., because of error

              1: error: Unknown module(s) in QT: charts
              

              i also copied all QTChart and some files about qtcharts from Qt_opensource\5.7\msvc2015_64 folder into arm-linux-gnueabihf\sysroot\usr\local\qt5 folder, but unsuccessfully, QtCharts still unavailable

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Hi,

                You have to cross-compile and install the module before you can use it.

                You can't use x86_64 .dlls to link against an ARM built library/application.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                A 1 Reply Last reply
                1
                • SGaistS SGaist

                  Hi,

                  You have to cross-compile and install the module before you can use it.

                  You can't use x86_64 .dlls to link against an ARM built library/application.

                  A Offline
                  A Offline
                  Andrey Shmelew
                  wrote on last edited by Andrey Shmelew
                  #9

                  Hi, sure, i understand.
                  when i cross-compiled qt for ARM - i did not see any options about QtCharts

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Compile it by hand.

                    mkdir build_qtchart
                    cd build_qtchart
                    /path/to/your/cross-compiled-Qt/bin/qmake /path/to/your/QtChart_sources/
                    make
                    make install
                    

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    A 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Compile it by hand.

                      mkdir build_qtchart
                      cd build_qtchart
                      /path/to/your/cross-compiled-Qt/bin/qmake /path/to/your/QtChart_sources/
                      make
                      make install
                      
                      A Offline
                      A Offline
                      Andrey Shmelew
                      wrote on last edited by Andrey Shmelew
                      #11

                      /path/to/your/QtChart_sources/

                      where it exsists?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Wherever you downloaded Qt's sources.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        2
                        • A Argprstest

                          My problem caused a bug about QGuiApplication. I simply put QApplication instead of QGuiApplication and my problem was solve.

                          G Offline
                          G Offline
                          giobauermeister
                          wrote on last edited by
                          #13

                          @Argprstest This worked for me. Thanks!

                          1 Reply Last reply
                          1

                          • Login

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