[Qt-interest] Is it a correct static build?

Constantin Makshin dinosaur-rus at users.sourceforge.net
Mon Oct 12 21:13:14 CEST 2009


"-qt-sql-sqlite" and "-plugin-sql-sqlite" options are somewhat mutually  
exclusive. Also static builds Qt don't support run-time loading of  
plugins, so you must to specify what plugins you want to use. Look at  
http://qt.nokia.com/doc/4.5/plugins-howto.html#static-plugins for details.

On Mon, 12 Oct 2009 23:46:04 +0400, M. Bashir Al-Noimi <mbnoimi at gmx.com>  
wrote:
> 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/

-- 
Constantin Makshin



More information about the Qt-interest-old mailing list