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
Forum Updated to NodeBB v4.3 + New Features

Using QtCharts with Yocto Project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
13 Posts 6 Posters 5.6k 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.
  • A Offline
    A Offline
    Argprstest
    wrote on 14 Jan 2017, 11:37 last edited by
    #1

    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.

    J 1 Reply Last reply 16 Jan 2017, 06:32
    0
    • V Offline
      V Offline
      vladstelmahovsky
      wrote on 14 Jan 2017, 12:08 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 14 Jan 2017, 12:37 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
          14 Jan 2017, 11:37

          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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 16 Jan 2017, 06:32 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 16 Jan 2017, 16:46 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 16 Jan 2017, 17:46 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 Feb 2017, 08:58
              2
              • A Argprstest
                16 Jan 2017, 17:46

                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 2 Feb 2017, 08:58 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 2 Feb 2017, 22:18 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 3 Feb 2017, 04:06
                  1
                  • S SGaist
                    2 Feb 2017, 22:18

                    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 3 Feb 2017, 04:06 last edited by Andrey Shmelew 2 Mar 2017, 04:06
                    #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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 3 Feb 2017, 08:14 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 6 Feb 2017, 03:39
                      1
                      • S SGaist
                        3 Feb 2017, 08:14

                        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 6 Feb 2017, 03:39 last edited by Andrey Shmelew 2 Jun 2017, 03:43
                        #11

                        /path/to/your/QtChart_sources/

                        where it exsists?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 6 Feb 2017, 08:24 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
                            16 Jan 2017, 17:46

                            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 11 May 2018, 13:09 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