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. [SOLVED] Qt Android on Mac OSX Maverick - ant path problem!
QtWS25 Last Chance

[SOLVED] Qt Android on Mac OSX Maverick - ant path problem!

Scheduled Pinned Locked Moved Mobile and Embedded
9 Posts 3 Posters 4.8k Views
  • 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
    AlterX
    wrote on last edited by
    #1

    Hello,
    I have configured all necessary things on mac to build android Qt app, but I am having problem with ant path that is sticking deploy on android.

    I know on Mac ant is well supported (present in /usr/bin/ant), but in Android options, it is asking for location that is not /usr/bin.
    Moreover if I get ant from apache site, again I set that directory as ant location, but deploy process tells me that location is a directory!

    So what do I have to do to get rid of this problem?!?

    Thanks to all
    Gianni

    Qt Ambassador
    Real-time cooperative teams: http://www.softairrealfight.net
    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

    https://codereview.qt-project.org/...

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted529
      wrote on last edited by
      #2

      Hi Gianni,

      I think you should put the FULL path to the executable, instead of the path to the directory the executable is contained in. For instance, in Windows I put

      @<PATH>\Ant\bin\ant.bat@

      and the deployment started to work correctly.

      Bests,
      F.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlterX
        wrote on last edited by
        #3

        I know that, I'am deploying to android also using windows, but if I put full path it always tells me that is wrong.
        It seems Qt form options doesn't permit to put the exe file

        Qt Ambassador
        Real-time cooperative teams: http://www.softairrealfight.net
        Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

        https://codereview.qt-project.org/...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          deleted529
          wrote on last edited by
          #4

          I see.

          Did you check "this":http://stackoverflow.com/questions/4823367/where-is-ant-installed-on-mac-os-x-snow-leopard-by-default answer on StackOverflow?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deleted529
            wrote on last edited by
            #5

            [double post]

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AlterX
              wrote on last edited by
              #6

              Yes I did,
              I am using Mavericks and whereis doesn't exist!
              anyway, I found where ant is: /usr/bin/ant but again it doesn't matter because Qt rejects it.
              So what I can try is this:
              @
              $ant -diagnostics


              ANT PROPERTIES

              ant.version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
              ant.java.version: 1.6
              ant.core.lib: /opt/local/share/java/apache-ant/lib/ant.jar
              ant.home: /opt/local/share/java/apache-ant
              @

              And use the last diagnostic voice.

              Qt Ambassador
              Real-time cooperative teams: http://www.softairrealfight.net
              Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

              https://codereview.qt-project.org/...

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

                Hi,

                Do you have ant installed through macports ? If so it might be this one that you should try use

                You can check the path of a command using "which"

                Hope it helps

                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
                • A Offline
                  A Offline
                  AlterX
                  wrote on last edited by
                  #8

                  I think ant was already installed on Mac OS. I don't know if "which" exist, anyway I'll give it a try.

                  Qt Ambassador
                  Real-time cooperative teams: http://www.softairrealfight.net
                  Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                  https://codereview.qt-project.org/...

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AlterX
                    wrote on last edited by
                    #9

                    Ahhh mac OSX is a very sh**t

                    Finally, I put this and it is working:
                    /usr/local/ant/bin/ant

                    latter ant is executable.

                    Qt Ambassador
                    Real-time cooperative teams: http://www.softairrealfight.net
                    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                    https://codereview.qt-project.org/...

                    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