[Qt-interest] Is it a correct static build?
M. Bashir Al-Noimi
mbnoimi at gmx.com
Mon Oct 12 21:46:04 CEST 2009
Diego Schulz wrote:
>
>
> On Mon, Oct 12, 2009 at 10:45 AM, M. Bashir Al-Noimi <mbnoimi at gmx.com
> <mailto:mbnoimi at gmx.com>> wrote:
>
> M. Bashir Al-Noimi wrote:
>>
>> Hi All,
>>
>>
>> I've rebuilt Qt toolkit in static mode by passing the following
>> arguments to configure application:
>> configure -release -static -opensource -ltcg -fast -no-exceptions -qt-sql-sqlite -plugin-sql-sqlite -no-qt3support -qt-zlib -qt-libpng -qt-libtiff -qt-libjpeg -webkit
>>
>> I tried to create a new application and I found that it's working
>> fine (hello world application's size became about 7MB), but I'm
>> not sure if it became a fully standalone application.
>>
>> * Is my application will working fully standalone when I use
>> SQL and Webkit modules?
>> * Do I need any additional libraries for running SQLite and
>> QWebkit applications?
>> * I noticed that my application doesn't need mingwm10.dll in
>> windows, is it a correct behavior?
>>
>
>
>
> I'd suggest you to use the 'strip' tool to strip unused symbols from
> the binary, reducing its size.
> After that, upx (upx.sourceforge.net <http://upx.sourceforge.net>) can
> be of help too, it will compress your binary.
Thanks.
>
> To see what are the dependencies your binary needs, you can use
> Dependency Walker (www.dependencywalker.com
> <http://www.dependencywalker.com>).
Dependency Walker didn't fix SQLite issue, all the applications which
use SQLite didn't works when I compile them in static mode!
Another thing:
When I tried to run Synkron (sync application) in static mode the
compiler gave the following error:
> C:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lQtXmld
>
> collect2: ld returned 1 exit status
>
why these happened?
-----
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091012/94ba82b1/attachment.html
More information about the Qt-interest-old
mailing list