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. Compile in-app-purchase module

Compile in-app-purchase module

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 5 Posters 3.0k 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.
  • H Offline
    H Offline
    hamer
    wrote on last edited by hamer
    #1

    Hi,

    I read in some blog post that the IAP module might come with Qt 5.7. I want to test the module (https://github.com/qtproject/qtpurchasing) on iOS, Mac, and Android. How can the module included? Is there a configuration switch to include the IAP module for compilation?

    Regards,

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

      Hi,

      You should rather use the official code repository at code.qt.io. Github is only a mirror. The official repository is here

      Adding QT += purchasing to your .pro file should do the trick once you installed the module.

      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
      0
      • H Offline
        H Offline
        hamer
        wrote on last edited by
        #3

        Here is what I do:

        
        git clone git://code.qt.io/qt/qt5.git
        cd qt5
        git checkout 5.6
        git pull
        perl init-repository -f
        ./configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -xplatform macx-ios-clang
        

        But this does not download the purchasing module code, neither compiles it. Is there some switch?

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hamer
          wrote on last edited by
          #4

          Problem solved. I was in the wrong branch (dev is the correct one).

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Oxyde
            wrote on last edited by Oxyde
            #5

            I am also very interested by the QtPurchase module, but i didn't get how to build it correctly.

            Choosing an Android armeabi-v7a - GCC 4.9 - Qt 5.5.1 kit and launching the build end with this error message:

            Internal Error: Unknown Android deployment JSON file location.
            Error while building/deploying project qtpurchasing (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.6.0 beta))
            When executing step "Build Android APK"
            

            Do you have any hints or a link to documentation ?

            Thank you

            P.S. : i did not build from the qt5.git branch but from the single module qtpurchasing.git one

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

              @hamer you can also simply get the module and build it using the current stable release.

              @Oxyde Are you only building or are you trying to "run the application" ?

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

              O 1 Reply Last reply
              0
              • SGaistS SGaist

                @hamer you can also simply get the module and build it using the current stable release.

                @Oxyde Are you only building or are you trying to "run the application" ?

                O Offline
                O Offline
                Oxyde
                wrote on last edited by
                #7

                @SGaist Erm i guess it was just building because deploying then running would not mean a lot with a library but maybe i was confused when i tried sorry about that.
                I achieved to built qtpurchasing using the qt5 dev branch (building the whole qt sources).
                I am very glad this feature is now directly included in Open Source Qt.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Phataas
                  wrote on last edited by
                  #8

                  I am trying to compile the QtPurchasing module for Android from: git://code.qt.io/qt/qtpurchasing.git.

                  I don't have much experience with this, but I need some change sets that are not yet released.

                  I set the android NDK and SDK paths as well as JDK. I type:

                  git clone git://code.qt.io/qt/qtpurchasing.git
                  qmake CONFIG+=release
                  make

                  This is successful and I now have an include and lib folder. Is this it?
                  I do have some questions:

                  1. I assume I need to cross compile for ARMv7 targets somehow?
                  2. How do I tell Qt Creator (kits?) to use this module instead of the one supplied in Qt install directory?
                  jsulmJ 1 Reply Last reply
                  0
                  • P Phataas

                    I am trying to compile the QtPurchasing module for Android from: git://code.qt.io/qt/qtpurchasing.git.

                    I don't have much experience with this, but I need some change sets that are not yet released.

                    I set the android NDK and SDK paths as well as JDK. I type:

                    git clone git://code.qt.io/qt/qtpurchasing.git
                    qmake CONFIG+=release
                    make

                    This is successful and I now have an include and lib folder. Is this it?
                    I do have some questions:

                    1. I assume I need to cross compile for ARMv7 targets somehow?
                    2. How do I tell Qt Creator (kits?) to use this module instead of the one supplied in Qt install directory?
                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Phataas
                    I think you're missing "make install" after make.

                    1. Yes, you need to compile for Android using the compiler from NDK
                    2. Yes, configure a Kit with Android Qt version and NDK compiler

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                      In addtion to @jsulm make install suggestion:

                      You should use the qmake from your Android Qt build.

                      Don't select the release or debug build. You'll likely going to run your application in both modes thus you won't be able to build it if you only have one of the two qtpurchasing builds.

                      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
                      0

                      • Login

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