Solved Using QtCharts with Yocto Project
-
@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).
-
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'
-
My problem caused a bug about QGuiApplication. I simply put QApplication instead of QGuiApplication and my problem was solve.
-
Hi all!
I have the same issue, but i can not use QtCharts for BeagleBoneBlack., because of error1: 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
-
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.
-
Hi, sure, i understand.
when i cross-compiled qt for ARM - i did not see any options about QtCharts -
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
-
/path/to/your/QtChart_sources/
where it exsists?
-
Wherever you downloaded Qt's sources.
-
@Argprstest This worked for me. Thanks!