Results 1 to 2 of 2

Thread: Smaller dlls size.

  1. #1
    Join Date
    Oct 2009
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Question Smaller dlls size.

    Hello. I'm trying to generate smaller dll's for my program on Windows Mobile 5 (qt-everywhere-opensource-src-4.6.2). I tried with minimal, small, medium flags but nothing work, except dist. Finally I copied qconfig-dist.h to qconfig-mydist.h and I removed COLORDIALOG option (only one flag - by qconfig.exe), but this also failed. Does anyone successful create smaller dll's for WM?

    configure -qconfig mydist -platform win32-msvc2008 -xplatform
    During compilation of "mydist" I get this error:

    Qt Code:
    1. formscriptrunner.cpp
    2. Generating Code...
    3. cl -c -FIlib_pch.h -Yulib_pch.h -Fptmp\obj\debug_shared\QtDesignerd_pch.pch -nologo -Zm200 -Zc:wchar_t- -DDEBUG -D_DEBUG -Zi -MDd -E
    4. Hs-c- -W3 -w34100 -w34189 -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -D_WIN32_WCE=0x501
    5. -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D__arm__ -DQ_OS_WINCE_WM -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_NO_COLORDIALOG
    6. -DQDESIGNER_SDK_LIBRARY -DQDESIGNER_EXTENSION_LIBRARY -DQDESIGNER_UILIB_LIBRARY -DQDESIGNER_SHARED_LIBRARY -DQT_DESIGNER -DQT_DLL -DQT_SCRI
    7. PT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NO_DYNAMIC_CAST -I"..\..\..\..\include\QtCore" -I"..\..\..\..\includ
    8. e\QtGui" -I"..\..\..\..\include\QtXml" -I"..\..\..\..\include\QtScript" -I"..\..\..\..\include" -I"extension" -I"sdk" -I"uilib" -I"shared" -
    9. I"..\..\..\shared\qtpropertybrowser" -I"..\..\..\shared\deviceskin" -I"..\..\..\..\src\tools\rcc" -I"..\..\..\shared\findwidget" -I"..\..\..
    10. \shared\qtgradienteditor" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspecs\wincewm50pocket-msvc2008" -
    11. Fotmp\obj\debug_shared\ @C:\DOCUME~1\Asdf\LOCALS~1\Temp\nm1471.tmp
    12. qtpropertybrowser.cpp
    13. qtpropertymanager.cpp
    14. ..\..\..\shared\qtpropertybrowser\qtpropertymanager.cpp(3343) : warning C4305: 'argument' : truncation from 'int' to 'qreal'
    15. ..\..\..\shared\qtpropertybrowser\qtpropertymanager.cpp(3343) : warning C4305: 'argument' : truncation from 'int' to 'qreal'
    16. qteditorfactory.cpp
    17. ..\..\..\shared\qtpropertybrowser\qteditorfactory.cpp(2208) : error C2653: 'QColorDialog' : is not a class or namespace name
    18. ..\..\..\shared\qtpropertybrowser\qteditorfactory.cpp(2208) : error C2653: 'QColorDialog' : is not a class or namespace name
    19. ..\..\..\shared\qtpropertybrowser\qteditorfactory.cpp(2208) : error C2065: 'ShowAlphaChannel' : undeclared identifier
    20. ..\..\..\shared\qtpropertybrowser\qteditorfactory.cpp(2208) : error C3861: 'getColor': identifier not found
    21. qtvariantproperty.cpp
    22. qttreepropertybrowser.cpp
    23. qtbuttonpropertybrowser.cpp
    24. qtgroupboxpropertybrowser.cpp
    25. qtpropertybrowserutils.cpp
    26. Generating Code...
    27. NMAKE : fatal error U1077: '"e:\Programy\Microsoft Visual Studio 9.0\VC\ce\bin\x86_arm\cl.EXE"' : return code '0x2'
    28. Stop.
    29. NMAKE : fatal error U1077: '"e:\Programy\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
    30. Stop.
    31. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    32. Stop.
    33. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    34. Stop.
    35. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    36. Stop.
    37. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    38. Stop.
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jun 2010
    Posts
    8
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: Smaller dlls size.

    Did you look after the compilation in the lib directory ?. If qcore4.dll and qgui4.dll are created, there is no problem. At some point the linker needs some funtions of the minimalized libs that are not there.

    With me it still not works, I only get qcore4.dll created.

    Let me know if it works with you.

Similar Threads

  1. Is any way to make smaller installer package
    By jay in forum Installation and Deployment
    Replies: 6
    Last Post: 30th March 2010, 11:57
  2. can a qdockwidget be smaller than the contained widgets?
    By billconan in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2009, 08:21
  3. How to make build smaller
    By stefan in forum Installation and Deployment
    Replies: 9
    Last Post: 10th September 2008, 19:56
  4. Can QHash::capacity() be smaller than QHash::size()?!?
    By iw2nhl in forum Qt Programming
    Replies: 2
    Last Post: 24th August 2007, 01:17
  5. How can I make size of QGraphicsScene smaller?
    By troorl_ua in forum Qt Programming
    Replies: 6
    Last Post: 21st April 2007, 07:56

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.