Results 1 to 7 of 7

Thread: Build File always Builds all

  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.
    Last edited by JeanC; 7th May 2015 at 13:43.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Build File always Builds all

    Delete all of your Makefile(s) and re-run qmake, then build.

  3. #3
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build File always Builds all

    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.

  4. #4
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Build File always Builds all

    Can you post your .pro file(s) here?

  5. #5
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build File always Builds all

    Very kind of you to help me.

    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2012-10-25T13:22:40
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8. #QT += androidextras
    9.  
    10. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    11.  
    12. TARGET = planetdance
    13. TEMPLATE = app
    14.  
    15. CONFIG += warn_off
    16. CONFIG(debug, debug|release) {
    17. DEFINES += PDDEBUG
    18. }
    19.  
    20.  
    21. SOURCES += swecl.c \
    22. swedate.c \
    23. swehel.c \
    24. swehouse.c \
    25. swejpl.c \
    26. swemmoon.c \
    27. swemplan.c \
    28. swemptab.c \
    29. swepcalc.c \
    30. swepdate.c \
    31. sweph.c \
    32. swephlib.c \
    33. main.cpp\
    34. mainwindow.cpp \
    35. utils.cpp \
    36. astro.cpp \
    37. edit.cpp \
    38. draw.cpp \
    39. options.cpp \
    40. db.cpp \
    41. ephemeris.cpp \
    42. editplaces.cpp \
    43. graph.cpp \
    44. dialogs.cpp
    45. # androidutils.cpp
    46.  
    47. HEADERS += swedate.h \
    48. swedll.h \
    49. swehouse.h \
    50. swejpl.h \
    51. swenut2000a.h \
    52. sweodef.h \
    53. swepcalc.h \
    54. sweph.h \
    55. swephexp.h \
    56. swephlib.h \
    57. mainwindow.h \
    58. utils.h \
    59. astro.h \
    60. edit.h \
    61. draw.h \
    62. options.h \
    63. db.h \
    64. ephemeris.h \
    65. editplaces.h \
    66. graph.h \
    67. dialogs.h
    68. #androidutils.h
    69.  
    70. LIBS += g:\planetdance\libswe.a
    71. RESOURCES = application.qrc
    72.  
    73. OTHER_FILES += \
    74. android/res/values-ru/strings.xml \
    75. android/res/values-rs/strings.xml \
    76. android/res/values/strings.xml \
    77. android/res/values/libs.xml \
    78. android/res/values-de/strings.xml \
    79. android/res/drawable-hdpi/icon.png \
    80. android/res/values-et/strings.xml \
    81. android/res/values-zh-rTW/strings.xml \
    82. android/res/values-pt-rBR/strings.xml \
    83. android/res/values-id/strings.xml \
    84. android/res/values-fr/strings.xml \
    85. android/res/values-ja/strings.xml \
    86. android/res/drawable-ldpi/icon.png \
    87. android/res/values-ms/strings.xml \
    88. android/res/values-fa/strings.xml \
    89. android/res/values-pl/strings.xml \
    90. android/res/values-nl/strings.xml \
    91. android/res/values-nb/strings.xml \
    92. android/res/drawable-mdpi/icon.png \
    93. android/res/values-it/strings.xml \
    94. android/res/values-es/strings.xml \
    95. android/res/drawable/logo.png \
    96. android/res/drawable/icon.png \
    97. android/res/values-el/strings.xml \
    98. android/res/layout/splash.xml \
    99. android/res/values-zh-rCN/strings.xml \
    100. android/res/values-ro/strings.xml \
    101. android/AndroidManifest.xml \
    102. android/src/org/kde/necessitas/ministro/IMinistro.aidl \
    103. android/src/org/kde/necessitas/ministro/IMinistroCallback.aidl \
    104. android/src/org/kde/necessitas/origo/QtApplication.java \
    105. android/src/org/kde/necessitas/origo/QtActivity.java \
    106. android/version.xml
    107.  
    108. #android {
    109. #files1.path = /assets/eph
    110. #files1.files = /assets/eph/*.se1
    111. #INSTALLS += files1
    112. #}
    113.  
    114. ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Build File always Builds all

    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.

  7. #7
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build File always Builds all

    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

    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2015-05-08T13:08:19
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8.  
    9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    10.  
    11. TARGET = Test
    12. TEMPLATE = app
    13.  
    14.  
    15. SOURCES += main.cpp\
    16. mainwindow.cpp
    17.  
    18. HEADERS += mainwindow.h
    19.  
    20. FORMS += mainwindow.ui
    21.  
    22. CONFIG += mobility
    23. MOBILITY =
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. [solved] Qt 5.1.1 - Build error: No such file or directory
    By jigglyslime in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd January 2014, 06:15
  2. How to build a sis file >?
    By hungpham90 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th November 2011, 20:25
  3. specifying VS build order within pro file?
    By barrygp in forum Qt Programming
    Replies: 3
    Last Post: 17th December 2009, 21:22
  4. QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory
    By doggrant in forum Installation and Deployment
    Replies: 5
    Last Post: 28th August 2009, 15:55
  5. Application build Mac PPC/Intel pro file?
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 28th June 2006, 13:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.