I'm new to Qt but no problem in the C++. I used Qt Creator and made a simple program with a button (like a hello world) then I built the project. I was not able to run the executable file in windows itself (outside the creator) because it needed these DLL files:
libgcc_s_dw2-1.dll
mingwm10.dll
QtGuid4.dll
QtCored4.dll
I found these files and put them beside the exe. Now the program works but the folder has a size of 170 MB because of the big Dll files. Is this a way of deploying Qt applications. I know their's a way to make a standalone static app but that's not the problem. I'm ok with the dlls but the dependencies seem to be too big. Is there a different method of deploying projects with smaller file sizes?
Thanks
There is support for Android development in Qt 6. With Qt Creator, you can connect to devices, develop, test, and package Android applications. Note: Qt user apps require using the same NDK r23b version used for building the official Qt for Android libraries.
Note: In Qt Creator, select Projects > Build > Build Steps > Build Android APK > Open package location after build to build the application's . apk and open the directory containing the package.
In order to use Qt for Android, you need the following: Java Development Kit (JDK) provided by AdoptOpenJDK for all platforms, is required to build Android apps. Other alternatives such as OpenJDK for Linux or Java SE Development Kit for Windows are also supported.
Why don't you do a release build and use the release dlls instead of the debug dlls which are much larger.
Since this is regarding size:
Debug libraries
QtCored4.dll = ~37MB
QtGui4d.dll = ~157MB
Release libraries
QtCore.dll = ~2.3Mb
QtGui4.dll = ~9MB
(from looking at the sizes in my Qt\version\bin directory)
you have two problems here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With