[Android] "Internal Error: Could not find .pro file."
-
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
@ -
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
@ -
Correction on that last post, that wasn't the problem....
A bit more detail, this project file
@
QT += network xml xmlpatternsQT -= gui
TARGET = test3
TEMPLATE = lib
CONFIG += staticlibSOURCES += 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?
-
Correction on that last post, that wasn't the problem....
A bit more detail, this project file
@
QT += network xml xmlpatternsQT -= gui
TARGET = test3
TEMPLATE = lib
CONFIG += staticlibSOURCES += 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?
-
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.
-
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.
-
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]
-
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]
-
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?
-
-
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?
-