My qt exe size is very huge
-
@unknown968787 said in My qt exe size is very huge:
is there a way to reduce the size like 1 mb or less ???
Did you build in debug or release mode?
@jsulm i am not really sure these are the steps i took
projects:
1 - create a folder
2 - open native x86 cmd and cd the folder
3 - cd the project folder
4 - create main.cpp
5 - qmake -project to create .pro file
6 - add CONFIG += console | QT += core gui widgets to the .pro file
7 - qmake
8 - nmake
9 - nmake release -
@unknown968787 did you add huge graphics or other files to your project / resources ?
Even for a debug build, 10 mb is excessive for non static qt builds
@J.Hilk no graphics at all it is just a console hello world app no more
-
What Qt version do you use and how was it built?
-
What Qt version do you use and how was it built?
this is how i am building
projects:
1 - create a folder
2 - open native x86 cmd and cd the folder
3 - cd the project folder
4 - create main.cpp
5 - qmake -project to create .pro file
6 - add CONFIG += console | QT += core gui widgets to the .pro file
7 - qmake
8 - nmake
9 - nmake releasei am using Qt creator 4.11.0
-
this is how i am building
projects:
1 - create a folder
2 - open native x86 cmd and cd the folder
3 - cd the project folder
4 - create main.cpp
5 - qmake -project to create .pro file
6 - add CONFIG += console | QT += core gui widgets to the .pro file
7 - qmake
8 - nmake
9 - nmake releasei am using Qt creator 4.11.0
@unknown968787 said in My qt exe size is very huge:
i am using Qt creator 4.11.0
That is a version of Creator, the IDE, not of the Qt libraries you a re using. And it's a few years old. We don't where you got the Qt from, how it was built.
I am not sure whether
8 - nmake
9 - nmake releasemeans you are looking at an executable from your project build for release (make per #9) or for debug (possibly per #8). Someone else may know. I would look at the compiler flags being passed on the compilation command line.
-
this is how i am building
projects:
1 - create a folder
2 - open native x86 cmd and cd the folder
3 - cd the project folder
4 - create main.cpp
5 - qmake -project to create .pro file
6 - add CONFIG += console | QT += core gui widgets to the .pro file
7 - qmake
8 - nmake
9 - nmake releasei am using Qt creator 4.11.0
@unknown968787 said in My qt exe size is very huge:
this is how i am building
I don't care.
I want to know:
- the Qt version you are using
- how this Qt version was built / were it came from
-
@unknown968787 said in My qt exe size is very huge:
i am using Qt creator 4.11.0
That is a version of Creator, the IDE, not of the Qt libraries you a re using. And it's a few years old. We don't where you got the Qt from, how it was built.
I am not sure whether
8 - nmake
9 - nmake releasemeans you are looking at an executable from your project build for release (make per #9) or for debug (possibly per #8). Someone else may know. I would look at the compiler flags being passed on the compilation command line.
@JonB said in My qt exe size is very huge:
That is a version of Creator, the IDE, not of the Qt libraries you a re using. And it's a few years old
“A few” is an understatement, QtC 4 is about 10 years old or so :D
It doesn't help if you repeat to post the steps you might have done over and over again.
Also: how and where did you check the file size? -
@JonB said in My qt exe size is very huge:
That is a version of Creator, the IDE, not of the Qt libraries you a re using. And it's a few years old
“A few” is an understatement, QtC 4 is about 10 years old or so :D
It doesn't help if you repeat to post the steps you might have done over and over again.
Also: how and where did you check the file size?@Pl45m4 i got it from the official site because the latest Qt is 64bit and 32 bit is only in the older versions after nmake and nmake release i got exe file thatis where i saw the size !!!
-
@unknown968787 said in My qt exe size is very huge:
this is how i am building
I don't care.
I want to know:
- the Qt version you are using
- how this Qt version was built / were it came from
C:\Users\unknown>qmake -v
QMake version 3.1
Using Qt version 5.12.12 -
I can't test this ancient version but would guess you installed a static Qt version. Therefore all is linked directly into your executable which explains the size.