<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Executable file in release configuration bigger than in debug configuration]]></title><description><![CDATA[<p dir="auto">I'm intrigued with a game I am developing in Qt 6.6.0. In Windows 11, linux Mint and MacOS Monterey, the executable file in release mode is aprox. 135MB, in debug mode is aprox. 85MB which is strange.<br />
I am using QtCreator default configurations, the effective qmake call</p>
<p dir="auto">in debug mode:</p>
<pre><code>C:/QtOpensourse/6.6.0/mingw_64/bin/qmake.exe D:\qt5projets\davidgalacticadventures\DavidGalacticAdventures.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" &amp;&amp; C:/QtOpensourse/Tools/mingw1120_64/bin/mingw32-make.exe qmake_all
</code></pre>
<p dir="auto">in release mode:</p>
<pre><code>C:/QtOpensourse/6.6.0/mingw_64/bin/qmake.exe D:\qt5projets\davidgalacticadventures\DavidGalacticAdventures.pro -spec win32-g++ "CONFIG+=qtquickcompiler" &amp;&amp; C:/QtOpensourse/Tools/mingw1120_64/bin/mingw32-make.exe qmake_all
</code></pre>
<p dir="auto">My pro file is</p>
<pre><code>TEMPLATE = app

QT += quick multimedia quick3d gui

TARGET = DavidGalacticAdventures

QMAKE_CXXFLAGS += -flarge-source-files

#CONFIG += c++11 #qmltypes
#QML_IMPORT_NAME = com.estudiotecnologico
#QML_IMPORT_MAJOR_VERSION = 1
#INCLUDEPATH += $$PWD
#INCLUDEPATH += $$PWD/oceanEffect

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        main.cpp \
        oceanEffect/oceaneffect.cpp \
        path.cpp \
        pathcircular.cpp \
        pathrectangular.cpp \
        placement.cpp

RESOURCES += qml.qrc \
    image.qrc \
    modelDavid.qrc \
    modelGirl.qrc \
    modelHero.qrc \
    models.qrc \
    modelsBuildingsProps.qrc \
    modelsCharatersLowPoly.qrc \
    modelstest.qrc \
    skybox.qrc \
    sound.qrc \
    texturesPlanets.qrc

TRANSLATIONS += \
    DavidGalacticAdventures_pt_PT.ts

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    oceanEffect/oceaneffect.h \
    path.h \
    pathcircular.h \
    pathrectangular.h \
    placement.h


ios {
    ios_icon.files = $$files($$PWD/ios/AppIcon*.png)
    QMAKE_BUNDLE_DATA += ios_icon
    QMAKE_INFO_PLIST = ios/Info.plist
}

DISTFILES += \
    android/AndroidManifest.xml \
    android/build.gradle \
    android/gradle.properties \
    android/gradle.properties \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew \
    android/gradlew.bat \
    android/res/values/libs.xml

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

win32:RC_FILE = appicon.rc

ICON = images/spaceshipAlpha.icns
</code></pre>
<p dir="auto">Google did not show me any relevant information, not sure where or what I should be looking for. Any indications are welcome.</p>
<p dir="auto">If it helps to show the code, this app is opensource <a href="https://bitbucket.org/joaodeusmorgado/davidgalacticadventures/src/master/" target="_blank" rel="noopener noreferrer nofollow ugc">https://bitbucket.org/joaodeusmorgado/davidgalacticadventures/src/master/</a></p>
<p dir="auto">Compiling in linux in debug mode takes aprox. 2 minutes, and 10 minutes in release mode. In windows and Mac, compilation is aprox. 10  / 12 min. in both configurations.</p>
]]></description><link>https://forum.qt.io/topic/151819/executable-file-in-release-configuration-bigger-than-in-debug-configuration</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 13:06:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/151819.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Nov 2023 23:27:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Executable file in release configuration bigger than in debug configuration on Fri, 03 Nov 2023 11:21:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> Thanks, that solved it, the release file now is reduced to 78 MB, lower than the debug file .  I will do some performance testing, since qtcompiler should make the app faster, I'll check if it is worth the extra size.</p>
]]></description><link>https://forum.qt.io/post/778662</link><guid isPermaLink="true">https://forum.qt.io/post/778662</guid><dc:creator><![CDATA[johngod]]></dc:creator><pubDate>Fri, 03 Nov 2023 11:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Executable file in release configuration bigger than in debug configuration on Fri, 03 Nov 2023 07:26:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johngod">@<bdi>johngod</bdi></a> said in <a href="/post/778584">Executable file in release configuration bigger than in debug configuration</a>:</p>
<blockquote>
<p dir="auto">CONFIG+=qtquickcompiler</p>
</blockquote>
<p dir="auto">Maybe this makes the difference? Try to disable QtQuick compiler.</p>
]]></description><link>https://forum.qt.io/post/778631</link><guid isPermaLink="true">https://forum.qt.io/post/778631</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 03 Nov 2023 07:26:26 GMT</pubDate></item></channel></rss>