Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Android build for QT C++ application that has python call
Forum Updated to NodeBB v4.3 + New Features

Android build for QT C++ application that has python call

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 221 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.
  • V Offline
    V Offline
    vinothK
    wrote on last edited by
    #1

    I have an QT C++ application that calls a python script. My application is working good when I creates the Executable in Ubuntu platform. However, i could not create the Andriod build for the application and it creates the below Error.

    Environment: QT5.15.2 and Ubuntu20.04.

    I have added the below lines in the Project file and I have added #include <python.h> in the CPP file where it calls the Python script.

    INCLUDEPATH = /usr/include/python3.8
    LIBS += -lpython3.8

    Error

    /usr/include/python3.8/pyconfig.h:15: error: 'arm-linux-gnueabi/python3.8/pyconfig.h' file not found
    In file included from /home/vinoth/qgroundcontrol_UI/src/QmlControls/AWSOperations.cpp:6:
    In file included from /usr/include/python3.8/Python.h:8:
    /usr/include/python3.8/pyconfig.h:15:12: fatal error: 'arm-linux-gnueabi/python3.8/pyconfig.h' file not found
    include <arm-linux-gnueabi/python3.8/pyconfig.h>

    Axel SpoerlA 1 Reply Last reply
    0
    • V vinothK

      I have an QT C++ application that calls a python script. My application is working good when I creates the Executable in Ubuntu platform. However, i could not create the Andriod build for the application and it creates the below Error.

      Environment: QT5.15.2 and Ubuntu20.04.

      I have added the below lines in the Project file and I have added #include <python.h> in the CPP file where it calls the Python script.

      INCLUDEPATH = /usr/include/python3.8
      LIBS += -lpython3.8

      Error

      /usr/include/python3.8/pyconfig.h:15: error: 'arm-linux-gnueabi/python3.8/pyconfig.h' file not found
      In file included from /home/vinoth/qgroundcontrol_UI/src/QmlControls/AWSOperations.cpp:6:
      In file included from /usr/include/python3.8/Python.h:8:
      /usr/include/python3.8/pyconfig.h:15:12: fatal error: 'arm-linux-gnueabi/python3.8/pyconfig.h' file not found
      include <arm-linux-gnueabi/python3.8/pyconfig.h>

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @vinothK
      Either the pyconfig.h is missing or it’s not in the include path. Have you searched for it? Qt 5.15.2 is not precisely the latest version and a lot has changed on Android since then. Maybe you want to upgrade to 6.5?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      • Login

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