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. Qt 5.6 QtPurchasing Unknown Module
Forum Updated to NodeBB v4.3 + New Features

Qt 5.6 QtPurchasing Unknown Module

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.2k Views 2 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by Ibrahim
    #1

    Hi; I am using Qt 5.6 Community Edition. I added QT += purchasing in .pro file then I added #include <QtPurchasing> in the main.cpp file. But I get this error:
    :-1: error: Unknown module(s) in QT: purchasing
    Thanks.

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

      Hi,

      I don't remember if it was released along with Qt 5.6 but you can always clone and build the module yourself.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      I 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        I don't remember if it was released along with Qt 5.6 but you can always clone and build the module yourself.

        I Offline
        I Offline
        Ibrahim
        wrote on last edited by Ibrahim
        #3

        @SGaist Thanks, I ran this command: git clone git://code.qt.io/qt/qtpurchasing.git and I downloaded QtPurchasing module. How can I build this module?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MajidKamali
          wrote on last edited by
          #4

          open a terminal in downloaded folder path. use following commands in terminal for setting android related variables:

          export ANDROID_NDK_ROOT=PATH_TO_ANDROID_NDK
          export ANDROID_SDK_ROOT=PATH_TO_ANDROID_SDK
          export ANDROID_API_VERSION=android-10
          

          use full path for line 1 and 2
          use a minimum android version which you have in your platforms folder of sdk root, for line 3
          then, in that terminal:

          /PATH/TO/ANDROID/QMAKE/qmake
          make
          make install
          

          for line 1, usually path to android armeabi-v7 is enough

          I think this process can be done in QtCreator automatically. just open the module .pro file and run android qmake and then build project.

          If in second path, some errors occured, you should right click on src folder in qtcreator and build just that.

          1 Reply Last reply
          1

          • Login

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