Friday, July 4th 2008, 11:58pm UTC+1

You are not logged in.

  • Login
  • Register

mercure08

Trainee

Posts: 52

Location: Tunisia

1

Thursday, May 15th 2008, 9:50am

Qt executable size problem : very big

Hi everyone, I've a 4.3 Qt application developped under Windows. I've ported it to Mac OS and it works fine, but I've an interrogation about the size of the executable whitch is 120 Mo . I don't know really why it is toooo big. I use many frameworks but it is the cause ? Does anyone have an idea about this and can tell me how to do to mimimize the size especially I must to put the exécutable to download by clients.
Best regards.
  • Go to the top of the page

2

Thursday, May 15th 2008, 10:55am

RE: Qt executable size problem : very big

did you compile in debug mode
Nicolas
  • Go to the top of the page

mercure08

Trainee

Posts: 52

Location: Tunisia

3

Thursday, May 15th 2008, 11:08am

No, I've compiled on release mode and I've not linked to the frameworks and plugins.
  • Go to the top of the page

4

Thursday, May 15th 2008, 11:49am

RE: Qt executable size problem : very big

try some strip command
look at man strip
Nicolas
  • Go to the top of the page

mercure08

Trainee

Posts: 52

Location: Tunisia

5

Thursday, May 15th 2008, 1:13pm

thanks for replying, what this command will let me to know
  • Go to the top of the page

6

Thursday, May 15th 2008, 3:34pm

120MB? It looks like you statically link to Qt in debug mode.
  • Go to the top of the page

mercure08

Trainee

Posts: 52

Location: Tunisia

7

Friday, May 16th 2008, 7:44am

No I have not linked to any framework. I just compile it to run under the 2 architechtures Intel an PPC.
  • Go to the top of the page

8

Friday, May 16th 2008, 8:20am

i think dll & lib files size is very big. well, dont you have many files like these?
  • Go to the top of the page

9

Friday, May 16th 2008, 9:25am

could you post compilation and link commands that are executed
Nicolas
  • Go to the top of the page

mercure08

Trainee

Posts: 52

Location: Tunisia

10

Friday, May 16th 2008, 9:26am

For compilation I'm using Xcode and gcc 4.0
  • Go to the top of the page

11

Friday, May 16th 2008, 9:38am

not wich tools you use but which commands are executed
Nicolas
  • Go to the top of the page

Rate this thread