Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error in building qt code myself
Forum Updated to NodeBB v4.3 + New Features

Error in building qt code myself

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 832 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
    Abin
    wrote on 6 Sept 2014, 09:22 last edited by
    #1

    Hi,

    I am trying to make an android application which can print through serial port. Since there is no support of serial port for android platform I need to work around. I found this link which seems promising: "Serial port in android":http://www.qtcentre.org/threads/57928-Serial-Port-in-Android

    This says rebuild the serialport code for my platform: "How to build":http://qt-project.org/wiki/Building_Qt_5_from_Git
    But it shows error when I rebuild the project.!Libraries\Pictures(Libraries\Pictures\build_error.png)!

    E:\WorkSpaces\Qt\Qt_WidgetApps\AndroidSerialPortTrials\QTCode\qt-qtserialport\src\serialport\qserialport.cpp:45: In file included from E:/WorkSpaces/Qt/Qt_WidgetApps/AndroidSerialPortTrials/QTCode/qt-qtserialport/src/serialport/qserialport.cpp:45:0:

    E:\WorkSpaces\Qt\Qt_WidgetApps\AndroidSerialPortTrials\QTCode\qt-qtserialport\src\serialport\qserialport.h:48: error: QtSerialPort/qserialportglobal.h: No such file or directory
    #include <QtSerialPort/qserialportglobal.h>
    ^

    Can anyone tell how to resolve this?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 6 Sept 2014, 10:33 last edited by
      #2

      which version of Qt you are using ? This file qserialportglobal.h may there somewhere and may not be in path. Just check that. I had similar issue sometime back while compiling for desktop.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abin
        wrote on 6 Sept 2014, 10:47 last edited by
        #3

        I'm using 5.3 version

        Yes, the problem is there is no QtSerialPort folder itself in android path.
        C:\Qt\Qt5.3.0\5.3\android_armv7\include ==> no QtSerialPort folder

        Is it ok if I copy and paste it from
        C:\Qt\Qt5.3.0\5.3\mingw482_32\include\QtSerialPort

        I copied and build... Need to verify now :) thanks

        1 Reply Last reply
        0

        1/3

        6 Sept 2014, 09:22

        • Login

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