On 27.09.2013, at 14:52, Duane <[email protected]> wrote: > On 9/27/2013 8:21 AM, Orgad Shaneh wrote: >> >> בתאריך 2013 9 27 15:15, מאת "Duane" <[email protected] >> <mailto:[email protected]>>: >>> >>> I have Qt Creator version 2.7.2 and am using Qt 4.8.4. My colleague has >>> Qt Creator version 2.4.1 and is using Qt 4.8.1. We are both running the >>> Fedora 16. We use the same project file and this project doesn't use >>> the Qt libs. >>> >>> The .pro file has >>> TEMPLATE = app >>> CONFIG += console >>> CONFIG -= qt >>> >>> >>> When he builds he gets an executable 1.5Mb. When I build, I get an >>> executable of 10.6Mb Both are release builds. We both use the same >> libs. >>> >>> What can cause this? How is optimization done here? We build the same >>> project for Windows in Visual Studio and the exe files are the same size >>> but we've set the same optimization. >>> >>> _______________________________________________ >>> Qt-creator mailing list >>> [email protected] <mailto:[email protected]> >>> http://lists.qt-project.org/mailman/listinfo/qt-creator >> >> Can you paste the build output for both machines? A single file gcc >> invocation and a single linker invocation should be enough (if the >> project is not very complex). >> > > > This would be quite a bit. It's not a simple project. But I have tried > a few things. My Qt Creator SDK installation installed Qt 5.1. So I > switched the kit to use this. My build size goes from 10.6Mb to 8.6Mb. > This was surprising. So then I found my older version of Qt 4.8.1. I > switched to that one and my file size becomes the same as my Colleague. > 1.5Mb. So it's definitely the Qt version affecting this. AFAIK these > versions were installed with Qt Toolkits and not build manually. So I'm > not sure what the difference would be. I would maybe understand this is > I was using any Qt libs but we're not for this application. Make flags > look the same on the two systems. I don't get it.
debug vs release build maybe? -- Eike Ziller, Senior Software Engineer - Digia, Qt Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
