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. Missing header/class files
Forum Updated to NodeBB v4.3 + New Features

Missing header/class files

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 3 Posters 2.2k Views 3 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.
  • S Offline
    S Offline
    sandycoolxyz
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Do you add to your .pro file
      QT += serialport

      Its modules so sometimes you have to add the module before it knows the headers.

      Its listen in help what to add to .pro file.
      alt text

      1 Reply Last reply
      5
      • S Offline
        S Offline
        sandycoolxyz
        wrote on last edited by sandycoolxyz
        #3

        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 ?

        mrjjM 1 Reply Last reply
        0
        • S sandycoolxyz

          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 ?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @sandycoolxyz said in Missing header/class files:

          Qt4.8.5

          QSerialPort did not exist before Qt 5.1 and 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

          1 Reply Last reply
          2
          • S Offline
            S Offline
            sandycoolxyz
            wrote on last edited by
            #5

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

            mrjjM 1 Reply Last reply
            0
            • S sandycoolxyz

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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @sandycoolxyz

              Hi
              Sorry Im a arm/android noob so cannot say.

              Just give it a day or two then you should get a better answer. :)

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

                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.

                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
                3

                • Login

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