Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Error in building qt code myself

    General and Desktop
    2
    3
    711
    Loading More Posts
    • 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
      Abin last edited by

      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 Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        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 Reply Quote 0
        • A
          Abin last edited by

          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 Reply Quote 0
          • First post
            Last post