Solved Missing header/class files
-
Hello,
Am new to Qt. I would like to know how can I add missing header files to a Qt version.
I am using Qt Creator 3.5.1 Based on Qt 5.5.1 (GCC 5.2.1 20151129, 32 bit). on a i686 Linux. This doesn't contain a QCanBusDevice or QSerialPort.Its written in http://doc.qt.io/qt-5/qserialport.html that from ver.5.1 this class is available.
Can someone help. Thanks in advance. -
Hi
Do you add to your .pro file
QT += serialportIts modules so sometimes you have to add the module before it knows the headers.
Its listen in help what to add to .pro file.
-
Thank you mrjj for your reply.
Sorry, I have two versions of Qt.
Qt4.8.5 for embedded linux. How can I add QSerialPort / QCanBusDevice to this ? -
@sandycoolxyz said in Missing header/class files:
Qt4.8.5
QSerialPort did not exist before Qt 5.1and QCanBusDevice first in Qt 5.6
so that's not really possible to have in 4.8.
Unless you back port it and compile your own version.Why do you want 4.8 ? and not 5.6 ? (or newer)
Hmm, google seems to see QSerialport in Qt 4.8.5
https://forum.qt.io/topic/30593/problem-qserialport-terminal-example-scrambling-incoming-data -
I used Qt4.8.5 since I couldn't find a cross compiler for armv6l GNU/Linux.
I have Qt5.7.1 for Android armv7, will this work fine for armv6l GNU/Linux ?
Which cross compiler should I be using for windows 10 host PC and armv6l GNU/Linux(embedded device). -
Hi
Sorry Im a arm/android noob so cannot say.Just give it a day or two then you should get a better answer. :)
-
Hi,
No you can't use Qt for Android to run application on GNU/Linux. Even if Android is Linux based, it doesn't work the same for application development. Furthermore, your board is armv6 which is not the same architecture as the Qt build.
Please, avoid doing cross-compilation from Windows, it's way harder to get it to work.
As for your device, usually, the vendors provide either a SDK or at least a reference to toolchains you can use to build applications for their hardware.