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. [Android] "Internal Error: Could not find .pro file."
Forum Updated to NodeBB v4.3 + New Features

[Android] "Internal Error: Could not find .pro file."

Scheduled Pinned Locked Moved Mobile and Embedded
15 Posts 6 Posters 7.6k 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.
  • M Offline
    M Offline
    MiJo
    wrote on last edited by
    #6

    I had the same problem. I figured out what was going wrong. In my project I had the following QT dependencies:
    @
    QT += network xml xmlpatterns
    QT -= gui
    @

    This was created by project template for a static library.

    Compiling this gave this error:

    @
    14:35:53: Internal Error: Could not find .pro file.
    Error while building/deploying project Test-Android (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.0))
    When executing step "Build Android APK"
    @

    When adding Qt core dependency, everyhing was compiling again:
    @
    QT += core network xml xmlpatterns
    QT -= gui
    @

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MiJo
      wrote on last edited by
      #7

      I had the same problem. I figured out what was going wrong. In my project I had the following QT dependencies:
      @
      QT += network xml xmlpatterns
      QT -= gui
      @

      This was created by project template for a static library.

      Compiling this gave this error:

      @
      14:35:53: Internal Error: Could not find .pro file.
      Error while building/deploying project Test-Android (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.0))
      When executing step "Build Android APK"
      @

      When adding Qt core dependency, everyhing was compiling again:
      @
      QT += core network xml xmlpatterns
      QT -= gui
      @

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MiJo
        wrote on last edited by
        #8

        Correction on that last post, that wasn't the problem....

        A bit more detail, this project file
        @
        QT += network xml xmlpatterns

        QT -= gui

        TARGET = test3
        TEMPLATE = lib
        CONFIG += staticlib

        SOURCES += test3.cpp

        HEADERS += test3.h
        unix {
        target.path = /usr/lib
        INSTALLS += target
        }
        @

        gives this output:

        @
        14:55:28: Internal Error: Could not find .pro file.
        Error while building/deploying project test3 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.0))
        When executing step "Build Android APK"
        @

        Removing the TEMPLATE = lib line does build.
        It does not matter if you try to create a static or dynamic library, both of them will fail.

        So it seems there is a bug in building libraries for Android?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MiJo
          wrote on last edited by
          #9

          Correction on that last post, that wasn't the problem....

          A bit more detail, this project file
          @
          QT += network xml xmlpatterns

          QT -= gui

          TARGET = test3
          TEMPLATE = lib
          CONFIG += staticlib

          SOURCES += test3.cpp

          HEADERS += test3.h
          unix {
          target.path = /usr/lib
          INSTALLS += target
          }
          @

          gives this output:

          @
          14:55:28: Internal Error: Could not find .pro file.
          Error while building/deploying project test3 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.0))
          When executing step "Build Android APK"
          @

          Removing the TEMPLATE = lib line does build.
          It does not matter if you try to create a static or dynamic library, both of them will fail.

          So it seems there is a bug in building libraries for Android?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            ssolomin
            wrote on last edited by
            #10

            I've seen simular problem when try build lib with Qt5.4 and Qt Creator. And I've found workaround: go to the "project" tab and switch off "Make install" and "Build Android APK" steps.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              ssolomin
              wrote on last edited by
              #11

              I've seen simular problem when try build lib with Qt5.4 and Qt Creator. And I've found workaround: go to the "project" tab and switch off "Make install" and "Build Android APK" steps.

              1 Reply Last reply
              1
              • F Offline
                F Offline
                frankem
                wrote on last edited by
                #12

                Thanks, that worked for me.

                [quote author="ssolomin" date="1419954269"]I've seen simular problem when try build lib with Qt5.4 and Qt Creator. And I've found workaround: go to the "project" tab and switch off "Make install" and "Build Android APK" steps.[/quote]

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  frankem
                  wrote on last edited by
                  #13

                  Thanks, that worked for me.

                  [quote author="ssolomin" date="1419954269"]I've seen simular problem when try build lib with Qt5.4 and Qt Creator. And I've found workaround: go to the "project" tab and switch off "Make install" and "Build Android APK" steps.[/quote]

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jonathanz
                    wrote on last edited by
                    #14

                    Thanks for the discussions. The above workaround also works for me:

                    In Qt5.4.0-based Qt Creator 3.3.0, go to "Projects" -> "Build"

                    • Disable "Make install".

                    • Disable "Build Android APK".

                    Then my library project will build successfully.

                    Is there any plan to fix this issue by the Qt Projecr team?

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jonathanz
                      wrote on last edited by
                      #15

                      Thanks for the discussions. The above workaround also works for me:

                      In Qt5.4.0-based Qt Creator 3.3.0, go to "Projects" -> "Build"

                      • Disable "Make install".

                      • Disable "Build Android APK".

                      Then my library project will build successfully.

                      Is there any plan to fix this issue by the Qt Projecr team?

                      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