You are not logged in.

1

Wednesday, July 15th 2009, 8:31pm

(1) Undoing static link, (2) file size question, and (3) two versions of Qt

Hello everybody,

I recently deployed a program in which I was required to run "configure -static" such that the program only needed to be distributed with the mingwm10.dll file. Now I would like to go back to shared DLL Qt! Can I undo what I have done to make Qt static?

Secondly, the program I wrote was not anything special. A QDialog with some conversion between numbers. Why is it 11mB and why do I necessarily need to distribute it with mingwm10.dll? It'd be nice to have a less than 1mB program that was completely stand alone. Is that possible?

Is it possible to install two of the same versions of Qt - one static, one shared? If so, how would I differentiate all of the commands for each Qt configuration?

Cheers,
Tom

AuE

Trainee

  • "AuE" is male

Posts: 103

Location: Germany

Occupation: work

  • Send private message

2

Thursday, July 16th 2009, 6:17am

see your compilers doc. but when u r delivering dll 1mB wont bereachable. guess the gtgui.lib is 94mb!
And QtCorelib somewhat arround 3mb
What you can do is link statical (only needed part will be linked) and set your compiler to optimize size!
Linux-the best text-adventure ever! :)

3

Thursday, July 16th 2009, 5:17pm

Alright, I guess that sounds reasonable. If I want something small I should just use VS for windows only apps!

How about the other question of having two of the same versions of Qt, but building one statically...
I want something like this for lack of better description:

C:\Qt\4.5.1\
C:\Qt\4.5.1_STATIC\

How could I differentiate their separate qmake files?
Or am I crazy and I can just build any individual program statically without having to build Qt statically first?

Cheers,
Tom