View Full Version : Build File always Builds all
QT Creator 3.3.1.
In fact it does a deploy project.
This started some days ago, no idea why, extremely inconvenient. I tried cleaning the project.
Any ideas please?
Thanks.
jefftee
7th May 2015, 19:00
Delete all of your Makefile(s) and re-run qmake, then build.
Thank you.
Sadly it still builds the whole project. I can see it building a new makefile (with exactly the same size) but same behaviour. Just to be sure I tried twice.
I should have mentioned, it happens only when building for android, building for windows compiles only one file if asked to.
jefftee
7th May 2015, 19:58
Can you post your .pro file(s) here?
Very kind of you to help me.
#-------------------------------------------------
#
# Project created by QtCreator 2012-10-25T13:22:40
#
#-------------------------------------------------
QT += core gui
#QT += androidextras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = planetdance
TEMPLATE = app
CONFIG += warn_off
CONFIG(debug, debug|release) {
DEFINES += PDDEBUG
}
SOURCES += swecl.c \
swedate.c \
swehel.c \
swehouse.c \
swejpl.c \
swemmoon.c \
swemplan.c \
swemptab.c \
swepcalc.c \
swepdate.c \
sweph.c \
swephlib.c \
main.cpp\
mainwindow.cpp \
utils.cpp \
astro.cpp \
edit.cpp \
draw.cpp \
options.cpp \
db.cpp \
ephemeris.cpp \
editplaces.cpp \
graph.cpp \
dialogs.cpp
# androidutils.cpp
HEADERS += swedate.h \
swedll.h \
swehouse.h \
swejpl.h \
swenut2000a.h \
sweodef.h \
swepcalc.h \
sweph.h \
swephexp.h \
swephlib.h \
mainwindow.h \
utils.h \
astro.h \
edit.h \
draw.h \
options.h \
db.h \
ephemeris.h \
editplaces.h \
graph.h \
dialogs.h
#androidutils.h
LIBS += g:\planetdance\libswe.a
RESOURCES = application.qrc
OTHER_FILES += \
android/res/values-ru/strings.xml \
android/res/values-rs/strings.xml \
android/res/values/strings.xml \
android/res/values/libs.xml \
android/res/values-de/strings.xml \
android/res/drawable-hdpi/icon.png \
android/res/values-et/strings.xml \
android/res/values-zh-rTW/strings.xml \
android/res/values-pt-rBR/strings.xml \
android/res/values-id/strings.xml \
android/res/values-fr/strings.xml \
android/res/values-ja/strings.xml \
android/res/drawable-ldpi/icon.png \
android/res/values-ms/strings.xml \
android/res/values-fa/strings.xml \
android/res/values-pl/strings.xml \
android/res/values-nl/strings.xml \
android/res/values-nb/strings.xml \
android/res/drawable-mdpi/icon.png \
android/res/values-it/strings.xml \
android/res/values-es/strings.xml \
android/res/drawable/logo.png \
android/res/drawable/icon.png \
android/res/values-el/strings.xml \
android/res/layout/splash.xml \
android/res/values-zh-rCN/strings.xml \
android/res/values-ro/strings.xml \
android/AndroidManifest.xml \
android/src/org/kde/necessitas/ministro/IMinistro.aidl \
android/src/org/kde/necessitas/ministro/IMinistroCallback.aidl \
android/src/org/kde/necessitas/origo/QtApplication.java \
android/src/org/kde/necessitas/origo/QtActivity.java \
android/version.xml
#android {
#files1.path = /assets/eph
#files1.files = /assets/eph/*.se1
#INSTALLS += files1
#}
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
jefftee
8th May 2015, 08:38
Hi, I haven't ever used the OTHER_FILES statement. Can you confirm that all of those files exist? I'm guessing if one of them doesn't exist, it may trick qmake into thinking the file will be built, etc. Just a guess though, I don't see anything else that looks unusual to me.
It turned out a lot of those files don't exist. They were put there by qcreator, the project began in qt 4.8.
So I tried an new empty android project to see what qtcreator puts in by default, almost nothing. But.. it still generates the whole shebang for android if I ask just to build mainwindow.cpp
And it gets even weirder: normally when I deploy an android project qtcreator first starts the android emulator, in my understanding it needs this to be present to generate code. Now it turns out that when I build just one file, it generates an apk with al stuff without even the need to start the emulator.
So I'm puzzled and don't understand any of it. Not unusual. :)
This started on my new pc, fresh install of qt 5.2
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-08T13:08:19
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Test
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
CONFIG += mobility
MOBILITY =
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.